Omron CS1G/H-CPUxxH Instructions Manual page 987

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

Advertisement

Other Instructions
Note
Task
Flags
Examples
966
Within a task
Between cycles
A
A
B
1. The status of the Condition Flags cannot be saved/loaded between a cyclic
task and interrupt task.
2. When CCS(282) is executed, it overwrites the previous Condition Flag in-
formation that was saved.
All of the Condition Flags are cleared when operation switches from one task
to another. Use the CCS(282) and CCL(283) instructions to save and load the
Condition Flag status between tasks or cycles.
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.
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.
Between cyclic tasks
CCS
CCL
CCL(283) is executed to read the status
CCS
in the next cycle after CCS(282) was
executed to save the status.
CCL
Section 3-31
CCS
CCL

Advertisement

Table of Contents
loading

Table of Contents