
TITLE
FANUC Series 16i/18i/21i-TB
AI nano contour control
Specifications
EDIT. DATE DESIG. DESCRIPTION
FANUC LTD
SHEET
37/37
DRAW. NO.
A-78962EN (2) is added. 2003.03.27 02
CUST.
(Example)
O0001 O2000
N1 X10.Z10.; (Mxx;) Inserts an M code block for suppressing buffering.
N2 M98P2000; N100 #1=#5041; (Reads the current position along the X axis.)
N3 Z200.0; N101 #2=#5042; (Reads the current position along the Z-axis.)
: :
M99;
In the example above, while the N1 block of the main program O0001 is being executed, the N2 block is
buffered, and the macro program O2000 is read and executed. This means that the current position is read
during travel along the axes in the N1 block. So, undefined position information during travel is read into #1
and #2. In such a case, insert a block specifying a M code (Mxx;) for suppressing buffering or G53;
immediately before the N100 block of O2000. With this block insertion, the execution of O2000 starts when
the execution of the N1 block of O0001 is completed. So, position information after the completion of
execution of the N1 block can be read into #1 and #2.