Programming and Operating Manual (Milling) 
6FC5398-4DP10-0BA6, 09/2017 
125 
 
Miscellaneous function M 
Fu n ctionality 
The miscellaneous function M initiates switching operations, such as "Coolant ON/OFF"  and other functions. 
A small part of M functions have already been assigned a fixed functionality by the CNC manufacturer. The functions not yet 
assigned fixed functions are reserved for  free use of  the machine manufacturer. 
An overview of the M miscellaneous functions used and reserved in the control system can be found in Section "List of 
instructions (Page 327)". 
M... 
;Max. 5 M functions per block
 
Effect 
Activation in blocks with axis movements:
 
If the functions 
 are contained in a block with traversing movements of the axes, these M functions become 
effective 
after the traversing movements.
 
The functions M3, M4 and M5 are output to the internal interface (PLC) before the traversing movements. The axis 
movements only begin once the controlled spindle has ramped up for M3,  M4. For M5,  however, the spindle standstill is not 
waited for.  The axis movements already begin before the spindle stops (default setting). 
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. 
The M function interrupts the G64 continuous path mode and generates exact stop: 
;M function in the block with axis mov em ent, spindle acceler-
ates bef ore the X axis mo vement 
;Max. 5 M functions in the block 
 
Note 
In addition to the M and H functions, T, D and S functions can also be transferred to PLC (Programmable Logic Controller). 
In all, a maximum of 10 such function outputs are possible in a block. 
 
H function 
Fu n ctionality 
With H functions, floating point data (REAL data type - as with arithmetic parameters, see Section "Arithmetic parameter R 
(Page 126)") can be transferred from the program to the PLC. 
The meaning of the values for a given H function is defined by the machine manufacturer. 
H0=... to H9999=... 
;Max. 3 H functions per block
 
N10 H1=1.987 H2=978.123 H3=4 
N20 G0 X71.3 H99=-8978.234 
;With axis movements in block