M Functions - Siemens SINUMERIK 828D Programming Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

13.1

M functions

Function
The M functions initiate switching operations, such as "Coolant ON/OFF" and other functions
on the machine.
Syntax
M<value>
M[<address extension>] = <value>
Significance
:
M
<address extension>
<value>
Predefined M functions
Certain important M functions for program execution are supplied as standard with the
control:
M function
M0*
M1*
M2*
M3
M4
M5
M6
M17*
M19
M30*
M40
M41
M42
M43
M44
Fundamentals
Programming Manual, 07/2010, 6FC5398-1BP40-0BA0
:
:
Meaning
Programmed stop
Optional stop
End of main program with return to beginning of program
Spindle clockwise
Spindle counterclockwise
Spindle stop
Tool change (default setting)
End of subroutine
Position the spindle
End of program (as
Automatic gear change
Gear stage 1
Gear stage 2
Gear stage 3
Gear stage 4
Address for the programming of the M functions.
The extended address notation applies for some M
functions (e.g. specification of the spindle number for
spindle functions).
Assignment is made to a certain machine function through
the value assignment (M function number).
Type:
INT
Range of values:
0 ... 2147483647 (max. INT value)
)
M2
Auxiliary function outputs
13.1 M functions
397

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents