Control effort does not update to target velocity #375
Unanswered
mathiassteger
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to control the velocity of an ATV320-motor with CANopen. I have come up with the following piece of code:
The code itself works as intended. The Motor starts ramping to the expected target velocity. But when my
rpdo_1_thread
starts applying the new values, the motor does not change its control effort and i do not understand why. Here is the relevant part of the output when setting the logger toDEBUG
:I tried
rpdo[1].transmit()
, which applies the correct velocity to the control effort, but the motors power state changes toSWITCHED_ON_DISABLED
. Then, i have to enable the motor again by sendingOPERATION_ENABLED
. Yet i want to continuously update values instead of stopping the motor for every update.Any help is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions