Ethercat HAL driver

More
29 Jul 2019 18:38 - 29 Jul 2019 18:38 #140911 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hello Tommy, attached list of ethercat devices extracted from linux-ethercat-master, in this list are the basics, in theory the entire ELXXXX series can be controlled without problems, although they require programming, initial configuration and a little experience, Greetings
Chimeno
Attachments:
Last edit: 29 Jul 2019 18:38 by chimeno.
The following user(s) said Thank You: tommylight

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

More
29 Jul 2019 18:53 - 29 Jul 2019 18:58 #140914 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hi guys,
I attach a new EL3403 controller.
regards
Chimeno
Attachments:
Last edit: 29 Jul 2019 18:58 by chimeno.
The following user(s) said Thank You: tommylight, Grotius, CORBETT

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

More
29 Jul 2019 21:23 #140920 by tommylight
Replied by tommylight on topic Ethercat HAL driver

Hello Tommy, attached list of ethercat devices extracted from linux-ethercat-master, in this list are the basics, in theory the entire ELXXXX series can be controlled without problems, although they require programming, initial configuration and a little experience, Greetings
Chimeno

Muchas gracias, eso es exactamente lo que estaba buscando !
Google translate
Thank you very much, that is exactly what i was looking for !
The following user(s) said Thank You: chimeno

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

More
28 Aug 2019 08:21 #143415 by marcin2458
Replied by marcin2458 on topic Ethercat HAL driver
Hello everyone,

for some time, I have been trying to configure the Stober's inverter MDS5015 on ethercat. I supported examples found on the internet, among others from sittner or roschi. So far I haven't even managed to move the engine shaft even though the configuration seems to be good. Please, could anyone look at my configuration and indicate where I made the mistake?

Best regards,
Marcin

Warning: Spoiler!


Warning: Spoiler!

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

More
28 Aug 2019 09:00 #143420 by cheng
Replied by cheng on topic Ethercat HAL driver
Try to modify xml according to the picture


Maybe xmlfile couldn't be copied, so I modified the screenshot.
I want you to copy and paste xmlfile into the comments.
Attachments:

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

More
28 Aug 2019 10:35 #143436 by marcin2458
Replied by marcin2458 on topic Ethercat HAL driver
I tried it, but it doesn't work.

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

More
29 Aug 2019 02:10 #143517 by cheng
Replied by cheng on topic Ethercat HAL driver

I tried it, but it doesn't work.


Please execute "dmesg" after the error.

You need to determine if the servo drive you are using now, MDS5015, can use the stmds5k driver, and if not, you need to use the "generic" driver.

It is recommended that you search the forum for similar questions. I've seen similar questions before.

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

More
29 Aug 2019 11:16 - 29 Aug 2019 11:33 #143545 by marcin2458
Replied by marcin2458 on topic Ethercat HAL driver

I tried it, but it doesn't work.


Please execute "dmesg" after the error.

You need to determine if the servo drive you are using now, MDS5015, can use the stmds5k driver, and if not, you need to use the "generic" driver.

It is recommended that you search the forum for similar questions. I've seen similar questions before.


I don't have any errors. The program opens normally, the axis changes its position on the computer but the motor shaft does not move. I read a "lcec_stmds.c" file and there are used the same variables as I have uploaded to the inverter (Fast Reference Value). That means the inverter should be using the stmds5k driver. I don't found any similar questions on forum which can help me. I add my new configuration

File Attachment:

File Name: mm.hal
File Size:1 KB

File Attachment:

File Name: mm.ini
File Size:1 KB

File Attachment:

File Name: mm.xml
File Size:0 KB

File Attachment:

File Name: dmesg.txt
File Size:66 KB
Attachments:
Last edit: 29 Aug 2019 11:33 by marcin2458.

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

More
29 Aug 2019 12:27 #143552 by sqmathlete
Replied by sqmathlete on topic Ethercat HAL driver
@Marci2485

If you open up LinuxCNC without any errors than the problem could be that you are not bringing the servo into the op state.I think that if you look at the example files and around the middle of this thread there is some information about initializing your amps.
Try setting the control word in the following order
In the hal file, (sorry I can't remember the exact names)

# Control word = 0x06
setp voltage enable? 1

#Control word = 0x07
setp quickstop?

#Link linuxcnc estop/power to servo enable, Control word will toggle between 0x07 and #0x0F
net xxxxxxx xxxxxx xxxxxx

Kind regards,
Dan

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

More
29 Aug 2019 18:04 - 29 Aug 2019 18:13 #143587 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hi marcin2458,
I don't know if I can help you, the first thing I would do would be in the "ethercat slave" terminal to see that it is in "PREOP +" mode, then start linuxcnc, while running linuxcnc, terminal "ethercat slave" see "OP +" if the "+ "change to an" E "configuration error, can you look at this ?, are you using the latest version of" linuxcnc-ethercat "?

Can you eliminate this line if it happens?
"setp lcec.0.0.srv-enable 1"

regards
Chimeno
Last edit: 29 Aug 2019 18:13 by chimeno. Reason: Edit

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

Time to create page: 2.371 seconds
Powered by Kunena Forum