GSBN/GRET
Instruction
GLOBAL SUBROUTINE
ENTRY
GLOBAL SUBROUTINE
RETURN
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
Not allowed
Operands
Operand
N
Global subroutine number
N: Subroutine number
Specifies the subroutine number between 0 and 1023 decimal.
Note For CJ1M-CPU11 and CJ1M-CPU21 CPU Units, the subroutine number must be between the range 0 to 255
decimal.
Operand Specifications
Word addresses
Area
CIO
WR
HR
N
---
---
---
Combined-use instructions
GSBN/GRET
GSBN(751) and GRET(752) are used in combination with GSBS(750), the GLOBAL SUBROUTINE
CALL.
Flag
GSBN/GRET
There are no flags affected by this instruction.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
GSBN
---
GRET
---
GSBN
GSBN(751)
N: Global subroutine number
N
Block program areas
Step program areas
Not allowed
Not allowed
Description
AR
T
C
DM
EM
---
---
---
---
---
Function
code
Indicates the beginning of the global subroutine program
751
with the specified subroutine number.
752
Indicates the end of a subroutine program.
Subroutines
Not allowed
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
---
3. Instructions
Function
GRET
GRET(752)
SFC action or transition
Interrupt tasks
programs
OK
Not allowed
Data type
Size
GSBN
---
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
---
3
TR
bits
---
697
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers