Fanuc Power Mate i-D/H Operator Manual

PROGRAMMING
(Common to Power Mate i–D and –H)
B–63174EN/03
13. CUSTOM MACRO
149
A custom macro interrupt is different from a normal program call. It is
initiated by an interrupt signal (UINT) during program execution. In
general, any modifications of modal information made by the interrupt
program should not affect the interrupted program.
For this reason, even when modal information is modified by the interrupt
program, the modal information before the interrupt is restored when
control is returned to the interrupted program by M99.
When control is returned from the interrupt program to the interrupted
program by M99 Pxxxx, modal information can again be controlled by
the program. In this case, the new continuous information modified by
the interrupt program is passed to the interrupted program. Restoration of
the old modal information present before the interrupt is not desirable.
This is because after control is returned, some programs may operate
differently depending on the modal information present before the
interrupt. In this case, the following measures are applicable:
(1) The interrupt program provides modal information to be used after
control is returned to the interrupted program.
(2) After control is returned to the interrupted program, modal
information is specified again as necessary.
O∆∆∆∆
M96Pxxx
N;
M99(P);
Oxxx;
Interrupt signal (UINT)
(Without P specification)
Modify modal information
Modal
information remains
unchanged before and
after the interrupt.
(With P specification)
The new modal information modified by the in-
terrupt program is present.
Fig.13.11.2 (b) Custom macro interrupt and modal information
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.
Custom macro interrupt
and modal information
Modal information when
control is returned by
M99
Modal information when
control is returned by
M99 P

Leave a Reply

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