Omron CS1G/H-CPUxxH Instructions Manual page 759

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Subroutines
Examples
738
Example 1
When CIO 000000 is ON in the following example, global subroutine 1 is exe-
cuted and program execution returns to the next instruction after GSBS(750).
Status of CIO 000000
ON
OFF
When CIO 000001 is ON in the following example, global subroutine 1 is exe-
cuted and program execution returns to the next instruction after GSBS(750).
Status of CIO 000000
ON
OFF
Cyclic or interrupt task
A
000000
GSBS
n
B
END
Interrupt task 0
GSBN
Global
subroutine
program S
GRET
END
Example 2
Two or more global subroutine programs can be programmed in interrupt task
0. In this case, interrupt task 0 can be divided and used as the subroutine
function's task.
Order of program execution
A → S → B
A → B
Order of program execution
C → S → D
C → D
Cyclic or interrupt task
000001
CIO 000000 ON
1
Section 3-19
C
CIO 000000 ON
GSBS
n
D
END

Advertisement

Table of Contents
loading

Table of Contents