M-code reference

M62 M-Code: Digital Output On, Synchronised (LinuxCNC)

Digital Output On, Synchronised (LinuxCNC) — LinuxCNC: turns a digital output on synchronised with the start of the next motion block (M63 off). Used for lasers, plasma torches and dispensers that must…

By cnccode · Updated
PropertyValue
CodeM62
FunctionDigital Output On, Synchronised (LinuxCNC)
Used onMilling machines

What does M62 do?

LinuxCNC: turns a digital output on synchronised with the start of the next motion block (M63 off). Used for lasers, plasma torches and dispensers that must switch exactly with motion. M64/M65 switch immediately.

M62 example

Example
M62 P0
G01 X100 F2000
M63 P0

Tips

  • P selects the output number.

M-codes vary between machine builders. Codes from M00 to M09, M30 and M98/M99 are nearly universal; most others are defined by the machine builder. Always check the M-code list in your machine manual.

Most-used M-codes

CodeFunction
M00Program Stop
M01Optional Stop
M03Spindle On Clockwise
M04Spindle On Counter-Clockwise
M05Spindle Stop
M06Tool Change
M08Flood Coolant On
M09Coolant Off
M30Program End and Rewind
M98Subprogram Call
M99Subprogram Return / Loop

Frequently asked questions

What does M62 mean on a CNC machine?
M62 is Digital Output On, Synchronised (LinuxCNC). LinuxCNC: turns a digital output on synchronised with the start of the next motion block (M63 off). Used for lasers, plasma torches and dispensers that must switch exactly with motion. M64/M65 switch immediately.