Marco Reps video on youtube about EtherCAT

More
07 Jun 2024 20:01 #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
26 Jun 2024 10:12 #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
26 Jun 2024 13:05 #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
28 Jun 2024 06:59 #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.

More
01 Jul 2024 14:15 #304157 by onceloved
The correct command should be sudo halcompile --install wj200_vfd.comp

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

More
01 Jul 2024 14:49 #304162 by onceloved
sudo apt-get install libmodbus-dev Install libmodbus which contains modbus.h
The following user(s) said Thank You: Macwolf

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

More
26 Aug 2024 17:02 - 26 Aug 2024 17:05 #308718 by Evgeny
Hi guys!I want to repeat the project Marco Reps, I bought these servo amplifiers but I have problems with starting. I have assembled a test configuration on the table and am trying to run it linuxcnc. I've made some progress, but I really need your help!I can rotate the motors if I connect to the USB in the leadshine Motion studioTell me, do I need to change any servo settings for the first launch?I get a response when I request ethercat slaveI have attached screenshots of my startup problem, all the Marco Reps files I am experimenting with and photos of the servo amplifiers (look at what they show on their displays? is this correct?)I really need your help in getting this system up and running. 
Last edit: 26 Aug 2024 17:05 by Evgeny.

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

More
27 Aug 2024 12:26 #308792 by jimwhiting
It appears you have issues with the lcec_conf module?

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.
The following user(s) said Thank You: Evgeny

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

More
27 Aug 2024 21:56 #308855 by Evgeny

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
 

File Attachment:

File Name: linuxcnc_l...27-3.zip
File Size:25 KB


www.leadshine.com/upfiles/downloads/80d2...d8_1687682456724.pdf
Attachments:
The following user(s) said Thank You: Macwolf

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

More
28 Aug 2024 10:17 #308888 by jimwhiting
That's good. Just didn't want you frying hardware!

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.

Time to create page: 4.093 seconds
Powered by Kunena Forum