Fanuc Power Mate i-D/H Operator Manual

PROGRAMMING
(Common to Power Mate i–D and –H)
13. CUSTOM MACRO
B–63174EN/03
136
For smooth operation, the CNC prereads the CNC statement to be
performed next. This operation is referred to as buffering. Macro
statements for arithmetic expressions and conditional branches are
processed as soon as they are read into the buffer. Blocks containing M00,
M01, M02, or M30, blocks containing M codes for which buffering is
suppressed by setting parameters 3411 to 3420, and blocks containing
G31 are not preread.
N1 G31 X100.0 ;
N2 #100=1
:
>
> :Block being executed
NC statement
execution
Macro statement execution
Buffer
N1
N2
N1 X100.0 ;
>
> : Block being executed
: Block read into the buffer
NC statement
execution
Macro statement
execution
Buffer
N1
N2
N3
N4
N2 #1=100 ;
N3 #2=200 ;
N4 Y200.0 ;
:
N4
When N1 is being executed, the next NC statement (N4) is read into the
buffer. The macro statements (N2, N3) between N1 and N4 are processed
during execution of N1.
13.7
PROCESSING
MACRO
STATEMENTS
Explanations
When the next block is
not buffered
(M codes that are not
buffered, G31, etc.)
Buffering the next block
(normally prereading one
block)

Leave a Reply

Your email address will not be published. Required fields are marked *