Help with Delta E3 Ethercat drives - hal and ethercat-conf.xml

More
1 year 1 week ago - 1 year 1 week ago #336996 by SPH
I've found a setup on the forums using Leadshine EL8 drivers and trying to work from there. Setup I'm following.
I've attached the hal, ini and ethercat.xml files. It doesn't load, I get the following error.

Code:
Debug file information: Note: Using POSIX realtime ./EL8_machine.hal:42: Pin 'lcec.0.3.cia-statusword' does not exist 14897 Stopping realtime threads Unloading hal components Note: Using POSIX realtime

Not surprising as I've pruned the file down from 5 drives and a spindle to 1, different brand drives etc.

I've used the xml file that I generated.

Am I on the right track at all?[/code][/url]
Last edit: 1 year 1 week ago by SPH.

Please Log in or Create an account to join the conversation.

More
1 year 1 week ago #337020 by Hakan
Yes you are almost there.
Just the pins are named lcec.0.0.something I would think. Second zero refers to ethercat slave id.
It's a bit catch 22. Easiest way to check pin names is with halshow and for that linuxcnc need to run and for that you need the pin names.
One can possibly temporarily comment out all reference to lcec.0.everything to use halshow to check the names.
Or use the name="X" in the slave line i  ethercat-conf.xml and refer to lcec.0.X.something.

Please Log in or Create an account to join the conversation.

More
1 year 1 week ago - 1 year 1 week ago #337025 by rodw
with just one drive, the cia402 is probably numbered 0. Your 3. is coming from these lines in your hal. If in doubt, comment them all out so LinuxCNC ipens, then use halshow to work out the correct pin names# ethercat to cia402 driver
net x-statusword lcec.0.3.cia-statusword => cia402.0.statusword
net x-opmode-display lcec.0.3.opmode-display => cia402.0.opmode-display
net x-drv-act-pos lcec.0.3.actual-position => cia402.0.drv-actual-position

# cia402 driver to ethercat
net x-controlword cia402.0.controlword => lcec.0.3.cia-controlword
net x-modes-of-operation cia402.0.opmode => lcec.0.3.opmode
net x-drv-target-pos cia402.0.drv-target-position => lcec.0.3.target-position
Last edit: 1 year 1 week ago by rodw.

Please Log in or Create an account to join the conversation.

More
1 year 1 week ago - 1 year 1 week ago #337026 by Hakan
Here is a way to check pin names without modifying the hal file.
Use the halrun command (linuxcnc off), load lcec and lcec_config. The start halshow in another window and explore names.

debian@plasma:~/linuxcnc/configs/QtPlasma$ halrun
halcmd: loadusr -W lcec_conf ethercat-conf.xml
halcmd: loadrt lcec
Note: Using POSIX realtime
halcmd:

 
Last edit: 1 year 1 week ago by Hakan. Reason: bbcode

Please Log in or Create an account to join the conversation.

More
1 year 1 week ago - 1 year 1 week ago #337038 by SPH
Here's the result of halshow after following your instructions. Is my drive perhaps not defined correctly or something like that? I don't seem to have any pins like your screen shot shows.
Last edit: 1 year 1 week ago by SPH.

Please Log in or Create an account to join the conversation.

More
1 year 1 week ago #337040 by Hakan
Click the D1 node. Obviously it is called D1 in ethercat-conf.xml

Please Log in or Create an account to join the conversation.

Time to create page: 0.329 seconds
Powered by Kunena Forum