367
the subroutine defined with SBN(150) 00). The following diagram illustrates two
levels of nesting.
SBN(150) 010
SBN(150) 011
SBN(150) 012
SBS(151) 011
RET(152)
SBS(151) 010
SBS(151) 012
RET(152)
RET(152)
The following diagram illustrates program execution flow for various execution
conditions for two SBS(151).
SBS(151)
000
SBS(151)
001
SBN(150)
000
RET(152)
SBN(150)
001
RET(152)
END(001)
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 000 and 001
ON execution condition for
subroutine 000 only
ON execution condition for
subroutine 001 only
ON execution conditions for
subroutines 000 and 001
N must be between 000 and 999.
Flags
ER (A50003):
No subroutine exists with the specified subroutine number.
A subroutine has called itself.
A subroutine being executed has been called.
Example
Refer to 5-30-1 SUBROUTINE ENTRY and RETURN: SBN(150)/RET(152) for
an example.
Precautions
Subroutines
Section 5-30
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...