{"id":"mcode-m01","model_id":"M1","name":"LinuxCNC M1","summary":"M1 is a LinuxCNC G-code command that pauses a running program temporarily, but only when the optional stop switch is on. During the pause LinuxCNC stays in Auto Mode, so MDI and other manual actions are not enabled. Pressing the resume button restarts the program at the following line.","study_notes":["M1 pauses only if the optional stop switch is on; M0 pauses regardless.","While paused the machine remains in Auto Mode, so MDI and other manual actions are not enabled.","Pressing the resume button restarts the program at the following line.","Programming M0 and M1 in MDI mode is allowed, but the effect will probably not be noticeable because MDI normally stops after each line of input."],"safety_notes":[],"sources":[{"url":"https://linuxcnc.org/docs/html/gcode/m-code.html#mcode:m0-m1","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":"M1","group":"Program Pause","syntax":"M1","parameters":[],"dialect":"LinuxCNC","related":[],"standards":[]},"url":"https://machineschema.com/instruction/mcode-m01","license":"https://creativecommons.org/licenses/by/4.0/"}