Brief Description 
  1.2 Overview of auxiliary functions 
Auxiliary Function Output to PLC (H2) 
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0 
1-3 
1.2  1.2 Overview of auxiliary functions 
M functions 
 
M (special function) 
Address extension  Value  
Value range  Meaning  Value range  Type  Meaning  Number
8)
 
0 (implicit)  - - -  Up to 8 digits  INT  Function  5 
Remarks: 
- - - 
Value range  Meaning  Value range  Type  Meaning  Number
8)
 
1 - 12  Spindle number  1 – 99  INT  Function  5 
Remarks: 
Example: "Spindle stop" for 2nd spindle of the channel: M2=5.  
The master spindle of the channel is addressed if no an address extension is specified. 
Value range  Meaning  Value range  Type  Meaning  Number
8)
 
0 - 99  Any  2147483647  INT  Function  5 
Remarks: 
User-specific M function 
Application 
Controlling machine functions in synchronism with the part program. 
General remarks 
•  The following M functions have a predefined meaning: M0, M1, M2, M17, M30 
M3, M4, M5, M6, M19, M70, M40, M41, M42, M43, M44, M45. 
•  For each M function (M0 - M99), there is a dynamic signal at the NC/PLC interface that 
indicates the validity (new output) of the M function. In addition, 64 further signals can be 
assigned for user M functions. 
References 
/FB/ Description of Function Basic Machines; PLC Basic Program (P3) 
•  For subroutines, there are machine data in which you can set whether the M function for 
the end of part program (M17, M2, and M30) will be output to the PLC: 
MD20800 $MC_SPF_END_TO_VDI 
•  For the predefined M function M40 – M45, only limited redefinition of the output 
specification is possible. 
•  The predefined auxiliary functions M0, M1, M17, M30, M6, M4, M5 cannot be redefined.