![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030345.webp)
305
Comparison Instructions
Section 3-7
The immediate-refreshing variation (!CMP(020)) can be used with words allo-
cated to external inputs specified in S
1
and/or S
2
. When !CMP(020) is exe-
cuted, input refreshing will be performed for the external input word specified
in S
1
and/or S
2
and that refreshed value will be compared. (Immediate
refreshing cannot be performed on inputs allocated to Group-2 High-density
I/O Units or Units mounted to Slave Racks.)
Flags
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.
Precautions
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.
CMP
S1
S2
A
Incorrect Use of CMP(020)
Instruction
B
Arithmetic Flag
(Example: Equal Flag)
Name
CX-Programmer
label
Programming
Console label
Operation
Error Flag
P_ER
ER
Unchanged (See note.)
Greater Than Flag
P_GT
>
ON if S
1
> S
2
.
OFF in all other cases.
Greater Than or Equal Flag
P_GE
> =
ON if S
1
≥
S
2
.
OFF in all other cases.
Equal Flag
P_EQ
=
ON if S
1
= S
2
.
OFF in all other cases.
Not Equal Flag
P_NE
=
ON if S
1
≠
S
2
.
OFF in all other cases.
Less Than Flag
P_LT
<
ON if S
1
< S
2
.
OFF in all other cases.
Less Than or Equal Flag
P_LE
< =
ON if S
1
≤
S
2
.
OFF in all other cases.
Negative Flag
P_N
N
Unchanged (See note.)
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...