13. CUSTOM MACRO
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
M96 M97 M96
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.
For the status–triggered and edge–triggered schemes, see
Item “Custom macro interrupt signal (UINT)” of II– 13.11.2.
D Interrupt conditions