Programming instructions

NC Programming 17VRS Auxiliary Functions (S, M, Q)
6-1
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
6 Auxiliary Functions (S, M, Q)
6.1 General Information
Auxiliary functions are passed to the SPS and are then executed and ac-
knowledged by the SPS. For this to happen, the switch functions needed
in the SPS must be defined.
NOTE
If an auxiliary function has been output to the SPS,
block processing stops until the function is acknowl-
edged. Thus, programming an auxiliary function which
is not defined in the SPS program will block further
program execution.
Programming auxiliary functions temporarily stops
block processing. This interrupt S-functions like G08
contouring mode (acceleration).
The auxiliary functions are processed in the following
order in the NC-block: S, M, Q.
6.2 Auxiliary Functions ‘M’
The M-functions are instructions which are primarily used to program ma-
chine or controller switching functions (for example, spindle on/off, cutting
fluid on/off, gear change, etc.). An auxiliary function is programmed with a
code number which may be up to three digits long and which uses M as
the address letter. The codes for the auxiliary functions are defined in part
in DIN 66 025 Part 2 and in part by the machine builder.
1 Program control commands M000, M001, M002, M030
2 Spindle control commands Spindle 1 M003, M004, M005, M013, M014
2 Spindle control commands Spindle 1 M103, M104, M105, M113, M114
3 Spindle control commands Spindle 2 M203, M204, M205, M213, M214
4 Spindle control commands Spindle 3 M303, M304, M305, M313, M314
5 Coolant and lubricant Spindle 1 M007, M008, M009
5 Coolant and lubricant Spindle 1 M107, M108, M109
6 Coolant and lubricant Spindle 2 M207, M208, M209
7 Coolant and lubricant Spindle 3 M307, M308, M309
8 Clamp and unclamp Spindle 1 M010, M011
8 Clamp and unclamp Spindle 1 M110, M111
9 Clamp and unclamp Spindle 2 M210, M211
10 Clamp and unclamp Spindle 3 M310, M311
11 Gear range selection Spindle 1 M040, .., M045
11 Gear range selection Spindle 1 M140, .., M145
12 Gear range selection Spindle 2 M240, .., M245
13 Gear range selection Spindle 3 M340, .., M345
14 Spindle override M046, M047
15 Feed override M048, M049
16 Block-active M-functions as well as all
M-functions defined by the machine
builder
M019, M119, M219, M319
Mxxx
Organization of the M functions
in function groups