Omron SYSMAC C200HS Operation Manual page 275

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Subroutines and Interrupt Control
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.
First Cycle Flag
Sets the time to first
interrupt to 20 ms.
Sets the scheduled in-
terrupt interval to 20 ms.
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 255 for
details.
Main program
LD
25315
INT(89)
001
004
#0002
INT(89)
000
004
#0002
Main program
SBN(92)
00
Subroutine
RET(93)
END(01)
Section 5-23
Scheduled interrupt
every 20 ms.
Return to program ad-
dress before interrupt.
265

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents