EasyManua.ls Logo

LS Industrial Systems XBC-DR10E - Instruction

LS Industrial Systems XBC-DR10E
542 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Instruction Details
XBC E-Type Main Unit 6-185 Ve r. 1
6.30.3 WXOR, WXORP, DWXOR, DWXORP
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)
WXOR(P)
DWXOR(P)
S1
O
O
O
O
O
O
O
-
O
-
-
O
O
O
O
O
4~6 - 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
Operand
Description
Data Type
S1
Data to execute WXOR operation with S2
WORD/DWORD
S2 Data to execute WXOR operation with S1 WORD/DWORD
D
Address to save WXOR operation result in
WORD/DWORD
[Flag Set]
Flag Description
Device
Number
Zero
To be set if operation result is Zero.
F111
1) WXOR (Word Exclusive OR)
(1) Saves the result of word data S1 and S2 operated in Exclusive OR for each bit in D.
(2) Exclusive OR: If one bit is 0 and the other bit is 1, the corresponding result bit is set to 1. Otherwise, the
corresponding result bit is set to 0.
2) DWXOR (Double Word Exclusive OR)
(1) Saves the result of double word data S1+1,S1 and S2+1,S2 operated in Exclusive OR for each bit in D+1, D.
WXOR
D
b15 b8
b0
b7
1 0 0 0 1
0 1 0
1 1 0 1 0 1 0 1
S2
b8
b0
b7
S1
b15 b8
b0
b7
b15
0 1
0 0 1
1 1 0 1
1 0 0
1 1 0
0
1 1 0 0 0 1 0 0 0 0 0 1 1 0 0 1
(D)WXOR
means WXOR/DWXOR
P
S1
S2
(D)WXORP
S
1
S2
D
D

Table of Contents

Related product manuals