
B-63944EN/02 PROGRAMMING 16.CUSTOM MACRO
- 485 -
- Custom macro interrupt and modal information
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 Pxxxxxxxx, however, 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.
In this case, take the following action as required:
<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.
{∆∆∆∆
M96 Pxxxxxxxx ;
{xxxxxxxx ;
Interrupt signal (UINT)
Modify modal information
(Without P specification)
Modal information remains
unchanged before and after
the interrupt.
M99 (Pxxxxxxxx) ;
(With P specification)
The new modal information modified by the interrupt program is present.
Nxxxxxxxx ;
Fig. 16.13 (e) Custom macro interrupt and modal information