Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 714

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Subroutines
Precautions
Example
3-18-5 GLOBAL SUBROUTINE CALL: GSBS(750)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
Operand Specifications
Description
When the subroutine is not being executed, the instructions are treated as
NOP(000).
See 3-18-3 SUBROUTINE ENTRY: SBN(092) for examples of the operation
of RET(093).
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.
GSBS(750)
N: Global subroutine number
N
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
N: Global subroutine number
Specifies the global subroutine number between 0 and 255 decimal.
Area
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
Data Registers
Index Registers
Indirect addressing
using Index Registers
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).
Step program areas
Subroutines
OK
---
---
---
---
---
---
---
---
---
0 to 255 (decimal)
---
---
---
Section 3-18
GSBS(750)
@GSBS(750)
Not supported
Interrupt tasks
OK
N
681

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents