Skip to content

fix realtive movement#1174

Merged
PTKu merged 1 commit into
devfrom
1152-bug-cmmt-as-while-in-torque-control-loses-axis-position
Jun 8, 2026
Merged

fix realtive movement#1174
PTKu merged 1 commit into
devfrom
1152-bug-cmmt-as-while-in-torque-control-loses-axis-position

Conversation

@kuh0005

@kuh0005 kuh0005 commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

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.

@kuh0005 kuh0005 requested review from PTKu and TomKovac June 8, 2026 04:19
@PTKu PTKu merged commit df34a95 into dev Jun 8, 2026
1 check passed
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.

2 participants