Skip to content

1152 bug cmmt as while in torque control loses axis position#1166

Merged
kuh0005 merged 6 commits into
devfrom
1152-bug-cmmt-as-while-in-torque-control-loses-axis-position
Jun 2, 2026
Merged

1152 bug cmmt as while in torque control loses axis position#1166
kuh0005 merged 6 commits into
devfrom
1152-bug-cmmt-as-while-in-torque-control-loses-axis-position

Conversation

@kuh0005
Copy link
Copy Markdown
Collaborator

@kuh0005 kuh0005 commented Jun 1, 2026

Summary

  • Fixes [BUG] Cmmt-As while in torque control loses axis position #1152: AxoCmmtAs no longer "loses" axis position while in torque control — a positioning move now completes only when targetPosReached (ZSW1.X10) AND the actual position is within the new InPositionWindow tolerance.
  • Removes an unstable torque-control guard that spuriously raised programming error 1542 when targetPosReached asserted during torque-control states.
  • Adds InPositionWindow (LREAL, default 0.05) to AxoDrive_Config (components.drives) to back the in-position check.
  • Annotates PROFIdriveTelegram_111_ZSW1 signals with hardware bit positions (X0–X15); disables an unfinished dynamic-torque-boost write (PNU 13073).

Changes from CHANGELOG

AxoCmmtAs loses axis position while in torque control

Note: PLC bug fix in src/components.festo.drives (AxoCmmtAs, PROFIdriveTelegram_111) and src/components.drives (AxoDrive_Config). No public-API removal. Branch: 1152-bug-cmmt-as-while-in-torque-control-loses-axis-position. Issue #1152, PR #1166.

  • fix: AxoCmmtAs positioning no longer advances past the target-reached step on the Telegram111_In.ZSW1.targetPosReached (X10) bit alone. It now additionally requires ABS(Position - ActualPosition) <= _AxisReference^.Config.InPositionWindow before transitioning, so a drive that asserts targetPosReached while still off target (e.g. after a torque-control phase) no longer loses its position.
  • fix: Removed an unstable torque-control guard that raised programming error 1542 (eAxoMessageCategory#ProgrammingError, MC_TorqueControlErrorID := 1542) whenever targetPosReached became true during torque-control states 126/127. Disabled pending further investigation.
  • feat: AxoDrive_Config gains an InPositionWindow parameter (LREAL, default 0.05).
  • chore: Annotated PROFIdriveTelegram_111_ZSW1 status signals with hardware bit positions (X0–X15) and added matching comments to the ZSW1 mapping in AxoCmmtAs.
  • chore: Disabled an unfinished dynamic-torque-boost parameter write (PNU 13073).
  • docs: Updated components.festo.drives docs (CHANGELOG 0.61.1, TROUBLES, AxoCmmtAs.md).

Commits

Other:

(merge commit 478a31f omitted)

Diff stat

 src/components.drives/ctrl/src/AxoDrives/AxoDrive_Config.st                |  2 ++
 src/components.festo.drives/ctrl/src/AxoCmmtAs/AxoCmmtAs.st                | 74 +++++++++++++++++++-----
 src/components.festo.drives/ctrl/src/PROFIdrive/PROFIdriveTelegram_111.st  | 32 +++++-----
 3 files changed, 80 insertions(+), 39 deletions(-)

Test plan

  • PLC code compiles via apax build; affected positioning + torque-control sequences exercised in PLCSIM Advanced / on a CMMT-AS axis
  • Tune InPositionWindow per axis and confirm a move neither stalls (too small) nor completes off-target (too large)

Generated by /pr-description-update. Last regenerated: 2026-06-01.
closes #1152

@kuh0005 kuh0005 linked an issue Jun 1, 2026 that may be closed by this pull request
Document the AxoCmmtAs torque-control position-loss fix:
in-position window gate, ZSW1 bit-position annotations, and
the disabled 1542 torque-control guard.

- per-library CHANGELOG 0.61.1 + GitVersion.yml bump
- TROUBLES: position-loss + 1542 issues, ZSW1 diagnostics,
  InPositionWindow tuning, known limitations
- AxoCmmtAs.md: positioning-tolerance section
- central CHANGELOG.md: [FIX] entry

Refs #1152, #1166
@PTKu
Copy link
Copy Markdown
Contributor

PTKu commented Jun 1, 2026

@kuh0005 can you please add the information about drive settings that are required for torque mode to operate properly? Thanks.
src/components.festo.drives/docs/AxoCmmtAs.md

@PTKu PTKu self-requested a review June 1, 2026 18:53
@kuh0005 kuh0005 merged commit f5341c5 into dev Jun 2, 2026
3 checks 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.

[BUG] Cmmt-As while in torque control loses axis position

2 participants