M Functions - Siemens SINUMERIK 840D sl Programming Manual

Hide thumbs Also See for SINUMERIK 840D sl:
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, 09/2011, 6FC5398-1BP40-2BA0
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:
Range of values: 0 ... 2147483647 (max. INT value)
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 M2)
Automatic gear change
Gear stage 1
Gear stage 2
Gear stage 3
Gear stage 4
Auxiliary function outputs
INT
13.1 M functions
381

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents