![background image](http://html1.mh-extra.com/html/omron/sysmac-c1000h/sysmac-c1000h_operation-manual_743079194.webp)
188
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
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 routine
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)
Examples
Subroutines and Interrupt Control
Section 5-20