I have managed to make some progress over the past weeks.
I believe I managed to add homing properly to the DeMS300 driver, however I am now facing the issue that the homing mode PDOs 6099, 607C and 609A (respectively homing speed, homing offset and homing accel.) are simply not showing up. Hence why the driver fails to initialize them. Interestingly 6098, the homing method, does show up on
, but the other 3 do not. This makes the drive give the motor a current and fixes it in place, however it is not able to start the homing procedure and just stays in place. The control and status words look entirely correct, so my assumption is that the missing 6099, 607C and 609A PDOs are causing it to be unable to start homing.
As you can see in the driver I modified, those PDOs are commented out at the initialization (on lines 225-227). Uncommenting them has the driver compile successfully, yet it fails to start as it is unable to initialize them. I am not sure how I should initialize them properly. In the header file I changed LCEC_DEMS300_PDOS to 15 as well (it used to be 11).
Do you think the PDO mappings are the problem here? I had no success in establishing a connection over TwinCAT, but I may need to look into that again.