Omron CS1G/H-CPUxxH Instructions Manual page 988

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

Advertisement

Other Instructions
3-31-6 LOAD CONDITION FLAGS: CCL(283)
Ladder Symbol
Variations
Applicable Program Areas
Description
000000
=
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.
CCL(283)
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
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.
When CIO 000000 is ON in the following
CMP
example, CMP(020) will compare the
D00000
contents of D00000 and D00300 and those
D00300
results will be preserved by CCS(282).
CCS
The preserved Condition Flags are restored
CCL
by CCL(283).
MOV
This MOV(021) instruction is executed if the
result of the CMP(020) instruction caused the
D00000
Equals flag to be turned ON.
D00200
Step program areas
Subroutines
OK
Section 3-31
CCL(283)
@CCL(283)
Not supported.
Interrupt tasks
OK
967

Advertisement

Table of Contents
loading

Table of Contents