Mitsubishi Electric MELSEC-Q/L Programming Manual page 374

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

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.
[Ladder Mode]
[Operation]
X1B to X10
0
0
Regarded as 0s.
b15
D33
1
1
Y3B to Y30
0
1
Not changed
• 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]
[Operation]
b31
D21,D20
1
1
0
b31
D31,D30
0
0
0
b31
D41,D40
1
1
0
7 APPLICATION INSTRUCTIONS
372
7.1 Logical Operation Instructions
X1B
X18
X17
0
0
0
1
0
1
0
1
XOR
b8
b7
1
1
0
0
1
1
0
0
Y3B
Y38
Y37
1
0
0
1
1
0
0
1
S1
+ 1
b16
b15
0
1
0
1
0
1
XOR
S2
+ 1
b16
b15
0
1
1
0
0
0
D
+ 1
b16
b15
0
0
1
1
0
1
[List Mode]
Step
X14
X13
X10
0
1
0
1
0
1
b0
1
1
1
0
0
1
Y34Y33
Y30
1
0
1
1
0
0
[List Mode]
Step
S1
b0
1
0
0
1
1
S2
b0
1
0
1
0
1
D
b0
0
0
1
1
0
Instruction
Device
Instruction
Device

Advertisement

Table of Contents
loading

Table of Contents