
13. Program Support Functions
13.12 Macro Interrupt; ION, IOF
383
13.12 Macro Interrupt; ION, IOF
Function and purpose
A user macro interrupt signal (UIT) is input from the machine to interrupt the program being
currently executed and instead call another program and execute it. This is called the user macro
interrupt function.
Use of this function allows the program to operate flexibly enough to meet varying conditions.
For setting the parameters of the function, refer to the Setup manual.
Command format
ION program number H__;
or ION <File name> H__ ;
Macro interruption enable
ION
Program number
<File name>
H
:User macro interruption command
:Interrupt program No.
:File name
A file name can be specified instead of a program No.
In this case, enclose the file name with brackets <>.
(The file name can have up to 32 characters including the extension.)
:Interrupt sequence No.
IOF ;
User macro interruption disable
IOF
:User macro interruption end command
The user macro interrupt function is enabled and disabled by the ION and IOF commands
programmed to make the user macro interrupt signal (UIT) valid or invalid. That is, if an interrupt
signal (UIT) is input from the machine side in a user macro interrupt enable period from when ION
is issued to when IOF is issued or the NC is reset, a user macro interrupt is caused to execute the
program specified following to IOF instead of the one being executed currently.
Another interrupt signal (UIT) is ignored while one user macro interrupt is being in service. It is also
ignored in a user macro interrupt disable state such as after an IOF command is issued or the
system is reset.
Interrupt enable conditions
A user macro interrupt is enabled only during execution of a program. The requirements for the
user macro interrupt are as follows:
(1) An automatic operation mode or MDI has been selected.
(2) The system is running in automatic mode.
(3) No other macro interrupt is being processed.
(Note 1)
A macro interrupt is disabled in manual operation mode (JOG, STEP, HANDLE, etc.)