Mitsubishi MELSEC QS Series Programming Manual page 140

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

WAND(P), DAND(P)
(2) When bit devices are designated, the bit devices below the points designated as digits are
regarded as "0" in the operation. (See Program Example (2))
Operation Error
(1) There are no operation errors associated with the WAND(P) or DAND(P) instruction.
Program Example
(1) The following program masks the digit in the 10s place of the 4-digit BCD value at D10
(second digit from the end) to 0 when XA is turned ON.
[Ladder Mode]
[Operation]
(2) The following program performs a logical product operation on the data at D99 and D100,
and the 24-bit data between X30 and X47 when X8 is ON, and stores the results at D99 and
D100.
[Ladder Mode]
[Operation]
7-4
7.1 Logical Operation Instructions
7.1.1 Logical products with 16-bit and 32-bit data (WAND(P), DAND(P))
b15
D10 BCD1234
0
0
0
1
b15
HFF0F
1
1
1
1
b15
D10 BCD1204
0
0
0
1
b31
b30 b29 b28 b27 b26 b25 b24 b23 b22
D100, D99
1
1
1
1
1
X47-X30
0
0
0
0
0
Regarded as 0.
b31
b30 b29 b28 b27 b26 b25 b24 b23 b22
D100, D99
0
0
0
0
0
b8
b7
0
0
1
0
0
0
1
1
AND
b8
b7
1
1
1
1
0
0
0
0
b8
b7
0
0
1
0
0
0
0
0
b3 b2 b1 b0
1
1
1
1
1
1
1
AND
X47
X46
X33 X32 X31 X30
0
0
0
1
1
0
1
b3 b2 b1 b0
0
0
0
1
1
0
1
b0
0
1
0
0
b0
1
1
1
1
b0
0
1
0
0
1
1
0
1
0
1

Advertisement

Table of Contents
loading

Table of Contents