Mitsubishi MELSEC QS Series Programming Manual page 143

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

Advertisement

(3) The following program masks the digit in the hundred-thousands place of the 8-digit BCD
value at D10 and D11 (sixth digit from the end) to 0 when XA is ON, and outputs the results
to from Y10 to Y2B.
[Ladder Mode]
[Operation]
D10, D11(BCD12345678) 0
H FF0FFFFF
Y2B to Y10 1
7.1.1 Logical products with 16-bit and 32-bit data (WAND(P), DAND(P))
b31
b16
0
0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
AND
b31
b16
1
1
1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Y2F Y2C
Y2B Y28Y27 Y24 Y23
Y20
1
1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
Not changed.
7.1 Logical Operation Instructions
WAND(P), DAND(P)
b15
b0
b15
b0
Y1F
Y1CY1B Y18Y17 Y14 Y13
Y10
7
7-7

Advertisement

Table of Contents
loading

Table of Contents