
PROGRAMMING16. CUSTOM MACRO
B–63684EN/01
290
N1 X100.0 ;
>
> : Block being executed
V : 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.
N1 G01 G41 G91 X50.0 Y30.0 F100 Dd ;
>
> : 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 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.
D Buffering the next block
in other than cutter
compensation mode
(G41, G42) (normally
prereading one block)
D Buffering the next block
in cutter compensation
mode (G41, G42)