EtherCAT XML Configuration help (Elmo drive)
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 595
- Thank you received: 188
27 Feb 2025 16:25 - 27 Feb 2025 16:27 #322799
by Hakan
Replied by Hakan on topic EtherCAT XML Configuration help (Elmo drive)
Good so far.
lcec_configgen reads the info from the ELMO drives and formats it in a suitable way.
You can read out the info yourself with "ethercat -p 0 sdos", "ethercat -p 0 pdos" and "ethercat -p 0 -v slaves"
For the error you have, was kind of expected. No easy way I know off to know the halpin names of a built-in device like the basic_cia402.
But you can find out with this series of commands (linuxcnc not started)From that output you should be able to find something that resembles cia-statusword (index 0x6041). Do the same for the other missing variables.
So with that info, you replace lcec.0.0.cia-statusword with whatever the output above says for 0x6041.
One can also look up the index of interest, any places but here are two basic ones
doc-legacy.synapticon.com/software/44/ob...pdo/rxpdo/index.html
doc-legacy.synapticon.com/software/44/ob...pdo/txpdo/index.html
You will probably need that for the other halpins, I guess they will give the same type of error.
lcec_configgen reads the info from the ELMO drives and formats it in a suitable way.
You can read out the info yourself with "ethercat -p 0 sdos", "ethercat -p 0 pdos" and "ethercat -p 0 -v slaves"
For the error you have, was kind of expected. No easy way I know off to know the halpin names of a built-in device like the basic_cia402.
But you can find out with this series of commands (linuxcnc not started)
halcmd loadusr -W lcec_conf ethercat-conf-right-name-here.xml
halcmd loadrt lcec
halcmd show pin
So with that info, you replace lcec.0.0.cia-statusword with whatever the output above says for 0x6041.
One can also look up the index of interest, any places but here are two basic ones
doc-legacy.synapticon.com/software/44/ob...pdo/rxpdo/index.html
doc-legacy.synapticon.com/software/44/ob...pdo/txpdo/index.html
You will probably need that for the other halpins, I guess they will give the same type of error.
Last edit: 27 Feb 2025 16:27 by Hakan.
Please Log in or Create an account to join the conversation.
- SteveCap
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
27 Feb 2025 17:42 - 27 Feb 2025 17:44 #322805
by SteveCap
Replied by SteveCap on topic EtherCAT XML Configuration help (Elmo drive)
I have attached the output of those commands. I am having a hard time understanding what information to take from the `show pin` output and where (cia402.hal?) to put it exactly. for that line regarding statusword it shows:
" 10 u32 OUT 0x00000000 lcec.0.D1.srv-cia-statusword"
and I could not find any reference to 0x6041 anywhere.
Also, after running `halcmd loadrt lcec` , the ethercat network activity stops, where usually it's blinking. not sure if that is expected or not.
Steve Cap
" 10 u32 OUT 0x00000000 lcec.0.D1.srv-cia-statusword"
and I could not find any reference to 0x6041 anywhere.
Also, after running `halcmd loadrt lcec` , the ethercat network activity stops, where usually it's blinking. not sure if that is expected or not.
Steve Cap
Attachments:
Last edit: 27 Feb 2025 17:44 by SteveCap.
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 595
- Thank you received: 188
27 Feb 2025 18:02 #322806
by Hakan
Replied by Hakan on topic EtherCAT XML Configuration help (Elmo drive)
There it is, that's the name lcec.0.D1.srv-cia-statusword instead of lcec.0.0.cia-statusword you have in the hal file.
Replace in cia402.hal file and you should come one step further, to the next variable.
The index 0x6041, you don't seem to need that now when the naming pattern is so obvious from the listing.
I guess EtherCAT went out of OP mode, to INIT or PREOP. No harm done. You have started linuxcnc in a very rudimentary state. If you like to, you can stop it with "halrun -U". Optional. EtherCAT continues to work and linuxcnc will make it enter the state it needs to be in.
Replace in cia402.hal file and you should come one step further, to the next variable.
The index 0x6041, you don't seem to need that now when the naming pattern is so obvious from the listing.
I guess EtherCAT went out of OP mode, to INIT or PREOP. No harm done. You have started linuxcnc in a very rudimentary state. If you like to, you can stop it with "halrun -U". Optional. EtherCAT continues to work and linuxcnc will make it enter the state it needs to be in.
Please Log in or Create an account to join the conversation.
- SteveCap
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
27 Feb 2025 20:06 #322815
by SteveCap
Replied by SteveCap on topic EtherCAT XML Configuration help (Elmo drive)
Attachments:
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 595
- Thank you received: 188
27 Feb 2025 20:15 #322816
by Hakan
Replied by Hakan on topic EtherCAT XML Configuration help (Elmo drive)
Attachments:
Please Log in or Create an account to join the conversation.
- SteveCap
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
27 Feb 2025 20:39 #322817
by SteveCap
Replied by SteveCap on topic EtherCAT XML Configuration help (Elmo drive)
Attachments:
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 595
- Thank you received: 188
27 Feb 2025 20:43 #322819
by Hakan
Replied by Hakan on topic EtherCAT XML Configuration help (Elmo drive)
Attachments:
Please Log in or Create an account to join the conversation.
- SteveCap
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
27 Feb 2025 20:52 #322820
by SteveCap
Replied by SteveCap on topic EtherCAT XML Configuration help (Elmo drive)
Attachments:
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 595
- Thank you received: 188
27 Feb 2025 21:44 - 27 Feb 2025 23:04 #322826
by Hakan
Replied by Hakan on topic EtherCAT XML Configuration help (Elmo drive)
Have to act on appTimePeriod message.
Check line two in this file github.com/dbraun1981/hal-cia402/blob/ma...le/ethercat-conf.xml and well you can copy that line to your file.
You can add line 4 as well if it isn't there already. Pay attention to placements, line 2 in the master line. Line 4 under slave, for the three drives.
Check line two in this file github.com/dbraun1981/hal-cia402/blob/ma...le/ethercat-conf.xml and well you can copy that line to your file.
You can add line 4 as well if it isn't there already. Pay attention to placements, line 2 in the master line. Line 4 under slave, for the three drives.
Last edit: 27 Feb 2025 23:04 by Hakan.
Please Log in or Create an account to join the conversation.
- SteveCap
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
07 Mar 2025 17:06 #323440
by SteveCap
Replied by SteveCap on topic EtherCAT XML Configuration help (Elmo drive)
Sorry for the long delay, have been battling a nasty bug of the human variety. I have added line 2 and line 4 to my xml and it has resolved the appTimePeriod errors. I also simplified the .xml and .hal file to only deal with one ethercat node for the time being until i manage to get my head around all this, lol. Once linuxcnc loaded with no errors I clicked the power button and tried to home all axis. This resulted in `joint0 following error`.
Attachments:
Please Log in or Create an account to join the conversation.
Time to create page: 0.248 seconds