- Posts: 212
- Thank you received: 0
Marco Reps video on youtube about EtherCAT
2 years 5 months ago #301543
by dm17ry
Replied by dm17ry on topic Marco Reps video on youtube about EtherCAT
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 sameDoes 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?
Please Log in to join the conversation.
2 years 4 months ago #302157
by eduard
Replied by eduard on topic Marco Reps video on youtube about EtherCAT
"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.
Yes it can. I'm using the same way, with EtherCAT hat.
Please Log in to join the conversation.
2 years 4 months ago #302159
by eduard
Replied by eduard on topic Marco Reps video on youtube about EtherCAT
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.
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 to join the conversation.
2 years 4 months ago #302307
by rodw
Replied by rodw on topic Marco Reps video on youtube about EtherCAT
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.
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 to join the conversation.
2 years 4 months ago #302308
by eduard
Replied by eduard on topic Marco Reps video on youtube about EtherCAT
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.
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 to join the conversation.
2 years 4 months ago #302321
by eduard
Replied by eduard on topic Marco Reps video on youtube about EtherCAT
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
Could someone help me to get a step further?
github.com/LinuxCNC/linuxcnc/blob/master.../emc/motion/homing.c
Please Log in to join the conversation.
2 years 4 months ago #302336
by rodw
Replied by rodw on topic Marco Reps video on youtube about EtherCAT
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.
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 to join the conversation.
2 years 4 months ago #302337
by rodw
Replied by rodw on topic Marco Reps video on youtube about EtherCAT
You should not need to mdify my component as it follows the cia402 standard, which the el8 driver also follows.
Please Log in to join the conversation.
2 years 4 months ago #302341
by eduard
Replied by eduard on topic Marco Reps video on youtube about EtherCAT
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.
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.
Please Log in to join the conversation.
2 years 4 months ago #302476
by cekaa
Replied by cekaa on topic Marco Reps video on youtube about EtherCAT
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 to join the conversation.
Time to create page: 0.131 seconds
