HUST CNC H6D-T Manual
3 - 68
3.25 Auxiliary Functions, M-code, S-code
The auxiliary function M-code is comprised of the letter M and 2 digits attached behind
(M-codes for general), different codes represents different functions as shown below:
Currently, H6D-T Series provides the following M-codes:
Table 3-10
M-CODE Function
M00 Program Suspension.
M01 Selective stop
M02 Program End.
M03 Spindle rotates in normal direction
M04 Spindle rotates in reversed direction
M05 Spindle stops
M08 Coolant ON.
M09 Coolant OFF.
M10 Spindle chuck tightened
M11 Spindle chuck loosened
M12 Tailstock forward
M13 Tailstock backward
M15 Count plus 1
M16 Count clear (to zero)
M30
Program end
M33
Workpiece Collector Protrude
M34
Workpiece Collector Extract
M35
Tailstock Chuck Clamp
M36
Tailstock Chuck Release
M40
Chip Remove CW
M41
Chip Remove CCW
M42
Chip Remove Stop
M43
Feeder Start
M45
Select Skip Start
M46
Select Skip Close
M47
The Spindle should rotate after releasing the Chuck
M48
When releasing the Chuck, prohibit the spindle rotation.