Special Program Sections - Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual

Programmable controllers
Table of Contents

Advertisement

Precautions
2-2-2

Special Program Sections

Program section
Subroutine
IL - ILC section
Step Ladder section
FOR-NEXT loop
JMP0 - JME0 section
Block program section
Specifying Operands for Multiple Words
With the CS/CJ-series PLCs, an instruction will be executed as written even if
an operand requiring multiple words is specified so that all of the words for the
operand are not in the same area. In this case, words will be taken in order of
the PLC memory addresses. The Error Flag will not turn ON.
As an example, consider the results of executing a block transfer with
XFER(070) if 20 words are specified for transfer beginning with W500. Here,
the Work Area, which ends at W511, will be exceeded, but the instruction will
be executed without turning ON the Error Flag. In the PLC memory
addresses, the present values for timers are held in memory after the Work
Area, and thus for the following instruction, W500 to W511 will be transferred
to D00000 to D00011 and the present values for T0000 to T0007 will be trans-
ferred to D00012 to D00019.
Note Refer to the appendix Memory Map of PLC Memory Addresses for specific
PLC memory addresses.
&10
Number of words
First source word
First destination word
CS/CJ-series programs have special program sections that will control
instruction conditions. The following special program sections are available.
Instructions
SBS, SBN, and RET instruc-
tions
GSBS, GSBN, and GRET
instructions
IL and ILC instructions
STEP S instructions and
STEP instructions
FOR instructions and NEXT
instructions
JMP0 instructions and JME0
instructions
BPRG instructions and
BEND instructions
W500
to
to
W511
T0000
to
to
Instruction condition
Subroutine program is exe-
cuted.
Section is interlocked
Break in progress.
Block program is executing.
Section 2-2
Trans-
to
to
ferred.
to
to
Status
The subroutine program sec-
tion between SBN and RET
instructions is executed.
The output bits are turned
OFF and timers are reset.
Other instructions will not be
executed and previous status
will be maintained.
Looping
Jump
The block program listed in
mnemonics between the
BPRG and BEND instruc-
tions is executed.
63

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents