PROGRAMMING15. CUSTOM MACRO
B–63604EN/01
296
CAUTION
When the interrupt signal (UINT, marked by * in Fig. 15.11)
is input after M97 is specified, it is ignored. And the interrupt
signal must not be input during execution of the interrupt
program.
A custom macro interrupt is available only during program execution. It
is enabled under the following conditions
– When memory operation or MDI operation is selected
– When STL (start lamp) is on
– When a custom macro interrupt is not currently being processed
Generally, the custom macro interrupt function is used by specifying M96
to enable the interrupt signal (UINT) and M97 to disable the signal.
Once M96 is specified, a custom macro interrupt can be initiated by the
input of the interrupt signal (UINT) until M97 is specified or the NC is
reset. After M97 is specified or the NC is reset, no custom macro
interrupts are initiated even when the interrupt signal (UINT) is input.
The interrupt signal (UINT) is ignored until another M96 command is
specified.
1
0
M96 M97 M96
Interrupt signal
(UINT)
Effective interrupt
input signal
When UINT is kept on
The interrupt signal (UINT) becomes valid after M96 is specified. Even
when the signal is input in M97 mode, it is ignored. When the signal input
in M97 mode is kept on until M96 is specified, a custom macro interrupt
is initiated as soon as M96 is specified (only when the status–triggered
scheme is employed); when the edge–triggered scheme is employed, the
custom macro interrupt is not initiated even when M96 is specified.
NOTE
For the status–triggered and edge–triggered schemes, see
Item “Custom macro interrupt signal (UINT)” of Subsec.
16.11.2.
15.11.1
Specification Method
Explanations
D Interrupt conditions
D Specification