Programming
8.5 Miscellaneous function (M)
8-173
SINUMERIK 802D sl Operation and Programming Nibbling (BP-N), 06/2006 Edition
6FC5 398-3CP10-0BA0
8.5 Miscellaneous function (M)
Functionality
The special function M initiates switching operations, for example, such as “Coolant ON/
OFF” and other operations on the machine.
Various M functions have already been assigned a fixed functionality by the CNC manufac-
turer. The functions not yet assigned fixed functions are reserved for free use of the machine
manufacturer.
Note:
An overview of the M functions used and reserved in the control system can be found in
Subsection 8.1.6 “List of instructions”.
Programming
M... ; Max. 5 M functions per block
Effect
Effect in blocks with axis movements:
If the functions M0, M1, M2 are contained in a block with traversing movements of the axes,
then these M functions become effective after the traversing movements.
The remaining M functions are output to the PLC with the traversing movements.
If you would like to program an M function directly before or after an axis movement, insert a
separate block with this M function. Please note: This block interrupts the G64 continuous–
path control mode and generates exact stop.
Programming example
N10 ...
N20 X... ; M function in a block with axis movement
N180 M78 M67 M10 M12 M37 ; Max. 5 M functions per block
Note
In addition to M and H functions, T, D, and S functions can also be transferred to the PLC
(programmable logic controller). In all, a maximum of 10 such function outputs are possible
in a block.