11. FUNCTIONS TO SIMPLIFY
The linear copy command can be specified in a subprogram for a
rotational copy. Also, the rotational copy command can be specified in
a subprogram for a linear copy.
In a subprogram for rotational or linear copying, M98 for calling another
subprogram or G65 for calling a macro can be specified.
The center of rotation specified with G72.1 is processed as an absolute
position even in the incremental mode.
In a block with G72.1, addresses other than P, L, Xp, Yp, Zp, or R are
ignored. The subprogram number (P), coordinates of the center of
rotation (Xp, Yp, Zp), and angular displacement (R) must be specified.
In a block with G72.2, addresses other than P, L, I, J, or K are ignored.
The subprogram number (P) and shift (I, J, K) must be specified.
If the subprogram number specified with P is not found, P/S alarm No.
078 occurs. If P is not specified, P/S alarm No. 076 occurs.
If L is omitted, the repetition count is assumed to be 1 and the sub–
program is called only once.
In a block with G72.1, an increment in angular displacement is specified
with address R. The angular displacement of the figure made by the n–th
rotation is calculated as follows : R (n – 1).
In a block with G72.2, an increment in shift is specified with addresses
I, J, and K. The shift of the figure made by the n–th movement is
calculated as follows : (Programmed shift) (n – 1).
If a subprogram is called by G72.1 or G72.2, the nesting level is increased
by one in the same manner as when M98 is specified.
The coordinates of a figure moved rotationally or linearly (block end
position) can be read from #5001 and subsequent system variables of the
custom macro of rotational or linear copy.
If the end point of the figure made by the n–th copy does not agree with
the start point of the figure to be made by the next (n + 1) copy, the figure
is moved from the end point to the start point, then copying is started.
(Generally, this disagreement occurs if an incorrect angular displacement
or shift is specified.)
End point of the first copy
Start point of the second copy
D Combination of
rotational and linear
D Subprogram calling
D Specifying the center of
D Specifying address
D Address P
D Address L
D Increment in angular
displacement or shift
D Nesting level of a
D Block end position
D Disagreement between
end point and start point