![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831306.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-189
Ver. 1
6.30.5 GWAND, GWANDP
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x R.x
Co
nst.
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
GWAND(P)
S1 O O O O O O O - O -
- O O O O O
4~7
O
-
-
S2 O O O O O O O - O -
-
- O O O O
D O O O - O O O - O -
-
- O O O O
N O O O - O O O - O -
- O O O O O
[Flag Set]
Flag
Description
Device
Number
Error
If N value exceeds applicable device’s area.
F110
1) GWAND (Group Word AND)
(1) Saves the results of word data from S1 and S2 operated in Logic WAND for N times in word unit in D in
regular order.
Operand
Description
Data Type
S1
Address of data to start GWAND operation with S2
BIN 16
S2
Address of data to start GWAND operation with S1
BIN 16
D
Address to save GWAND operation result in
BIN 16
N
Number of data to execute WAND operation between words
BIN 16
GWAND
GWANDP
D
means
GWAND
P
D
N
N
S1 S2
S1 S2
0 0 1 1 0 0 1 1 1 1 0 0 1 1 0 1
S2+1
1 1 0 0 0 1 0 1 1 0 1 1 1 0 1 0
S2
b15
b8
b0
b7
1 0 1 1 0 1 1 1 1 0 0 1 1 0 0 1
S2+2
0 1 0 1 0 1 1 1 0 1 1 0 1 1 0 1
S2+(N-2)
S2+(N-1) 1 1 0 0 1 1 1 1 1 0 1 0 1 0 1 1
n
S1+1
1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 0
S1
b15
b8
b0
b7
1 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0
S1+2
0 1 0 1 0 1 1 0 0 0 1 1 1 0 0 1
S1+(N-2) 1 1 1 1 0 1 1 1 1 0 1 1 1 0 0 0
S1+(N-1) 1 1 1 1 0 1 0 1 1 0 0 1 0 1 1 1
n
AND
D+1
1 0 0 0 0 1 0 1 1 0 1 0 1 0 0 0
D
b15
b8
b0
b7
1 0 1 1 0 0 1 0 1 0 0 1 1 0 0 0
D+2
0 1 0 1 0 1 1 0 0 0 1 0 1 0 0 1
D+(N-2)
0 0 1 1 0 0 1 1 1 0 0 0 1 0 0 0
D+(N-1)
1 1 0 0 0 1 0 1 1 0 0 0 0 0 1 1
n
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...