Marco Reps video on youtube about EtherCAT
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.
Please Log in or Create an account to join the conversation.
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.
- tommylight
- Topic Author
- Away
- Moderator
- Posts: 19188
- Thank you received: 6430
sudo halcompile --install wj200_vfd wj200_vfd.comp
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- jimwhiting
- Offline
- Junior Member
- Posts: 34
- Thank you received: 6
Attached xml file has 4 drives defined and you only have 3 in the picture?
From your pictures of the drives I would also recommend you go and look at the correct installation/wiring recommendations in the manual before you damage one of the drives. (Space around the drive, and not daisy chaining the wiring like you have). I get it is a test setup... so might be changed in the future.
Please Log in or Create an account to join the conversation.
From your pictures of the drives I would also recommend you go and look at the correct installation/wiring recommendations in the manual before you damage one of the drives. (Space around the drive, and not daisy chaining the wiring like you have). I get it is a test setup... so might be changed in the future.
Oh my friend, I know how to install servo amplifiers, this is just a test configuration that lies on the bed. Then I will assemble everything as it should be according to all the rules.
It appears you have issues with the lcec_conf module?
I changed the ethercat-conf.xml file, it didn't work
I don't understand why after turning on my servo amplifiers they have a different indication than Marco Reps
Indication of my amplifiers
they are all determined
Here are the configuration files that are there now
www.leadshine.com/upfiles/downloads/80d2...d8_1687682456724.pdf
Attachments:
Please Log in or Create an account to join the conversation.
- jimwhiting
- Offline
- Junior Member
- Posts: 34
- Thank you received: 6
Indicators are different because the picture from Marco they are in the operational state.
When I configured my xml file I used the halrun to load lcec_conf from the command line without the GUI to check it was all okay.
Can you do "ethercat -v slaves" to grab the model numbers etc just to check they match your XML. After that you will need to catch a more specific error out of the lcec_conf output to narrow down what is wrong.
-Jim.
Please Log in or Create an account to join the conversation.