Omron C200HE Computer Hardware User Manual


 
290
The scheduled interrupt is disabled at the start of operation (the scheduled inter-
rupt interval is 0), so the time to the first interrupt and scheduled interrupt interval
must be set using INT(89) with N=004 and C=001/000. In the following diagram,
the subroutine would be executed every 20 ms if the scheduled interrupt time
unit is set to 10 ms in DM 6622 of the PC Setup.
LD 25315
INT(89) 001
004
#0002
INT(89) 000
004
#0002
SBN(92) 99
RET(93)
END(01)
Main program
Subroutine
Main program
Sets the time to first
interrupt to 20 ms.
Sets the scheduled in-
terrupt interval to 20 ms.
Return to program ad-
dress before interrupt.
Scheduled interrupt
every 10 ms.
First Cycle Flag
Note Depending on the setting of DM 6621 in the PC Setup, Host Link servicing, Re-
mote I/O servicing, Special I/O Unit servicing, and individual instruction execu-
tion will be completed before the subroutine is executed. Refer to page 280 for
details.
Subroutines and Interrupt Control Section 5-23