6 Subroutines
6.3 Subroutine call
6.3
Subroutine call
The subroutine is called in a part program via address L with the subroutine number and the
number of passes with address P. If a subroutine number is programmed without address P, it
is automatically assumed that the number of passes is P1 (1 run). The number of passes P
can be between 1 and 9999.
Example:
L123 P1
The following should be noted during programming:
•
The subroutine call must not be written in a block together with M02, M30 or M17.
•
If the subroutine is called whilst the cutter radius compensation (CRC) function is selected,
the Section on special cases for CRC ("Blocks without path addresses") should be refer-
red to.
•
If the subroutine call is written in a block containing other functions, the subroutine is
called at the end of the block.
•
Special functions L81 to L89 can be called by means of G functions G81 to G89. G80
cancels G81 (reset position).
G81 to G89 and L81 to L91 in one block triggers alarm 3006 (incorrect block structure).
•
The action of G81 to G89 is modal.
•
If the part program uses subroutines with the"EXECUTION FROM EXTERNAL SOURCE"
function, they must be contained in the part program memory.
6–2
P1
Number of passes
L123
Subroutine number
© Siemens AG 1991 All Rights Reserved
05.91
(1...9999)
(1...999)
6ZB5 410-0HD02
SINUMERIK 880, (PG)