EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

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
Page #738 background imageLoading...
Page #738 background image
3. Instructions
700
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
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).
The same global subroutine region (GSBN(751) to GRET(752)) can be called more than once.
This instruction can be written into multiple tasks with the same global subroutine number to call that
program from the different tasks. The program can be modularized by making global subroutines into
standard subroutines that are common to many tasks.
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 and the Error Flag will be turned ON when the
GSBS(750) instruction is executed.
The GSBS(750) instruction can be written in both cyclic tasks (including extra cyclic tasks) and interrupt
tasks.
B
A
END
A
GSBN
n
GRET
C
A
B
GSBS
n
0.00
C
GSBS
n
0.01
Execution
condition
(0.01) ON
Execution
condition
(0.00) ON
Main
program
Cyclic or interrupt task Cyclic or interrupt task
Interrupt task 0
Global subroutine
program
(GSBN(751) to
GRET(752))

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals