{"id":"mcode-m61","model_id":"M61","name":"LinuxCNC M61","summary":"M61 sets the current tool number while in MDI or Manual mode without performing a tool change. It is used, for example, when LinuxCNC starts with a tool already in the spindle and the current tool number needs to be set. The Q word gives the tool number and must be 0 or greater.","study_notes":["M61 changes the current tool number without performing a tool change.","The document gives powering up LinuxCNC with a tool already in the spindle as an example use for M61."],"safety_notes":["M61 does not change the tool length offset; use G43 after M61 to change the tool length offset.","It is an error to program Q less than 0."],"sources":[{"url":"https://linuxcnc.org/docs/html/gcode/m-code.html#mcode:m61","title":"M-Codes","accessed":"2026-10-26"}],"verification":{"status":"source_checked","checked_at":"2026-10-26","values":5,"method":"llm_source_check"},"updated_at":"2026-10-26","type":"instruction","spec":{"language":"gcode","code":"M61","syntax":"M61 Q-","parameters":[{"name":"Q","description":"Tool number to set as current. It is an error if Q is not 0 or greater."}],"dialect":"LinuxCNC","related":["gcode-g43"],"standards":[]},"url":"https://machineschema.com/instruction/mcode-m61","license":"https://creativecommons.org/licenses/by/4.0/"}