Omron CS1G/H-CPUxxH Instructions Manual page 275

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

Advertisement

Comparison Instructions
Flags
Precautions
3-7-3
DOUBLE COMPARE: CMPL(060)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
254
The immediate-refreshing variation (!CMP(020)) can be used with words allo-
cated to external inputs specified in S
cuted, input refreshing will be performed for the external input word specified
in S
and/or S
1
2
refreshing cannot be performed on inputs allocated to Group-2 High-density I/
O Units or Units mounted to Slave Racks.)
Name
Error Flag
Greater Than Flag
Greater Than or Equal Flag
Equal Flag
Not Equal Flag
Less Than Flag
Less Than or Equal Flag
Negative Flag
Note In CS1 and CJ1 CPU Units, these Flags are turned OFF.
In CS1-H, CJ1-H, CJ1M, and CS1D CPU Units, these Flags are left
unchanged.
Do not program another instruction between CMP(020) and an input condition
that accesses the result of CMP(020) because the other instruction might
change the status of the Arithmetic Flags.
Compares two double unsigned binary values (constants and/or the contents
of specified words) and outputs the result to the Arithmetic Flags in the Auxil-
iary Area.
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
and/or S
1
and that refreshed value will be compared. (Immediate
Label
ER
OFF or unchanged (See note.)
>
ON if S
OFF in all other cases.
> =
ON if S
OFF in all other cases.
=
ON if S
OFF in all other cases.
=
ON if S
OFF in all other cases.
<
ON if S
OFF in all other cases.
< =
ON if S
OFF in all other cases.
N
OFF or unchanged (See note.)
CMPL(060)
S
S
1
1
S
S
2
2
Step program areas
OK
Section 3-7
. When !CMP(020) is exe-
2
Operation
> S
.
1
2
≥ S
.
1
2
= S
.
1
2
≠ S
.
1
2
< S
.
1
2
≤ S
.
1
2
: Comparison data 1
: Comparison data 2
CMPL(060)
Not supported
Not supported
Subroutines
Interrupt tasks
OK
OK

Advertisement

Table of Contents
loading

Table of Contents