Skip to content

Machine check: a header block that names axis letters but moves nothing (G52 X0 Y0 Z0) counts as commanding them #369

Closed

Description

@10-X-eng

Follow-up to #367 / #368.

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).

Activity

  1. added
    claimedSomeone is working on this issue; pick another
    on Nov 21, 2026
  2. 10-X-eng commented on Nov 21, 2026

    @10-X-eng
    ContributorAuthor

    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.

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

    claimedSomeone is working on this issue; pick another

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions