![Omron CJ1G-CPU series Programming Manual Download Page 80](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489080.webp)
59
Precautions
Section 2-2
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 Appendix D Memory Map of PLC Memory Addresses for specific
PLC memory addresses.
2-2-2
Special Program Sections
CS/CJ-series programs have special program sections that will control
instruction conditions. The following special program sections are available.
Instruction Combinations
The following table shows which of the special instructions can be used inside
other program sections.
T0000
Number of words
First source word
First destination word
Trans-
ferred.
to
to
to
to
to
to
to
to
W500
W511
&10
Program section
Instructions
Instruction condition
Status
Subroutine
SBS, SBN and RET instruc-
tions
Subroutine program is exe-
cuted.
The subroutine program sec-
tion between SBN and RET
instructions is executed.
IL - ILC section
IL and ILC instructions
Section is interlocked
The output bits are turned
OFF and timers are reset.
Other instructions will not be
executed and previous status
will be maintained.
Step Ladder section
STEP S instructions and
STEP instructions
FOR-NEXT loop
FOR instructions and NEXT
instructions
Break in progress.
Looping
JMP0 - JME0 section
JMP0 instructions and JME0
instructions
Jump
Block program section
BPRG instructions and
BEND instructions
Block program is executing.
The block program listed in
mnemonics between the
BPRG and BEND instruc-
tions is executed.
Subroutine
IL - ILC
section
Step ladder
section
FOR - NEXT
loop
JMP0 - JME0
section
Block program
section
Subroutine
Not possible.
Not possible.
Not possible.
Not possible.
Not possible.
Not possible.
IL - ILC
OK
Not possible.
Not possible.
OK
OK
Not possible.
Step ladder
section
Not possible.
OK
Not possible.
Not possible.
OK
Not possible.
FOR - NEXT
loop
OK
OK
Not possible.
OK
OK
Not possible.
JMP0 - JME0
OK
OK
Not possible.
Not possible.
Not possible.
Not possible.
Block pro-
gram section
OK
OK
OK
Not possible.
OK
Not possible.
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...