13. Program Support Functions
13.3 Subprogram Control
293
(4) If the subprogram start point and end point are not on the same circle having the commanded
figure rotation center coordinates as the center, the axis will interpolate using the
subprogram's end point as the start point, and the end point in the first movement command
block in the rotated subprogram as the end point.
(5) Both absolute values and incremental values can be used in the figure rotation subprogram.
Even if commanded with an absolute value command, the rotation will be the same as when
commanded with an incremental value.
(6) I, J, and K are commanded with the incremental amount from the start point.
(7) A subprogram of which figure is rotating cannot be branched to the other subprogram.
(8) The figure is rotated on the workpiece coordinate system, and can be shifted with the G92,
G52, G54 to G59 (workpiece coordinate system shift) command.
(9) Functions (reference position return, unidirectional positioning, etc.) on the machine
coordinate system for the rotary plane axis cannot be used while the figure is rotated. However,
the machine coordinate system functions can be used for axes other than the rotation plane.
(10) Refer to "13.3.1 Calling subprogram with G22 and G23 commands" for <file name>.
Precautions
(1) A program error will occur if figure rotation is commanded during figure rotation.
(2) Figure rotation and program coordinate rotation cannot be commanded simultaneously.
Example of program
200.
Main program (L1000)
N01 G90 G54 G00 X0 Y0 ;
N02 G01 G41 X200. Y150. D01 F500 ;
N03 G01 Z-50. F300 ;
N04 G22 L2200 P5 J-100. ;
N05 G90 G01 Z50. F500 ;
N06 G40 ;
N07 G00 X0 Y0 ;
Subprogram (L2200)
N01 G91 G01 X29.389 Y-59.549 ;
N02 X65.717 Y-9.549 ;
N03 G23 ;
100. 300.
Y
X
Basic figure