FANUC Series 16/18/160/180-Model C for Lathe Operator Manual

PROGRAMMING
16. CUSTOM MACRO
B–62754EN/01
309
N1 G01 G41 G91 Z100.0 F100 T0101 ;
>
> : Block being executed
V : 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 Z50.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 T0101 ;
>
> : Block being executed
V : Blocks read into the buffer
N1
N2
N3
N2 #1=100 ;
N3 Z50.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 tool nose radius
compensation mode
(G41, G42)
D When the next block
involves no movement in
tool nose radius
compensation C (G41,
G42) mode

Leave a Reply

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