Other Instructions
Task
Flags
Examples
3-31-6 LOAD CONDITION FLAGS: CCL(283)
Ladder Symbol
FPD(269) at a later point in the program, not immediately after execution of
the instruction.
The results of the comparison are stored in the Condition Flags.
FPD
(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
CCS
in the CPU Unit.
Instruction A
Restores the status of the Condition Flags.
CCL
The Equals Flag will reflect the result of the COMPARE instruction,
Instruction B
not the result of instruction A.
There are no flags affected by these instructions.
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.
000000
CMP
D00000
D00300
=
MOV
D00000
D00200
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 CS1-H, CJ1-H, CJ1M, and CS1D CPU Units
only.
CCL(283)
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).
CCS
The preserved Condition Flags are restored
CCL
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.
Section 3-31
1173
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?
Questions and answers