M Codes -- Turning

M00

Compulsory program stop

M01

Optional program stop

M02

End of program (usually with reset, no rewind)

M03

Spindle rotation normal (CW for XX tools)

M04

Spindle rotation reverse (CCW for XX tools)

M05

Spindle stop

M07

Coolant mist ON (usually an option)

M08

Coolant ON (coolant pump motor ON)

M09

Coolant OFF (coolant pump motor OFF)

M10

Chuck open

M11

Chuck close

M12

Tailstock quill IN

M13

Tailstock quill OUT

M17

Tailstock quill OUT

M18

Turret indexing reverse

M19

Spindle orientation (optional)

M21

Tailstock forward

M22

Tailstock backward

M23

Thread gradual pull-out ON

M24

Thread gradual pull-out OFF

M30

Program end (always with reset and rewind)

M41

Low gear selection

M42

Medium gear selection 1

M43

Medium gear selection 2

M44

High gear selection

M48

Feedrate override cancel OFF (deactivated)

M49

Feedrate override cancel ON (activated)

M98

Subprogram call

M99

Subprogram end