Marco Reps video on youtube about EtherCAT

More
27 May 2024 07:31 #301543 by dm17ry

Does anybody know why one would want the touch probe to be wired directly to the drive? And is the probe wired directly to all x,y,and z drives in parallel?

i'm not sure about ethercat, but e,g, mechatrolink protocol has a LATCH function when drives remember the value of the motor position counter on a rising edge of external signal. this should give better resolution than sensing the probe at the controller and then reading back position. i guess ethercat does the same
The following user(s) said Thank You: tommylight, Aciera, chrisfischer

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

More
02 Jun 2024 14:43 #302157 by eduard
"Also, I'm curious if his 1000 Hz MX2 can do vector mode at > 400 Hz, or if it's just V/F."

Yes it can. I'm using the same way, with EtherCAT hat.
The following user(s) said Thank You: tommylight

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

More
02 Jun 2024 14:49 #302159 by eduard
Hey Rod, thanks, I'm looking for the exact same information. I also tried Marco's solution, but lcnc not started, since the ini contains this line in his modification:

HOMEMOD=el8_homecomp

and Lcnc looking for el8_homecomp.so file, which I dont have.

How your solution working? Could you please sahre the ini? Where have to put the comp files, near the cia402.comp?

Thanks.

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

More
04 Jun 2024 12:29 #302307 by rodw
Marcoreps has a git repo with the source code for the missing component that needs to be compiled with halcompile
github.com/marcoreps/linuxcnc_leadshine_EL8

But you may like to try my untested homing component
github.com/rodw-au/cia402_homecomp
At least it is documented :)

I also tried to clean up the code.

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

More
04 Jun 2024 12:46 #302308 by eduard
Thanks Rod.
I looked into halcompile but found rather scattered documentation about it. Here on the forum, they mentioned that it cannot compile .comp files. What exactly is it and what is it used for? Why do we need to compile the .comp file?

I have the same servo drives as Marco, so it would be logical to use his code. I checked your GitHub repo, but it's not clear to me how to modify it for the EL8 drivers.

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

More
04 Jun 2024 15:07 #302321 by eduard
I finally managed to compile the Marco's cia402.comp file, but the el8_homecomp.com looking after homingc. file, which I did not have or not found on lcnc. But on lcnc github exists, but a bit afraid to use it, sinc I did not understad what contains and what is for.
Could someone help me to get a step further?

github.com/LinuxCNC/linuxcnc/blob/master.../emc/motion/homing.c

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

More
04 Jun 2024 18:56 #302336 by rodw
You need to start here
linuxcnc.org/docs/stable/html/man/man9/homecomp.9.html
and probably read the documentation on mygithub which outlines how to use and install a custom homing component.
 

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

More
04 Jun 2024 18:58 #302337 by rodw
You should not need to mdify my component as it follows the cia402 standard, which the el8 driver also follows.

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

More
04 Jun 2024 20:45 #302341 by eduard
Thanks. Finally succed to implement EL8 internal homing. For future reference here is how I did.

Cloned Marco's git: github.com/marcoreps/linuxcnc_leadshine_EL8
in el8_homecomp.comp modified the link to homing.c file, what I get from
github.com/LinuxCNC/linuxcnc/blob/master.../emc/motion/homing.c
with homing.h and motion.h files.

After I run
homecomp --install el8_homecomp.comp
and
homecomp --install cia402.comp

from marcos git repo.

Modified the ini, added to EMCMOT:
HOMEMOD=el8_homecomp

After restarting lcnc and set the servo drive 6098x02 to -6 the internal homing working.
The following user(s) said Thank You: tommylight, cekaa

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

More
06 Jun 2024 14:58 #302476 by cekaa
Hello, I am new to Linuxcncn and I have successfully run the ethercat servo driver. I have been trying to homing 10 days, I have never succeeded. Please, if you can explain it a little more clearly, with pictures or text files, as if you were explaining it to a beginner, I would be very happy. I have been trying day and night for a week, but I have not succeeded. have a nice day . I write to Google Translate

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

Time to create page: 0.092 seconds
Powered by Kunena Forum