Hi, my name is Ivan, sorry for the bad username.
Because of the unexplainable error we've got with the AX5xxx driver, we've switched to Lenze 94xxx HighLine drives which impelement the CoE protocol. However, I still have some problems with these drives too.
The Lenze 94xx HighLine drive is configurated to work with CiA 402 and it's tested with TwinCAT.
Here is the XML description file for Lenze 94xxx HighLane exported from TwinCAT:
File Attachment:
File Name:
Lenze.xml
File Size:65.27 KB
Here is the XML file used for the EtherCAT HAL Driver:
I start the driver with these commands:
(from ~/linuxcnc-dev/scripts)
. ./rip-environment
halcmd loadrt threads name1=master period1=2000000(value taken from the xml file)
halcmd loadusr -W lcec_conf ethercat_config_n.xml
halcmd loadrt lcec
halcmd addf lcec.read-all master
halcmd addf lcec.write-all master
halcmd start
Everything seems to go fine, the "ethercat slave -v" command shows that the drive is in OP state and no error flag is present. However, when I use the "halcmd show" command, none of the pin values seems to correspond with the "real" drive values. For example, I can read the Actual Position with the "ethercat upload" command but hal's Actual Position pin stays at 0. At first sight it seems that there is no communication between HAL driver and the drive itself.
BUT, when i use the "ethercat download" command to change objects like Control Word, Target Position, Mode of operation or any other, the command is issued without an error but the value is not written. After using "ethercat download" for specific index and subindex (object) and then checking the change with "ethercat upload" I can see that the value of the object is not changed although there wasn't an error issuing "ethercat download" command.
If I read the CiA 402's error object (index: 0x603F subindex: 00) it's value is 0x1000, which according to Lenze's manual means that "An error has occurred in the controller (system fault, fault, trouble, or warning)". Which doesn't seem to appear while testing it with TwinCAT.
I tried restarting the drive but the error is stil present.
Any help would be appreciated,
thank you in advance.