LinuxCNC+EtherCAT+Servo

More
7 years 11 months ago #119990 by myz
LinuxCNC+EtherCAT+Servo was created by myz
I want to build a Linuxcnc + EtherCAT + Servo demo environment, I used a master card, it provides some APIs, can send and receive ethercat datagrams. The slave is a servo driver that drives the servo motor. My initial thought was: call the datagram api of the master card in base-thread or servo-thread, read the motor-pos-cmd and pass it to the slave, and at the same time, the master reads the position feedback of the slave. Passed to motor-pos-fb, however, I have some questions:
1. Is the idea above me correct?
2. How do I configure the .hal file and the .ini file?
3. What components are needed? For example, the components in the servo_sim.hal file, in addition to the analog components, do you need the rest?

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

More
7 years 11 months ago #119997 by andypugh
Replied by andypugh on topic LinuxCNC+EtherCAT+Servo
I don't know if you have found it, but there is a big EtherCAT thread here:
forum.linuxcnc.org/24-hal-components/22346-ethercat-hal-driver

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

More
7 years 11 months ago #120154 by myz
Replied by myz on topic LinuxCNC+EtherCAT+Servo
but that is a software master,my card is a hard master

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

More
7 years 11 months ago #120161 by myz
Replied by myz on topic LinuxCNC+EtherCAT+Servo
but that is a software master,my card is a hardware master,Can they be used together

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

More
7 years 11 months ago #120167 by myz
Replied by myz on topic LinuxCNC+EtherCAT+Servo
but that is a software master,my card is a hardware master,Can they be used together

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

More
7 years 11 months ago #120225 by cmorley
Replied by cmorley on topic LinuxCNC+EtherCAT+Servo
so you need to make a device driver for HAL.
A HAL driver needs a function to read the card and a function to write to the card and a way to decide what HAL pins to make.

Usually this is a command line way of configuration on initial loading, but there are other ways.

That in very general terms is what is required.

Chris M
The following user(s) said Thank You: myz

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

Time to create page: 0.193 seconds
Powered by Kunena Forum