Mitsubishi Electric MELSEC-Q/L Programming Manual page 380

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

Advertisement

Operation error
• There is no operation error in the WXNR(P) or DXNR(P) instruction.
Program example
• The following program performs an exclusive NOR operation on the 16-bit data from X30 to X3F and the data at D99 when
X0 is turned ON, and stores the results to D7.
[Ladder Mode]
[Operation]
X3F
X3F to X30
0
1
b15
D99
1
1
b15
D7
0
1
• The following program performs an exclusive NOR operation on the 32-bit data at D20 and D21 and the data at D10 and
D11 when X10 is turned ON, and stores the result to D40 and D41.
[Ladder Mode]
[Operation]
b31
D21,D20
0
1
0
b31
D11,D10
0
1
1
b31
D41,D40
1
1
0
7 APPLICATION INSTRUCTIONS
378
7.1 Logical Operation Instructions
X3CX3B
X38
X37
0
1
0
1
0
1
0
1
XNR
b8
b7
0
0
1
0
0
1
1
1
b8
b7
1
0
0
0
1
1
0
1
S
+ 1
b16
b15
1
1
0
1
0
1
0
XNR
S
+ 1
b16
b15
0
0
1
0
1
1
0
D
+ 1
b16
b15
0
0
0
0
0
1
1
[List Mode]
Step
Instruction
X34X33
X30
0
1
0
1
0
1
b0
1
1
1
1
0
0
b0
0
1
0
1
1
0
[List Mode]
Step
S
b0
0
1
0
1
S
b0
1
1
0
0
D
b0
0
1
1
0
Device
Instruction
Device

Advertisement

Table of Contents
loading

Table of Contents