![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301213.webp)
1173
Other Instructions
Section 3-31
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-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 CS1-H, CJ1-H, CJ1M, and CS1D CPU Units
only.
Ladder Symbol
CCS
FPD
CCL
Task
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
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)
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...