13. Program Support Functions
13.3 Subprogram Control
289
(2) Only those subprograms Nos. ranging from 1 to 99999999 designated by the optional
specifications can be used. When there are no program Nos. on the tape, they are entered as
the setting No. for "program input."
(3) Up to 8 nesting levels can be used for calling programs from subprograms, and program error
(P230) results if this number is exceeded.
(4) No distinction between main programs and subprograms is made since they are entered in the
sequence in which they were read. This means that main programs and subprograms should
not be given the same Nos. (If they are, error "E11" appears during entry.)
(5) Besides the G22 command, subprogram nesting is subject to the following commands:
•
G65 : Macro call
•
G66 : Modal call
•
G66.1 : Modal call
•
G code call
•
Miscellaneous function call
•
MDI interruption
•
Automatic tool length measurement
•
Macro interruption
•
Multiple-step skip function
(6) Subprogram nesting is not subject to the following commands which can be called even
beyond the 8th nesting level.
•
Fixed cycles
•
Pattern cycles
(7) To repeatedly use the subprogram, it can be repeated p1 times by programming G22 Ll
1
Pp
1
;.
(8) When using the multi-part system, if the subprogram attributed to the part system with the call
command is empty, the subprogram call operation will change according to the parameters.
#1050
MemPrg
#1285
ext21/bit1
Details
0, 2, 4, 6
-
The subprogram registered in the memory common for the part
systems is called out.
1, 3, 5, 7
OFF
The subprogram registered in the memory for the selected part
system is called out.
ON
The subprogram registered in the memory for the selected part
system is called out.
If the subprogram in the selected part system is empty, the
subprogram with the same No. in the 1st part system is called out.