![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h/sysmac-c200h_operation-manual_742423205.webp)
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.
SBN(92) 99
INT(89)
000
004
#0002
RET(93)
INT(89)
001
004
#0002
25315
Main program
Subroutine
Set at 20 ms.
Main program execution
Interrupts every 20 ms
Returned from
scheduled
interrupt rou-
tine
First Cycle Flag
Address
Instruction
Operands
Address
Instruction
Operands
00000
LD
25315
00001
INT(89)
001
004
#
0002
00002
INT(89)
000
004
#
0002
Main program.
00500
SBN(92)
99
Subroutine.
00600
RET(93)
Example
Subroutines and Interrupt Control
Section 5-20
Содержание SYSMAC C200H
Страница 1: ...OPERATION MANUAL C200H CPU01 E 03 E 11 E SYSMAC Programmable Controllers Cat No W130 E1 05 ...
Страница 2: ...C200H Programmable Controllers CPU01 E 03 E 11 E Operation Manual Revised June 2003 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 8: ...TABLE OF CONTENTS ix Glossary 345 Index 363 Revision History 369 ...
Страница 342: ...336 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Страница 374: ...Cat No W130 E1 05 C200H Programmable Controllers CPU01 E 03 E 11 E OPERATION MANUAL ...