Mitsubishi Electric M800VW Series Programming Manual page 325

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.9 Data Processing Instructions
 Program example
 The following program decodes 3 bits of R20 bit0 to 3 when X20 turns ON and turns D100 corresponding bit to ON.
X20
0
6
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0
R20
Seen as "0"
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D100
Does not change
Note
(1) When R20 b0 to b2 is "0", D100 bit0 turns ON.
(2) D100 data remains the same even when X20 turns OFF.
 The following program decodes the 3 bits from D10 bit0 to 2 and stores the results at M10 when X20 is ON.
X20
0
6
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D10
Seen as "0"
Does not change
IB-1501667-B
[Ladder mode]
DECO R20 D100 K3
END
0 1 0 0 0 0 0 0
Among bit 0 to 7, only bit 6 turns ON.
[Ladder mode]
DECO D10 M10 K3
END
0 1 1 0
M10
M17
0 1 0 0 0 0 0 0
When valid bit 3 has been designated, occupies 8 (=23) points.
304
[List mode]
Steps
Inst.
0
LD
1
DECO
6
END
When the data of
bit 0 to 2 is 6 in binary.
[List mode]
Steps
Inst.
0
LD
1
DECO
6
END
When 6 has been
designated from X0 to X2.
Decoding results
Device
X20
R20
D100
K3
Device
X20
D10
M10
K3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents