Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 345

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Comparison Instructions
Flags
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
Precautions
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.)
CX-Programmer
label
P_ER
P_GT
P_GE
P_EQ
P_NE
P_LT
P_LE
P_N
Note In CS1-H, CJ1-H, CJ1M, and CS1D (for Single-CPU System) CPU Units,
these Flags are left unchanged.
In CS1 and CJ1 CPU Units, these Flags are turned OFF.
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.
Incorrect Use of CMP(020)
Arithmetic Flag
(Example: Equal Flag)
and/or S
1
and that refreshed value will be compared. (Immediate
Programming
Console label
ER
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
Unchanged (See note.)
Section 3-7
CMP
S1
S2
Instruction
B
A
. 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
305

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents