EasyManua.ls Logo

Omron SYSMAC CV Series - Page 391

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
379
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)
Although subroutines 00 through 31 can be called by using SBS(151), they are
also activated by interrupt signals from Interrupt Input Units. Subroutine 99,
which can also be called using SBS(151), is used for the scheduled interrupt.
(Refer to the next subsection for details.)
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 for the CV1000, CV2000, CVM1-CPU11-EV2,
or CVM1-CPU21-EV2, or between 000 and 099 for the CV500 or
CVM1-CPU01-EV2.
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

Table of Contents

Related product manuals