04.97 Basic Definitions
2.3.7 M-functions
Via M-functions the user has the possibility to define the control of his machine functions when
programming traversing programs.
Programming:
N10 G90 G43 G01 X100.000 F4000.00 M1=10 M2=11 M3=13 D1
M-functions are defined by the address character M1=, M2=, M3= and a figure between 0
and 254. Up to three M-functions can be programmed per traversing block. The user-assigned
M-functions may be programmed as desired. The M-functions with special functions must be
programmed in the M1 group (Exeption: M97 and M98).
• Assignment of M-functions
M1 M2 M3 Special functions
0 Stop at block end
1 1 1 User function
2 Program end
3-16 3-16 3-16 User functions
17 Subroutine end
18 Continuous loop
19-28 19-28 19-28 User functions
29 Subroutine end
30 Program end
31-96 31-96 31-96 User functions
97 97 97 Output programmable
98 98 98 Output programmable
99 99 99 User function
100-254 100-254 100-254 User functions
©
Siemens AG 1997 All Rights Reserved 6ZB5 440-0VU02
2 – 9
WF 723 C (Programming Guide)