![Omron CJ1G-CPUxx Instructions Manual Download Page 988](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491988.webp)
967
Other Instructions
Section 3-31
3-31-6 LOAD CONDITION FLAGS: CCL(283)
Restores the status of the Condition Flags that were saved in a separate area
within the CPU Unit by CCS(282). It is also possible to use CCL(283) inde-
pendently to clear the Condition Flags.
This instruction is supported by the CS1-H, CJ1-H, CJ1M, and CS1D CPU
Units only.
Ladder Symbol
Variations
Applicable Program Areas
Description
When the execution condition is ON, CCL(283) restores (reads) the status of
the Condition Flags (except for the ALWAYS ON and ALWAYS OFF Flags).
The Status of the following Condition Flags will be restored (read): ER, CY, >,
=, <, N, OF, UF, >=, <>, and <=.
Condition Flags are shared by all instructions, so the status of these Flags
may change many times during the PLC cycle as each instruction is executed.
Previously, it was necessary to place conditions using the Condition Flags
immediately after the controlling instruction so that the status of the Condition
Flags would not be affected by intervening instructions. The CCS(282) and
CCL(283) instructions allow the controlling instruction to be separated from
the execution conditions that rely on the result.
For example, CCS(282) can store the status of the Equals Flag after execu-
tion of a Comparison Instruction and the result can be restored later. The
result does not have to be used immediately after execution of the instruction.
CMP
D00000
D00300
CCS
MOV
D00000
D00200
CCL
=
000000
When CIO 000000 is ON in the following
example, CMP(020) will compare the
contents of D00000 and D00300 and those
results will be preserved by CCS(282).
The preserved Condition Flags are restored
by CCL(283).
This MOV(021) instruction is executed if the
result of the CMP(020) instruction caused the
Equals flag to be turned ON.
CCL(283)
Variations
Executed Each Cycle for ON Condition
CCL(283)
Executed Once for Upward Differentiation
@CCL(283)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Not supported.
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...