Omron CS1G/H-CPUxxH Instructions Manual page 762

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

Advertisement

Subroutines
Precautions
and the Error Flag will be turned ON when the GSBS(750) instruction is exe-
cuted.
The GSBS(750) instruction can be written both cyclic tasks (including extra
cyclic tasks) and interrupt tasks.
Cyclic or interrupt task
Interrupt task 0
• When the subroutine isn't being executed, the instructions are treated as
NOP(000).
• Place the global subroutine region (GSBN(751) to GRET(752)) in inter-
rupt task 0 just before the END(001) instruction. When two or more global
subroutines are being used, group them together in interrupt task 0 after
the end of the main program. If part of the main program is placed after
the global subroutine region, that program section will be ignored.
Interrupt task 1
• The input method for the global subroutine number, N, is different for the
CX-Programmer and a Programming Console. Input #0 to #1023 on the
CX-Programmer and 0000 to 1023 on a Programming Console.
GSBS
n
GSBN
n
Global
subroutine
region
GRET
END
GSBN
Global
n
subroutine
region
GRET
This part of the
program won't
be executed.
END
Section 3-19
741

Advertisement

Table of Contents
loading

Table of Contents