EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 999

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
966
Other Instructions Section 3-29
For example, the CCS(282) and CCL(283) instructions make it possible to use
the CY Flag status (time monitoring diagnosis error) from the execution of
FPD(269) at a later point in the program, not immediately after execution of
the instruction.
Flags There are no flags affected by these instructions.
Examples In the following example, CCS(282) preserves the results of a Comparison so
that this result can be used as an execution condition later in the program.
3-29-5 LOAD CONDITION FLAGS: CCL(283)
Purpose 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.
Ladder Symbol
CCS
FPD
CCL
Ta sk
The results of the comparison are stored in the Condition Flags.
(In this case, the results of the COMPARE Instruction can be used
in instruction B even if those results are affected by execution of
instruction A.)
Preserves the status of the Condition Flags in a separate location
in the CPU Unit.
Restores the status of the Condition Flags.
The Equals Flag will reflect the result of the COMPARE instruction,
not the result of instruction A.
Instruction A
Instruction B
CMP
D0
D300
CCS
MOV
D0
D200
CCL
=
0.00
When CIO 0.00 is ON in the following
example, CMP(020) will compare the
contents of D0 and D300 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)

Table of Contents

Related product manuals