![background image](http://html1.mh-extra.com/html/omron/sysmac-c1000h/sysmac-c1000h_operation-manual_743079191.webp)
!
!
185
The following diagram illustrates program execution flow for various execu-
tion conditions for two SBS(91).
SBS(91)
00
SBS(91)
01
SBN(92)
00
RET(93)
SBN(92)
01
RET(93)
END(01)
Main
program
Subroutines
A
B
C
D
E
A
A
A
A
B
B
B
B
C
C
C
C
D
D
E
E
OFF execution conditions for
subroutines 00 and 01
ON execution condition for
subroutine 00 only
ON execution condition for
subroutine 01 only
ON execution conditions for
subroutines 00 and 01
Flags
ER:
A subroutine does not exist for the specified subroutine number.
A subroutine has called itself.
Subroutines have been nested to more than sixteen levels.
Caution
SBS(91) will not be executed and the subroutine will not be called when ER is
ON.
5-20-4
INTERRUPT CONTROL – INT(89)
CC
: Control code
# (000 to 002)
N
: Interrupt designator
# (000 to 004)
Ladder Symbols
Operand Data Areas
D
: Control data
IR, AR, DM, HR, TC, LR, TR, #
INT(89)
CC
N
D
@INT(89)
CC
N
D
Limitations
D may be a constant only when CC is 000 or 001. D must be a word address
when CC is 002. See below for details.
Caution
INT(89) cannot be used during execution of step programs or in C2000H Duplex
CPUs. Refer to
5-21 Set Instructions
for details on step programs.
Subroutines and Interrupt Control
Section 5-20