Omron C200HX Computer Hardware User Manual


 
280
INT(89) is used to control the interrupt signals received from the Interrupt Input
Unit, and also to control the scheduling of the scheduled interrupt. INT(89) pro-
vides such functions as masking of interrupts (so that they are recorded but ig-
nored) and clearing of interrupts.
Refer to 5-23-2 Interrupts for more details on interrupts.
MCRO(99) The MACRO instruction allows a single subroutine (programming pattern) to re-
place several subroutines that have identical structure but different operands.
Since a number of similar program sections can be managed with just one sub-
routine, the number of program steps can be greatly reduced. Refer to 5-23-5
MACRO MCRO(99) for more details on this instruction.
5-23-2 Interrupts
The C200HX/HG/HE PCs support both input interrupts and scheduled inter-
rupts. Interrupts stop execution of the program to run a subroutine in must be
executed immediately (input interrupts from an Interrupt Input Unit) or subrou-
tines that must be executed periodically (scheduled interrupts).
There are two interrupt modes. In normal mode the CPU Unit waits until the cur-
rent process is completed before stopping the main program. In high-speed
mode the CPU Unit interrupts the current process. The normal mode is the de-
fault mode in C200HX/HG/HE PCs, but high-speed mode can be selected in the
PC Setup.
The following setting is used for normal interrupt mode.
DM 6620
0000
In normal interrupt mode, the following processing will be completed once
started even if an interrupt occurs The interrupt will be processed as soon as the
current process is completed.
Host Link servicing
Remote I/O servicing
Special I/O Unit servicing
Individual instruction execution
Use this mode whenever using C200H interrupt subroutines without modifica-
tion or whenever possible considering the response time required for interrupts.
Note The C200HX/HG/HE is set to normal interrupt mode by default.
The following setting is used for high-speed interrupt mode.
DM 6620
1 –––
Interrupt mode
(1 = high-speed)
In high-speed interrupt mode, the following processing will be interrupted and
the interrupt subroutine executed as soon as an interrupt is generated.
Host Link servicing
Remote I/O servicing
Special I/O Unit servicing
Individual instruction execution
Use this mode whenever interrupt response time must be accurate to 1.0 ms.
Data will not necessarily be concurrent if the high-speed interrupt mode is used
because Host Link servicing, remote I/O servicing, Special I/O Unit servicing,
and individual instruction execution will not necessarily be completed when
Normal Interrupt Mode
High-speed Interrupt Mode
Subroutines and Interrupt Control Section 5-23