General Purpose M Codes - Siemens Sinumerik 802D sl Programming Manual

Iso turning
Hide thumbs Also See for Sinumerik 802D sl:
Table of Contents

Advertisement

Movement Control Commands
3.7 Miscellaneous function (M function)
Limitations
Only one M function replacement (or one subprogram call) can be performed on
each part program line. Conflicts with other subprogram calls are reported with
alarm 12722. No more M functions will be replaced in the subprogram replaced.
Generally, the same limitations apply as with G65.
Configuring example
Call the subprogram M101_MAKRO by the M function M101
$MN_EXTERN_M_NO_MAC_CYCLE[0] = 101
$MN_EXTERN_M_NO_MAC_CYCLE_NAME[0] = "M101_MAKRO"
Call of the subprogram M6_MAKRO by the M function M6.$MN_EX-
TERN_M_NO_MAC_CYCLE[1] = 6
$MN_EXTERN_M_NO_MAC_CYCLE_NAME[1] = "M6_MAKRO"
Program examples for tool change with M function:
PROC MAIN
...
N10
...
N90
...
N0010
N0020
display($C_X_PROG)
N0030
N0040
display($C_V)
N0050
N0060
3.7.4

General purpose M codes

Other general M codes
The functions of the M codes other than the specific M codes are determined by
the machine tool builder. The representative use of several general M codes is
given below. For details, refer to the instruction manuals published by the machine
tool builder. If an M code is specified with axis move commands in the same block,
whether the M code is executed with the axis move commands simultaneously or it
is executed after the completion of the axis move commands is determined by the
machine tool builder. For details, refer to the instruction manuals published by the
machine tool builder.
3-86
M6 X10 V20
M30PROC M6_MAKRO
R10 = R10 + 11.11
IF $C_X_PROG == 1 GOTOF N40
SETAL(61000)
;programmed variable transferred
;incorrectly
IF $C_V == 20 GTOF N60
SETAL(61001)
M17
SINUMERIK 802D sl/840D sl840D/840Di sl/840Di/810D ISO Turning - - 04.07 Edition
© SIEMENS AG 2007 All rights reserved
04.07

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents