Hurco M-Codes

M-Code Definition
M00 Interrupts spindle and cooling functions, stops part program execution.
M01 Program stop, often used when the operator needs to re-clamp the workpiece.
M02 Marks the end of the program, stops spindle, cooling, and axis feed.
М0З Starts spindle in clockwise direction.
M04 Starts spindle in counterclockwise direction.
M05 Turns off the spindle.
M06 Requests an automatic tool change.
M07 Turns on cooling system 2.
M08 Turns on cooling system 1.
M09 Turns off cooling systems 1 and 2.
M10 Turns on cooling systems 1 and 2.
M12 Clamps the C-axis (rotary table).
M13 Releases the C-axis (rotary table).
M20 Advances the shifting device by one position.
M21 Initiates lubrication process.
M25 Moves the Z-axis back to the starting position (tool change position).
M26 Selects the workpiece probing signal.
M27 Selects the tool probing signal.
M29 Activates synchronous thread cutting.
M30 Indicates the end of the main program.
M32 Clamps the A-axis (rotary table).
M33 Releases the A-axis (rotary table).
M34 Clamps the B-axis (rotary table).
M35 Releases the B-axis (rotary table).
M36 Turns off the servos.
M38 Captures and sets the state of the laser signal 'OK'.
M39 Captures and sets the state of the static laser signal.
M40 Captures and sets the state of the dynamic laser signal.
M41 Deactivates two-touch probing when using G31.
M42 Activates automatic two-touch probing with G31. If a touch occurs during the G31 movement, the probe automatically retracts and attempts a second touch with reduced feed.
M43 Increases purge air.
M44 Decreases purge air.
M45 Opens the shutter.
M46 Closes the shutter.
M47 Turns on the laser transmitter.
M48 Turns off the laser transmitter.
M49 Turns on the laser receiver.
M50 Turns off the laser receiver.
M52 Activates auxiliary output 1.
M53 Activates auxiliary output 2.
M54 Activates auxiliary output 3.
M55 Activates auxiliary output 4.
M56 Rotates the pallet changer for a pallet change without confirmation.
M57 Rotates the pallet changer to pallet 1.
M58 Rotates the pallet changer to pallet 2.
M59 Turns on forward operation of the chip conveyor.
M60 Turns on reverse operation of the chip conveyor.
M61 Stops the chip conveyor.
M62 Deactivates auxiliary output 1.
M63 Deactivates auxiliary output 2.
M64 Deactivates auxiliary output 3.
M65 Deactivates auxiliary output 4.
M68 Activates flood cooling.
M69 Deactivates flood cooling.
M76 Normal A-axis operation (default setting).
M77 Reverses A-axis operation.
M78 Normal B-axis operation (default setting).
M79 Reverses B-axis operation.
M80 C-axis rotation is positive (default setting).
M81 C-axis rotation is negative.
M98 Subprogram call.
M99 Jump, return from subprogram.