![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831245.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-128
Ver. 1
6.23.4 Group Compare
(16-Bit: G<, G<=, G<>, G=, G>, G>= ) (32-Bit: DG<, DG<=, DG<>, DG=, DG>, L>=)
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st.
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
x
(compare
operators)
S1 O O O O O O O
-
O
-
-
O O O O O
4/5
O
-
-
S2 O O O O O O O
-
O
-
-
O O O O O
N
O O O
-
O O O
-
O
-
-
O O O O O
16-Bit
x
Operators
32-Bit
x
Operators
Name
Condition
Operation
result
Condition
Operation r
esult
G<
DG<
Less Than
S1 < S2
On
S1
≥
S2
Off
G<=
DG<=
Less Than or Equal To
S1
≤
S2
On
S1 > S2
Off
G<>
DG<>
Not Equal To
S1
≠
S2
On
S1 = S2
Off
G=
DG=
Equal To
S1 = S2
On
S1
≠
S2
Off
G>
DG>
Greater Than
S1 > S2
On
S1
≤
S2
Off
G>=
DG>=
Greater Than or Equal To
S1
≥
S2
On
S1 < S2
Off
Flag
Description
Device Number
Error
If N value exceeds applicable device’s area.
F110
*Note: Compare instruction must be used in Input (Contact) Position of ladder rung. This instruction uses 3
contact points.
1) LOAD x (16-Bit: G<, G<=, G<>, G=, G>, G>= ) (32-Bit: DG<, DG<=, DG<>, DG=, DG>, DG>=)
a) Ladder Structure: Compares S1 with S2 for number of groups N. If
x
operation is true for all words in
both groups, coil CR1 will be On. Otherwise CR1 will be Off.
Operand
Description
Data Type
S1
Data or Data address to compare with S2
INT/DINT
S2
Data or Data address to compare with S1
INT/DINT
N
Number of groups to compare
WORD
Input Positions
Output
Position
x
S1
S2
LOAD
x
Coil
CR1
n
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...