13. Program Support Functions
13.3 Subprogram Control
292
Command format
G22 I__ J__ K__ L__ H__ P__ ,D__;
or, G22 I__ J__ K__ <File name> H__ P__ ,D__ ;
G22
I, J, K
L
: Subprogram call command
: Rotation center
: Program No. in subprogram to be called. (Own program if omitted.)
Note that L can be omitted only during memory operation and MDI
operation.
(Max. 8-digit value)
<File name>
: A file name can be designated instead of the program No. In this case,
enclosed the file name with brackets <>.
(The file name can have up to 32 characters, including the extension.)
(Example) G22 <PARTS-12.RAF>;
H
: Sequence No. in subprogram to be called (Head block if omitted)
(Max. 5-digit value)
P
: Number of subprogram repetitions
(If omitted, this is handled as P1. When P0 is set, the subprogram is not
called.)
(1 to 9999 times set with 4-digit value.)
,D
: Subprogram device No. (0 to 4).
The subprogram in the memory can be used when ,D is omitted.
The device No. is set with the machining parameters.
Detailed description
P1 times
Basic
figure
j1
i1
Rotation
center
(1) The first subprogram called out with subprogram call is executed at a 0° rotation angle. The
path is created as commanded.
(2) If the number of repetitions is set to two or more, the rotation angle is obtained from the called
subprogram's start point, end point and rotation center coordinate. The path of the first
subprogram is used as a basic figure and is rotated and arranged for the designated number of
call repetitions, using the rotation center coordinates as a reference.
(3) All blocks in the subprogram are rotated.