Ethercat HAL driver

More
7 years 2 months ago #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.

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

More
7 years 2 months ago #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
7 years 2 months ago #143517 by cheng
Replied by cheng on topic Ethercat HAL driver

marcin2458 wrote: 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
7 years 2 months ago - 7 years 2 months ago #143545 by marcin2458
Replied by marcin2458 on topic Ethercat HAL driver

cheng wrote:

marcin2458 wrote: 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: 7 years 2 months ago by marcin2458.

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

More
7 years 2 months ago #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
7 years 2 months ago - 7 years 2 months ago #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: 7 years 2 months ago by chimeno. Reason: Edit

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

Time to create page: 0.735 seconds
Powered by Kunena Forum