without polling, is there a way to know when a motor arrives at a position?

3 months 2 weeks ago #29535004 by andycavatorta
I'm writing an extensive Python wrapper for the whole Roboteq command set.  I'm looking for ways to know when a command completes.  For instance, when a PID process finishes moving a motor to a position in closed-loop mode.  The completion event must be explicit in the internal state of the controller.  Is there a way for an externally-connected computer to receive this event via RS232 or CAN?  I'm aware that the computer could poll the encoder feedback and infer completion when the position stops changing and is within an expected range.  But that is inefficient and prone to ambiguities.  Is there a message that can be sent from the controller to a connected computer upon completion of a task?

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

3 months 2 weeks ago #29535005 by george_f
Hello andycavatorta, it is not possible to achieve the desired result and be sure that the position is reached without polling.
You must have the encoder feedback to be sure that the movement has finished with the desired result.
The following user(s) said Thank You: andycavatorta

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

Moderators: tonysantoni
Time to create page: 0.208 seconds