FANUC Series 16/18/160/180-Model C Machining Center Operators Manual

PROGRAMMING
16. CUSTOM MACRO
B–62764EN/01
406
N1 G01 G41 G91 X50.0 Y30.0 F100 Dd ;
>
> : Block being executed
j : Blocks read into the buffer
NC statement
execution
Macro statement
execution
Buffer
N1
N2
N3
N2 #1=100 ;
N3 X100.0 ;
N4 #2=200 ;
N5 Y50.0 ;
:
N4
N5
N3
When N1 is being executed, the NC statements in the next two blocks (up
to N5) are read into the buffer. The macro statements (N2, N4) between
N1 and N5 are processed during execution of N1.
N1 G01 G41 X100.0 G100 Dd ;
>
> : Block being executed
j : Blocks read into the buffer
N1
N2
N3
N2 #1=100 ;
N3 Y100.0 ;
N4 #2=200 ;
N5 M08 ;
N6 #3=300 ;
N7 X200.0 ;
:
N4
N3
N5
N6
N7
NC statement
execution
Macro statement
execution
Buffer
When the NC1 block is being executed, the NC statements in the next two
blocks (up to N5) are read into the buffer. Since N5 is a block that involves
no movement, an intersection cannot be calculated. In this case, the NC
statements in the next three blocks (up to N7) are read. The macro
statements (N2, N4, and N6) between N1 and N7 are processed during
execution of N1.
D Buffering the next block
in cutter compensation
mode (G41, G42)
D When the next block
involves no movement in
cutter compensation C
(G41, G42) mode

Leave a Reply

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