EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 715

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...
682
Subroutines Section 3-18
This instruction can be written into multiple tasks with the same global subrou-
tine 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 exe-
cuted.
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 ON
Execution
condition 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

Related product manuals