Hello everyone,
currently, I am trying to get my CNC running with LinuxCNC and EtherCAT. I think I came quite far but now, I am stuck facing a problem where I need your help. My Beckhoff parts, EK1100&EL, work perfectly but I have a problem with my Rexroth servo drive.
Right now, I am concentrating on getting 1 Bosch Rexroth HCS01 up and running. All neccessary drivers and software should be installed properly. In the attachment, you can find my minimalistic .ini, .hal, and .xml-files. When I start the ini-file everything seems to work as expected. The position of my motor is shown correctly. When turning the shaft of my disabled motor, the position feedback changes as expected. (Currently, scaling is set s.t. 1°=1mm).
Enabling seems to work, too, since the current state switches from Ab -> AF. However, when I want jog the motor, nothing happens. The motor simply does not turn. Using the Hal-Meter, I can see that the value of lcec.0.0.poscommand changes correctly but my motor does not want to turn. Btw, in TwinCAT the motor is turning and working.
Actually, I think I must have made mistake in the xml-file or in the drive parameterization but I have no idea what might go wrong. The 'dmsg'-command shows the following errors.
Code:
[Sat Feb 8 10:14:27 2020] EtherCAT 0: Scanning bus.
[Sat Feb 8 10:14:27 2020] EtherCAT 0: Bus scanning completed in 32 ms.
[Sat Feb 8 10:14:27 2020] EtherCAT 0: Using slave main-0 as DC reference clock.
[Sat Feb 8 10:14:27 2020] EtherCAT 0: Slave states on main device: PREOP.
[Sat Feb 8 10:14:35 2020] EtherCAT: Requesting master 0...
[Sat Feb 8 10:14:35 2020] EtherCAT: Successfully requested master 0.
[Sat Feb 8 10:14:35 2020] EtherCAT 0: Domain0: Logical address 0x00000000, 12 byte, expected working counter 3.
[Sat Feb 8 10:14:35 2020] EtherCAT 0: Datagram domain0-0-main: Logical offset 0x00000000, 12 byte, type LRW at ffff9d7c4a8d7c18.
[Sat Feb 8 10:14:35 2020] EtherCAT 0: Master thread exited.
[Sat Feb 8 10:14:35 2020] EtherCAT 0: Starting EtherCAT-OP thread.
[Sat Feb 8 10:14:35 2020] EtherCAT WARNING 0: 1 datagram UNMATCHED!
[Sat Feb 8 10:14:35 2020] EtherCAT 0: Slave states on main device: INIT.
[Sat Feb 8 10:14:35 2020] EtherCAT 0: Slave states on main device: PREOP.
[Sat Feb 8 10:14:35 2020] EtherCAT ERROR 0-main-0: Slave does not support CoE!
[Sat Feb 8 10:14:35 2020] EtherCAT ERROR 0-main-0: Failed to read number of mapped PDO entries.
[Sat Feb 8 10:14:35 2020] EtherCAT WARNING 0-main-0: Failed to read PDO entries for PDO 0x0018.
[Sat Feb 8 10:14:35 2020] EtherCAT WARNING 0-main-0: Slave does not support changing the PDO mapping!
[Sat Feb 8 10:14:35 2020] EtherCAT WARNING 0-main-0: Currently mapped PDO entries: (none). Entries to map: 0x0086:00/16 0x002F:00/32
[Sat Feb 8 10:14:35 2020] EtherCAT WARNING 0-main-0: Slave does not support assigning PDOs!
[Sat Feb 8 10:14:35 2020] EtherCAT WARNING 0-main-0: Currently assigned PDOs: (none). PDOs to assign: 0x0018
[Sat Feb 8 10:14:35 2020] EtherCAT ERROR 0-main-0: Slave does not support CoE!
[Sat Feb 8 10:14:35 2020] EtherCAT ERROR 0-main-0: Failed to read number of mapped PDO entries.
[Sat Feb 8 10:14:35 2020] EtherCAT WARNING 0-main-0: Failed to read PDO entries for PDO 0x0010.
[Sat Feb 8 10:14:35 2020] EtherCAT WARNING 0-main-0: Slave does not support changing the PDO mapping!
[Sat Feb 8 10:14:35 2020] EtherCAT WARNING 0-main-0: Currently mapped PDO entries: (none). Entries to map: 0x0087:00/16 0x0033:00/32
[Sat Feb 8 10:14:35 2020] EtherCAT WARNING 0-main-0: Slave does not support assigning PDOs!
[Sat Feb 8 10:14:35 2020] EtherCAT WARNING 0-main-0: Currently assigned PDOs: (none). PDOs to assign: 0x0010
[Sat Feb 8 10:14:35 2020] EtherCAT 0: Domain 0: Working counter changed to 2/3.
[Sat Feb 8 10:14:35 2020] EtherCAT 0: Slave states on main device: SAFEOP.
[Sat Feb 8 10:14:36 2020] EtherCAT 0: Domain 0: Working counter changed to 3/3.
[Sat Feb 8 10:14:37 2020] EtherCAT 0: Slave states on main device: OP.
If you need more information, please let me know. Do you have an idea what I am doing wrong? I appreciate every hint.
Best wishes
-K