
PROGRAMMING
B–63684EN/01
16. CUSTOM MACRO
307
The modal information present before the interrupt becomes valid. The
new modal information modified by the interrupt program is made
invalid.
The new modal information modified by the interrupt program remains
valid even after control is returned. The old modal information which was
valid in the interrupted block can be read using custom macro system
variables #4001 to #4120.
Note that when modal information is modified by the interrupt program,
system variables #4001 to #4120 are not changed.
S The coordinates of point A can be read using system variables #5001
and up until the first NC statement is encountered.
S The coordinates of point A’ can be read after an NC statement with no
move specifications appears.
S The machine coordinates and workpiece coordinates of point B’ can
be read using system variables #5021 and up and #5041 and up.
B’
B
A’
A
Interrupt generated
Tool center path
Offset vector
Programmed tool path
When the interrupt signal (UINT) is input and an interrupt program is
called, the custom macro modal call is canceled (G67). However, when
G66 is specified in the interrupt program, the custom macro modal call
becomes valid. When control is returned from the interrupt program by
M99, the modal call is restored to the state it was in before the interrupt
was generated. When control is returned by M99Pxxxx;, the modal call
in the interrupt program remains valid.
“Interruption type custom macro” cannot be done during DNC operation
or executing a program with an external input–output device.
Modal information when
control is returned by
M99
Modal information when
control is returned by
M99 Pffff
D System variables
(position information
values) for the interrupt
program
D Custom macro interrupt
and custom macro
modal call
D DNC operation and
interruption type custom
macro