190
Although subroutines 00 through 31 can be called by using SBS(91), they
are also activated by interrupt signals from Interrupt Input Units. Subroutine
99, which can also be called using SBS(91), is used for the scheduled inter-
rupt. (Refer to the next subsection for details.)
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
# (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
Subroutines and Interrupt Control Section 5-20