LinuxCNC+EtherCAT+Servo

More
7 years 11 months ago #120242 by myz
Replied by myz on topic LinuxCNC+EtherCAT+Servo
I know what you mean. However, the API that receives the ethercat packet and sends the ethercat packet is in user space, so I can only create a user space component, define the pins in the component, and in the.hal file, use the 'net' command to connect the pins I defined to the system pins (for example,net target_pos <= axis.0.mortor-pos-cmd net slave_fb => axis.0.mortor-pos-fb) Then, I loop through the API to send target_pos to the slave station, then call the API to receive feedback, and assign the value to slave_fb. Is this solution feasible? I feel like there's no real time like this, but I can't find examples to refer to.Is there another way?

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

Time to create page: 0.047 seconds
Powered by Kunena Forum