Skip to content

fix realtive movement#1174

Open
kuh0005 wants to merge 1 commit into
devfrom
1152-bug-cmmt-as-while-in-torque-control-loses-axis-position
Open

fix realtive movement#1174
kuh0005 wants to merge 1 commit into
devfrom
1152-bug-cmmt-as-while-in-torque-control-loses-axis-position

Conversation

@kuh0005
Copy link
Copy Markdown
Collaborator

@kuh0005 kuh0005 commented Jun 5, 2026

This pull request enhances the AxoCmmtAs drive control logic by improving how the end position of relative moves is tracked and validated. The main changes involve adding a new process variable for the expected end position and tightening the position-reached condition to ensure the axis is within the configured window.

Drive move logic improvements:

  • Added a new process variable MC_MoveRelativeEndPosition_PV to store the expected end position for relative moves in the AxoCmmtAs class.
  • Set MC_MoveRelativeEndPosition_PV to the sum of the current position and the move distance when initiating a relative move, ensuring accurate target tracking. [1] [2]
  • Enhanced the move completion check to require both the drive's reported target position reached and that the actual position is within the configured InPositionWindow of MC_MoveRelativeEndPosition_PV, improving move accuracy and safety.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant