{"id":"mcode-m71","model_id":"M71","name":"LinuxCNC M71 Invalidate Stored Modal State","summary":"M71 is a LinuxCNC M-code that invalidates modal state saved at the current call level by M70 or M73. After M71, that saved state cannot be restored, and a later M72 at the same call level will fail. If M71 is used in a subroutine protected by M73, a subsequent return or endsub will not restore modal state.","study_notes":["M71 operates at the current call level.","It invalidates modal state saved with M70 or by M73 at that level.","If a subroutine uses M73 and executes M71, a subsequent return or endsub will not restore modal state.","The document says the usefulness of M71 is dubious and it should not be relied upon because it might go away."],"safety_notes":[],"sources":[{"url":"https://linuxcnc.org/docs/html/gcode/m-code.html#mcode:m71","title":"M-Codes","accessed":"2026-10-26"}],"verification":{"status":"source_checked","checked_at":"2026-10-26","values":3,"method":"llm_source_check"},"updated_at":"2026-10-26","type":"instruction","spec":{"language":"gcode","code":"M71","group":"modal state","syntax":"M71","parameters":[],"dialect":"LinuxCNC","related":[],"standards":[]},"url":"https://machineschema.com/instruction/mcode-m71","license":"https://creativecommons.org/licenses/by/4.0/"}