EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 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...
701
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Subroutines
3
GSBS
An SBS(091) or GSBS(750) instruction can be
written within a subroutine region (SBN(092) to
RET(093)) or global subroutine region (GSBN(751)
to GRET(752)) to “nest” subroutines. Subroutines
can be nested up to 16 levels.
B
A
D
C
B
GSBS
n
0.00
D
GSBS
m
0.01
END
A
GSBN
n
C
GSBN
m
GRET
END
GRET
Execution
condition ON
Execution
condition ON
Cyclic or interrupt task
Interrupt task 0
Subroutine functions
divided by task.
Multiple global subroutine regions (GSBN(751) to
GRET(752)) can be defined in interrupt task 0.
GSBN 10
GSBS 11
GRET
GSBN 11
GSBS 12
GRET
GSBN 12
GRET
to
Interrupt task 0
to
to
to
to

Table of Contents

Related product manuals