Skip to content

Improving setPosition when absolute encoders are used #8

Description

@kmpeters

The driver uses the LP command to redefine the both the motor and encoder positions. This is a problem when an absolute encoder is used, because there is currently no way to get back to the original absolute encoder scale without resetting the controller.

I asked OMS if there were better ways of handling the setting of positions when absolute encoders were used and this was the reply:

"The controller does not store the offset but stays with that offset as the difference between the absolute encoder reading and the internal encoder position until LP, LPE, or some other command overwrites the encoder position.
Using the LO command instead of LP (pg 2-165 of the MAX Command Manual) allows you to only change the motor position, allowing the absolute encoder and encoder position to remain at the same offset from each other.

The SEA command (pg 2-233) allows you to load the encoder position with the current absolute encoder position plus an offset. A related command SMEA (pg 2-238) allows you to load the encoder position and the motor position with the reading from the absolute encoder position."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions