EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 714

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
681
Subroutines Section 3-18
Precautions When the subroutine is not being executed, the instructions are treated as
NOP(000).
Example See 3-18-3 SUBROUTINE ENTRY: SBN(092) for examples of the operation
of RET(093).
3-18-5 GLOBAL SUBROUTINE CALL: GSBS(750)
Purpose Calls the global subroutine with the specified subroutine number and exe-
cutes that program. The same global subroutine can be called from two or
more tasks.
GSBS(750) is used in combination with GSBN(751) and GRET(752), the
GLOBAL SUBROUTINE ENTRY and GLOBAL SUBROUTINE RETURN
instructions.
Ladder Symbol
Variations
Applicable Program Areas
Operands N: Global subroutine number
Specifies the global subroutine number between 0 and 255 decimal.
Operand Specifications
Description GSBS(750) calls the global subroutine with the specified global subroutine
number. The global subroutine is the program section between GSBN(751)
and GRET(752). When the global subroutine is completed, program execution
continues with the next instruction after GSBS(750).
N: Global subroutine number
GSBS(750)
N
Variations Executed Each Cycle for ON Condition GSBS(750)
Executed Once for Upward Differentiation @GSBS(750)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area N
CIO Area ---
Work Area ---
Holding Bit Area ---
Auxiliary Bit Area ---
Timer Area ---
Counter Area ---
DM Area ---
Indirect DM addresses
in binary
---
Indirect DM addresses
in BCD
---
Constants 0 to 255 (decimal)
Data Registers ---
Index Registers ---
Indirect addressing
using Index Registers
---

Table of Contents

Related product manuals