EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 366

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...
364
7 APPLICATION INSTRUCTIONS
7.1 Logical Operation Instructions
Operation error
There is no operation error in the WOR(P) or DOR(P) instruction.
Program example
The following program performs a logical sum operation on the data at D10 and D20 when XA is turned ON, and stores the
results at D10.
The following program performs a logical sum operation on the 32-bit data from X0 to X1F, and on the hexadecimal value
FF00FF00H when XB is turned ON, and stores the results at D66 and D67.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step Instruction
Device
00001 0 111001 0001
11
00
11111111
000
1
b15 b8 b0b7
b0b7b15 b8
OR
1100110011110000
b0b7
b15
b8
D10
D20
D10
Step Instruction Device
1111 000111 0000
b0b15b31b16
OR
1 0 1 00000001 0 1 0
X0
XFX1F
X10
1111
000
111 1
0
1
0
b31b16 b0b15
X1C
X3
+ 1
+ 1
+ 1
X0
FF00FF00
H
D67,D66
D
S
S
D
D
D
X1F

Table of Contents

Related product manuals