EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 374

Mitsubishi Electric MELSEC-Q/L
1084 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...
372
7 APPLICATION INSTRUCTIONS
7.1 Logical Operation Instructions
Operation error
There is no operation error in the WXOR(P) or DXOR(P) instruction.
Program example
The following program conducts an exclusive OR operation on the data from X10 to X1B and the data at D33 when X10 is
ON, and outputs the result to Y30 to Y3B.
The following program conducts an exclusive OR operation on the data at D20 and D21, and the data at D30 and D31
when X10 is turned ON, and stores the results at D40 and D41.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step Instruction Device
1111
00
11
00
111
00
1
0 11001100110 1100
Y38 Y30Y37
b0b7b15 b8
XOR
D33
Y3B to Y30
Regarded as 0s.
00000
1
0
1
0
1
0
1
0
1
0
1
X10X17
X1B to X10
X13X18X1B
Y3BY34Y33
X14
Not changed
Step Instruction Device
0000 110001 0 1 0 1
b0b15b31b16
XOR
1100 1 0 1 0 11 0011
b0b15b31b16
11
00 0
11
0
1
00
11
0
b31b16 b0b15
+ 1
+ 1
+ 1
D21,D20
D31,D30
D41,D40
D
S1 S1
S2 S2
D

Table of Contents

Related product manuals