965
Other Instructions Section 3-29
Applicable Program Areas
Description When the execution condition is ON, CCS(282) stores the current status of
the Condition Flags (except for the ALWAYS ON and ALWAYS OFF Flags) in
a separate area in the CPU Unit. The Status of the following Condition Flags
will be preserved: ER, CY, >, =, <, N, OF, UF, >=, <>, and <=.
The preserved status of the Condition Flags can be read (restored) later only
with CCL(283), the LOAD CONDITION FLAGS instruction. The status can be
read in any of the following cases:
• Within a task
• Between different cyclic tasks
• Between cycles
Note (1) The status of the Condition Flags cannot be saved/loaded between a cy-
clic 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.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
A
CCS
CCL
CCS
CCL
A
B
CCS
CCL
Between cycles
Between cyclic tasksWithin a task
CCL(283) is executed to read the status
in the next cycle after CCS(282) was
executed to save the status.