CS1D-II102D Omron, CS1D-II102D Datasheet - Page 356

no-image

CS1D-II102D

Manufacturer Part Number
CS1D-II102D
Description
CS1D Dual IO Interface Unit
Manufacturer
Omron
Datasheet

Specifications of CS1D-II102D

Lead Free Status / Rohs Status
Lead free / RoHS Compliant
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

Related parts for CS1D-II102D