Omron C200H Operation Manual page 205

Hide thumbs Also See for C200H:
Table of Contents

Advertisement

Subroutines and Interrupt Control
Example
25315
Address Instruction
00000
00001
00002
192
The following program shows the overall structure and operation of the
scheduled interrupt.
Here, the scheduled subroutine is started and will be repeated every 20 ms.
The control flow logic of the main program is unaffected by execution of the
scheduled subroutine, i.e., immediately after the sub
routine has finished execution, control returns to the point in the main pro-
gram where it was suspended.
First Cycle Flag
Main program
Interrupts every 20 ms
Subroutine
Operands
LD
25315
INT(89)
#
0002
INT(89)
#
0002
INT(89)
#0002
INT(89)
#0002
Main program execution
SBN(92) 99
RET(93)
Address Instruction
Main program.
001
004
00500
SBN(92)
Subroutine.
000
004
00600
RET(93)
Section 5-20
001
004
000
004
Set at 20 ms.
Returned from
scheduled
interrupt rou-
tine
Operands
99

Advertisement

Table of Contents
loading

Table of Contents