Mitsubishi MELSEC-Q/L Programming Manual page 311

Table of Contents

Advertisement

(2) The following program performs a logical product operation on the data at D10 and at D20 when X1C is ON, and stores
the results from M0 to M11.
[Ladder Mode]
[Operation]
b15
D10
0
0
0
0
1
b15
D20
0
0
0
1
1
M15
M12
M11
1
1
1
1
1
Not changed
(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 1
Y2B to Y10 1
Not changed
[List Mode]
Step
b8
b7
0
1
0
1
0
1
0
1
AND
b8
b7
1
1
1
1
1
1
1
1
M8
M7
M4
M3
0
1
0
1
0
1
0
1
[List Mode]
Step
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 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 Y28 Y27 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
WAND, WANDP, DAND, DANDP
Instruction
Device
b0
0
1
0
b0
1
1
1
M0
0
1
0
Instruction
Device
b15
b0
b15
b0
Y1F
Y1CY1B Y18 Y17 Y14 Y13
Y10
1
2
3
4
4
6
7
8
309

Advertisement

Table of Contents
loading

Table of Contents