CS1D-SP002 Omron, CS1D-SP002 Datasheet - Page 356

no-image

CS1D-SP002

Manufacturer Part Number
CS1D-SP002
Description
SPACE UNIT FOR CS1D
Manufacturer
Omron
Datasheet

Specifications of CS1D-SP002

Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
CS1DSP002
Saving and Loading Condition Flag Status
Condition Flags
!Caution Condition Flags can be tricky to use. They are manipulated by essentially all
instructions and if they are not used with the proper timing, the wrong status
may be read, leading to unexpected operation. Program Condition Flags with
caution.
The Condition Flags are cleared when the program switches tasks, so the sta-
tus of a Condition Flag cannot be passed to another task. For example the
status of a flag in task 1 cannot be read in task 2. (The flag’s status must be
transferred to a bit.)
The CS1D CPU Units support instructions to save and load the Condition
Flag status (CCS(282) and CCL(283)). These can be used to access the sta-
tus of the Condition Flags at other locations in a task or in a different task.
The following example shows how the Equals Flag is used at a different loca-
tion in the same task.
Task
=
Instruction B
Instruction A
CMP
CCS
CCL
Stores result of comparison in the Condition
Flags. This will enable loading the results to
use with Instruction B.
Saves status of Condition Flags.
The result of the comparison instruction in the
Equals Flag can be used by Instruction B
without interference from Instruction A.
Loads the statuses of the Conditions Flags
that were stored.
Section 8-20
321