EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 380

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...
378
7 APPLICATION INSTRUCTIONS
7.1 Logical Operation Instructions
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.
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] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step Instruction Device
11001 00111111100
0 11000110 1 0 1 0 11
0
b15 b8 b0b7
b0b7b15 b8
XNR
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
X30X37X3F X38
D99
D7
X3C
X3B X34X33
X3F to X30
Step Instruction Device
0 11001 0 110 1100
b0b15b31b16
XNR
0 1 0 110 1 0 1 001 0 1
11
00 0000
11
0
11
0
b31b16 b0b15
+ 1
+ 1
+ 1
D21,D20
D11,D10
D41,D40
b0b15b31b16
D
S S
D
SS

Table of Contents

Related product manuals