EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-Q/L

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 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
Page #321 background imageLoading...
Page #321 background image
319
WXOR, WXORP, DXOR, DXORP
1
2
3
4
4
6
7
8
7.1 Logical operation instructions
7.1.5 WXOR, WXORP, DXOR, DXORP
Program Example
(1) The following program performs an exclusive OR operation on the data at D10 and D20 when XA is ON, and stores the
result at D10.
[Ladder Mode] [List Mode]
[Operation]
(2) The following program compares the bit pattern of the 32-bit data from X20 to X3F with the bit pattern of the data at D9
and D10 when X6 is ON, and stores the number of differing bits at D16.
[Ladder Mode] [List Mode]
[Operation]
Remark
See Page 356, Section 7.5.2 for more information on the DSUMP instruction.
Step Instruction Device
0011100100111001
0110110001101100
b15 b8 b0b7
b0b7b15 b8
XOR
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
b0b7b15 b8
D10
D20
D10
Step Instruction Device
0D10,D9 1 1 11001110000011011110110101101
b31 b16
b0
b15
1D10,D9 1 1 01100100101001110100011111000
X3F X30 X20X2F
1
X3F to X20
00
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
X3C X3B X38 X37 X34 X33 X2C X2B X28 X27 X24 X23
XOR
b31 b16
b0
b15
17
+ 1
+ 1
+ 1
D16
D
S
D
D
S
D

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals