Marco Reps video on youtube about EtherCAT

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

More
2 years 4 months ago #302562 by eduard
Hi, I'm also new in lcnc, so maybe not so helpful what I write.

Clone these 2 repos (or download az zip)
github.com/marcoreps/linuxcnc_leadshine_EL8
github.com/LinuxCNC

Clopy from the second these files in to a known directory (/home/cnc/linuxcnc-dev/emc/motion/) for example.
homing.c
homing.h
motion.h

from the first repo, edit the el8_homecomp file, and change the path to homing.c file, to where you saved your files.

compile the cia402.comp:
sudo homecomp --install cia402.comp

compile the el8_homecomp.comp:
sudo homecomp --install el8_homecomp.comp

edit your axis.ini (or whatever is your gui)
after the EMCMOT, paste this line:
HOMEMOD=el8_homecomp

So thats it. The rest is setting up the servos, and the internal homing in the drives. Without it, you can not use this process, since the servos not responding to homing request.

It is quite possible that I did not write something correctly, as LinuxCNC is new to me as well. If anyone has any additions, please feel free to add them.
The following user(s) said Thank You: cekaa

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

More
2 years 4 months ago #303821 by DPFlex
Hi all,
I could not start Linuxcnc, it has issue
"ERROR: wj200_vfd unable to create libmodbus connection. - No such file or directory
./EL8_machine.hal:7: waitpid failed wj200_vfd wj200_vfd"

I downloaded wj200_vfd.comp from "linuxcnc/src/hal/user_comps/wj200_vfd" to install but it said that no "modbus.h".
I searched linuxcnc repo, could not find modbus.h file.

Any advise to solve ? Thank you.

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

More
2 years 4 months ago #303827 by tommylight
Open a terminal, navigate to where the downloaded file is located and type:
sudo halcompile --install wj200_vfd wj200_vfd.comp

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

More
2 years 4 months ago #303956 by DPFlex
Tks Tommylight.
1. I tried your advice "sudo halcompile --install wj200_vfd wj200_vfd.comp"
It has error "Unrecognized file type for mode install: 'wj200_vfd"
2. I tried this command "sudo halcompile --install wj200_vfd.comp"
It has error "fatal error: modbus.h: No such file or directory"
I am new to LCNC, please be patient with me :)
Thank you.

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

Time to create page: 0.188 seconds
Powered by Kunena Forum