![Omron CJ1G-CPUxx Instructions Manual Download Page 761](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491761.webp)
740
Subroutines
Section 3-19
3-19-6 GLOBAL SUBROUTINE ENTRY: GSBN(751)
Purpose
Indicates the beginning of the global subroutine program with the specified
subroutine number. Used in combination with GRET(752) to define a global
subroutine region.
This instruction is supported by the CS1-H, CJ1-H, CJ1M, and CS1D CPU
Units only.
GSBN(751) is used in combination with GSBS(750) and GRET(752), the
GLOBAL SUBROUTINE CALL and GLOBAL SUBROUTINE RETURN
instructions.
Ladder Symbol
Variations
Applicable Program Areas
Operands
N: Global subroutine number
Specifies the global subroutine number between 0 and 1023 decimal.
Operand Specifications
Description
GSBN(751) indicates the beginning of the global subroutine with the specified
subroutine number. The end of the subroutine is indicated by GRET(752).
The region of the program beginning at the first GSBN(751) instruction is the
subroutine region. A subroutine is executed only when it has been called by
GSBS(750).
The global subroutine region (between GSBN(751) and GRET(752)) must be
defined in interrupt task 0. If it is defined in another task, an error will occur
GSBN(751)
N
N: Global subroutine number
Variations
Executed Each Cycle for ON Condition
GSBN(751)
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
Not allowed
Not allowed
---
OK
Area
N
CIO Area
---
Work Area
---
Holding Bit Area
---
Auxiliary Bit Area
---
Timer Area
---
Counter Area
---
DM Area
---
EM Area without bank
---
EM Area with bank
---
Indirect DM/EM
addresses in binary
---
Indirect DM/EM
addresses in BCD
---
Constants
0 to 1023 (decimal)
Data Registers
---
Index Registers
---
Indirect addressing
using Index Registers
---
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...