You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Machine check: a header block that names axis letters but moves nothing (G52 X0 Y0 Z0) counts as commanding them #369
The machine check (src/machine/session.rs axis_words) counts an axis as commanded by any block whose text names its address letter outside a comment. Since #368 the posts leave out the words of axes the controller placed, but some controllers' headers still name every axis in blocks that move nothing: Haas and FANUC G52 X0 Y0 Z0 (cancel the local coordinate system) and Haas G100 X0 Y0 Z0. After such a header the start pose's axes carry the calibration interval, so a start pose on a travel limit is reported uncertain on those controllers even though no block commands an axis there.
This is conservative (never a missed crash), but it holds back G-code from correct programs on machines homed at their travel limits.
Acceptance
The check recognises, from the decoder's own reading of the block, blocks that set an offset or a mode without moving an axis (G52, the Haas G100 mirror cancel, and any other the decoders already classify as non-motion) and keeps the axes they name where they were, exactly.
A regression test: a Haas NGC and a FANUC 0i-MB program from a start pose on the travel limits releases clear with a nonzero calibration interval, and fails without the change.
An unknown or unclassified block still counts every axis it names (the conservative rule stays the default).
Working on this now. Seen in practice: a Haas DM-1 (Haas NGC post) facing from its home pose, homed at X 0 (travel minimum), is held back as uncertain on axis X after #368.
Activity
10-X-eng commentedon Nov 21, 2026
Working on this now. Seen in practice: a Haas DM-1 (Haas NGC post) facing from its home pose, homed at X 0 (travel minimum), is held back as uncertain on axis X after #368.