Mitsubishi Electric MELSEC-Q/L Programming Manual page 361

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

Advertisement

Operation error
• There is no operation error in the WAND(P) or DAND(P) instruction.
Program example
• The following program performs a logical product operation on the data from X10 to X1B and the data at D33 when XA is
ON, and stores the results at D40.
[Ladder Mode]
[Operation]
X1B
X1B to X10
0
0
0
0
1
Regarded as 0s.
b15
D33
0
1
0
1
1
b15
D40
0
0
0
0
1
• The following program performs a logical product operation on the data at D10 and at D20 when X1C is ON, and stores the
results from M0 to M11.
[Ladder Mode]
[Operation]
b15
0
0
0
0
0
D10
1
1
b15
D20
0
0
0
1
1
1
1
M15
M12
M11
1
1
1
1
1
0
1
Not changed
X18
X17
X13
0
0
1
0
0
1
1
1
AND
b8
b7
1
0
1
1
1
1
1
0
b8
b7
0
0
1
0
0
1
1
0
b7
b8
0
0
0
0
1
1
1
1
AND
b8
b7
1
1
1
1
1
1
1
1
M8
M7
M4
M3
0
1
0
1
0
1
0
1
[List Mode]
Step
Instruction
X10
1
0
0
b0
0
0
0
b0
0
0
0
[List Mode]
Step
Instruction
b0
0
b0
1
M0
0
7 APPLICATION INSTRUCTIONS
Device
Device
7.1 Logical Operation Instructions
7
359

Advertisement

Table of Contents
loading

Table of Contents