Subprogram Call Up Function (M98, M99) - Siemens SINUMERIK 802D sl Programming Manual

Iso milling
Hide thumbs Also See for SINUMERIK 802D sl:
Table of Contents

Advertisement

04.07
4.3

Subprogram call up function (M98, M99)

This function can be used when subprograms are stored in the part program me-
mory. Subprograms registered to the memory with program numbers assigned can
be called up and executed as many times as required.
The created subprograms should be stored in the part program memory before
they are called up.
Commands
The M codes indicated in Table 4-5 are used.
Table 4-5
M98
M99
Subprogram call (M98)
S M98 P nnn mmmm
m: Program number (max. 4 digits)
n: Number of repetitions (max. 3 digits)
S For example, if M98 P21 is programmed, the part program memory is searched
for program name 21.mpf and the subprogram is executed once. To execute the
subprogram 3 times, M98 P30021 needs to be programmed. If the specified
program number is not found, an alarm occurs.
S Nesting of subprograms is possible - the allowable nesting level is four. If the
nesting level exceeds this limit, an alarm occurs.
End of subprogram code (M99)
If M99 Pxxxx is programmed, execution resumes at block number xxxx on the re-
turn jump to the main program. The system initially searches forward for the block
number (from the subprogram call towards the end of the program). If a matching
block number is not found, the part program is then searched backwards (towards
the head of the program).
If M99 is specified in a main program, the program returns to the beginning of that
main program and the program is repeatedly executed.
© Siemens AG 2007 All rights reserved
SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D ISO Milling (PGM) -- 04.07 Edition
Subprogram call M code
M code
Enhanced Level Commands
4.3 Subprogram call up function (M98, M99)
Function
Subprogram call up
End of subprogram
4-133

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents