-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How does polling work in CiA 402 driver? #331
Comments
Possibly one of the project maintainers can help answer your specific question about how to get polling mode working, but this caught my attention as I've successfully used Elmo motor controllers with this library by setting polling to false, so are you sure polling set to true is something you need?
The way I get those values in my system is by including the following section in my bus.yml file:
and then the position and velocity are available as PDOs. You could find the index of the actual current / torque in the Elmo manual and include that as a PDO to get effort as well, I believe. |
The issue is that when I try to do PDO mapping, the device does not boot up. Have you ever seen an issue of that sort? This is the output that I see in the terminal:
This was the output that I saw on the canbus:
This is the eds file which I am working with: |
Describe the bug
I am trying to use the CiA 402 driver to be able to control a servomotor via an elmo motor controller. An issue I am encountering is that when I turn on polling mode, I am not able to move through the state machine of the servomotor as the polling mode constantly writes to the controlword which keeps it in an operation disabled mode. I was able to go through the source code for the driver and found two functions in the motor.cpp file. I am unsure how these are operating but I believe these functions are determining what parameters to poll and what to write to the controlword of the motor. If someone could explain what the functions are doing, it would be of massive help. Thanks!
Logs
This is the CAN log and terminal output when I enable polling mode:
Note: The last 8 messages in the log repeat as they are the polling messages
Setup:
Additional context
This is my bus.yml file. When I set polling to false, my motor starts to spin but when I set it to true, the motor shaft does not spin.
These are the specific functions in the motor.cpp file that I believe control what is being polled.
The text was updated successfully, but these errors were encountered: