Programming instructions
NC Programming 17VRS Variable Assignments and Arithmetic Functions
10-5
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
The programmable M functions are subdivided into 16 M function groups.
Legal address for reads:
M(<M function group[1..16]>)
Legal address for writes:
M = expression
M-function M-function
Group
Active Meaning
M000, M001, M002, M030 1 modal Program control commands
M3, M4, M5, M13, M14 2 modal Spindle commands S
M103, M104, M105, M113, M114 2 modal Spindle commands spindle 1
M203, M204, M205, M213, M214 3 modal Spindle commands spindle 2
M303, M304, M305, M313, M314 4 modal Spindle commands spindle 3
M007, M008, M009 5 modal Coolant S
M107, M108, M109 5 modal Coolant S1
M207, M208, M209 6 modal Coolant S2
M307, M308, M309 7 modal Coolant S3
M010, M011 8 modal Clamp & Unclamp S
M110, M111 8 modal Clamp & Unclamp S1
M210, M211 9 modal Clamp & Unclamp S2
M310, M311 10 modal Clamp & Unclamp S3
M040, ..., M045 11 modal Gear selection S
M140, ..., M145 11 modal Gear selection S1
M240, ..., M245 12 modal Gear selection S2
M340, ..., M345 13 modal Gear selection S3
M046, M047 14 modal Spindle override
M048, M049 15 modal Feed override
M019, ..., M319, Mxxx 16 block Spindle positioning, auxiliary M function
The M functions which are active only in the given NC block can only be
read in the NC block in which they are programmed. Otherwise a value of
"1" is output when the "block-active M functions" are read.
@120=M(13) Write actively programmed group (13) M function to the
NC variable.
M=@121 Set an M function via the contents of the NC variable.
M functions