Special Program Sections - Omron CJ2 CPU UNIT SOFTWARE User Manual

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

5 Understanding Programming

5-10-2 Special Program Sections

CJ-series programs have special program sections that will control instruction conditions. The following
special program sections are available
Program section
Subroutine
IL - ILC section
Step Ladder sec-
tion
FOR-NEXT loop
JMP0 - JME0 sec-
tion
Block program sec-
tion
Instruction Combinations
The following table shows which of the special instructions can be used inside other program sections.
Subroutine
IL - ILC
Step ladder section
FOR - NEXT loop
JMP0 - JME0
Block program section
Note Instructions that specify program areas cannot be used for programs in other tasks. Refer to 5-2-4 Designing
Tasks for details.
5-110
Instructions
SBS, SBN, and RET instructions
GSBS, GSBN, and GRET
instructions
IL and ILC instructions
STEP instructions
FOR instructions and NEXT
instructions
JMP0 instructions and JME0
instructions
BPRG instructions and BEND
instructions
IL - ILC sec-
Subroutine
tion
Not possible.
Not possible.
OK
Not possible.
Not possible.
OK
OK
OK
OK
OK
OK
OK
Instruction condition
Subroutine program is
The subroutine program sec-
executed.
tion between SBN and RET
instructions is executed.
Section is interlocked
The output bits are turned OFF
and timers are reset. Other
instructions will not be exe-
cuted and previous status will
be maintained.
Break in progress.
Looping
Jump
Block program is exe-
The block program listed in
cuting.
mnemonics between the BPRG
and BEND instructions is exe-
cuted.
Step ladder
FOR - NEXT
section
loop
Not possible.
Not possible.
Not possible.
OK
Not possible.
Not possible.
Not possible.
OK
Not possible.
Not possible.
OK
Not possible.
CJ2 CPU Unit Software User's Manual
Status
Block pro-
JMP0 - JME0
gram sec-
section
tion
Not possible.
Not possible.
OK
Not possible.
OK
Not possible.
OK
Not possible.
Not possible.
Not possible.
OK
Not possible.

Advertisement

Table of Contents
loading

Table of Contents