2. 7.3 BUFFERING FUNCTION (M93, M92)t (Cent’d)
(3) Commands of M96 and M97 become effective
from the edge in the following command
EXAMPLE
blocks .
N51 M93 ; —
Start of 4-block advance
a. GO1 X.. . Z.. . F.. ;
1 From the move
reading .
N52 GO1 U.. - F.. . ;
1
Stop between blocks
N53 X.. . Z.. . ;
N54
(GO1) X.. Z.. . M96
J
around the edge
(or M97) ;
in this block,
for tool radius com
pensation or other
calculation can be
avoided.
b. GO1 X.. Z.. . F.. . ;
-1
From the move
M96 (or M97) ;
around the edge
in this block.
(G 01) X... Z.. ;
M58 M92 ; — Canceling 4–block advance
reading .
2.7.5 SUBROUTINE PROGRAM (M 98, M 99)
2.7.4 CIRCULAR PATH MODE ONIOFF ON TOOL
RADIUS COMPENSATION (M 97, M 96)+
With this function, subroutine programs which
have been numbered and stored in advance are
called and executed as many times as desired.
These M codes are effective when the control is
provided with the tool nose radius compensation
option.
(1) The following M codes are used for this
function.
(1) The following M codes are used.
M code
I
Meaning
M cede
Meaning
M 96 1 Tool radius compensation circular path on
M 97
Tool radius compensation circular path off
(Execution of intersection point)
Note: When power is applied, the current M code is
changed to the M code m=ked with~
However, it is not changed by RESET operation.
(2)
Call of subroutine program (M98)
M98 P.. . Q.. . L.. . ;
With this command, the subroutine program
starting with a sequence No. following Q in
the part program with the program No
specified by p is called and is executed L
times.
(2)
With the tool radius compensation mode by
G41 to G44, the locus of the tool (center
of tool radius) for commanded workpiece
contour lines with the angle between tan–
gents larger than 180° is in the following
two categories.
However, when
P is omitted:
subroutine program following the sequence
No. Q in the main program is called.
M96 mode
a
The center of the tool nose radius describes
a circular arc around the perimeter in the
contour line.
Q is omitted:
subroutine program starting at the leading
end of the program No. specified by P is
called.
b
M97 mode
The center of the tool nose radius moves
along the locus that is formed by straight
lines shifted from the contour line by the
L is omitted:
execution is only once.
Subroutine programs can be nested up to
4 times.
distance equal to the tool radius.
lNTFFiSELll ON
=Q!c3:000’nO”dO’‘3)
~,t~ reference pan! of lmtemacfmn.
End of subroutine program (G99)
M99
;
is written at the end of subroutine
program to end it.
When this code is written, the operation re-
turns to the block immediately following the
main block in which the subroutine program
was called after the execution of the sub-
routine program.
.1
I
\
\
—z
‘b
M 96 mode
M 97 mode (calculation of
(circular arc)
intersection)
Fig. 2.8