Siemens Sinumerik 802D sl Programming Manual page 131

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

Advertisement

04.07
Commands
The M codes indicated in Table 4-7 are used.
Table 4-7
M98
M99
Subprogram call (M98)
S M98 P xxxx yyyy
y: Program number (max. 4 digits)
x: Number of repetitions (max. 4 digits)
S The program syntax M98 Pxxxxyyyy is used to call a subprogram with the num-
ber yyyy and repeat it xxxx times. If the xxxx is not programmed, the sub--pro-
gram is executed only once. The subprogram name always consists of 4 digits
or is extended to 4 digits by adding 0's.
For example, if M98 P21 is programmed, the part program memory is searched
for program name 0021.spf and the subprogram is executed once. To execute
the subprogram 3 times, program M98 P30021.
S As an alternative, the number of subprogram executions can also be pro--gram-
med at address 'L'. The number of the subprogram is still programmed as
Pxxxx. If the number of executions is programmed at both addresses, the num-
ber of executions programmed at address 'L' is valid. A valid range for address
'L' is 1 to 9999.
S Nesting of subprograms is possible - the allowable nesting level is four. If the
nesting level exceeds this limit, an alarm occurs.
Example:
N20 M98 P20123 ;
N40 M98 P55 L4 ;
N60 M98 P30077 L2 ;
© SIEMENS AG 2007 All rights reserved
SINUMERIK 802D sl/840D sl840D/840Di sl/840Di/810D ISO Turning -- 04.07 Edition
Subprogram call M code
M code
Subprogram 1023.spf will be executed twice
Subprogram 0055.spf will be executed four times
Subprogram 0077.spf will be executed twice
The number of executions programmed at address
'P' = 3 is ignored
Enhanced Level Commands
4.2 Program support functions (2)
Function
Subprogram call up
End of subprogram
4-131

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents