Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 722

Table of Contents

Advertisement

3. Instructions
Function
SBS(091) calls the subroutine with the
specified
subroutine
subroutine
is
between SBN(092) and RET(093). When
the subroutine is completed, program
execution
continues
instruction after SBS(091).
A subroutine can be called more than
once in a program.
Subroutines can be nested up to 16
levels.
Nesting
subroutine
is
subroutine program, such as shown in the
following example, which is nested to 3
levels.
SBN 10
to
SBN 11
to
RET
686
number.
The
the
program
section
with
the
next
is
when
another
called
from
within
a
SBN 11
SBN 12
to
to
SBS 12
to
RET
RET
Main program
Subroutine
program
(SBN(092) to
RET(093))
Main program
Subroutine
program n
Two-level
nesting
Subroutine
program m
Program end
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Execution condition ON
Program end
Execution condition ON
Execution condition ON

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents