H2: Auxiliary function outputs to PLC
8.1 Brief description
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
393
8.1.3
Overview of auxiliary functions
M functions
Application
Controlling machine functions in synchronism with the part program.
Further information
• 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 additional signals can be assigned for user M functions.
References:
Function Manual Basic Functions; PLC Basic Program (P3)
• For subprograms, machine data can be used to set whether an output of the M function should be undertaken
for the end of the part program M17, M2 and M30 to the PLC:
MD20800 $MC_SPF_END_TO_VDI (subprogram end to PLC)
• For the predefined M function M40 – M45, only limited redefinition of the output specification is possible.
M (special function)
Address extension
Value
Value range
Meaning
Value range
Type
Meaning
Number
8)
0 (implicit)
- - -
0 ... 99
INT
Function
5
Remarks:
The address extension is 0 for the range between 0 and 99.
Mandatory without address extension: M0, M1, M2, M17, M30
Value range
Meaning
Value range
Type
Meaning
Number
8)
1 ... 20
Spindle number
1 ... 99
INT
Function
5
Remarks:
M3, M4, M5, M19, M70 with address extension as the spindle number. (e.g. M2=5; spindle stop for spindle 2).
Without an address extension, the function influences the master spindle.
Value range
Meaning
Value range
Type
Meaning
Number
8)
0 ... 99
Any
100 ... 2147483647
INT
Function
5
Remarks:
User-specific M functions.
8)
See "Meaning of footnotes" at the end of the overview.