Omron SYSMAC CS Series Instruction & Reference Manual page 639

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

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
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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
3. Instructions
Execution condition ON
Main program
Subroutine
program
(SBN(092) to
RET(093))
Program end
Execution condition ON
Main program
Subroutine
Execution condition ON
program n
Two-level
nesting
Subroutine
program m
Program end
3
605

Advertisement

Table of Contents
loading

Table of Contents