Mitsubishi Electric M800VW Series Programming Manual page 327

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 encodes the 3 bits from M10 when X20 is ON, and stores the results at D8.
X20
0
6
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D8
Not changed
IB-1501667-B
[Ladder mode]
ENCO M10 D8 K3
END
M17
M10
0 0 0 0 1 0 0 0
0 1 1
Counting from M10, the device
which is ON is stored as BIN data.
306
Steps
Inst.
0
LD
1
ENCO
6
END
When valid bit 3 has been
designated, occupies 8 (=23)
points.
Encoding results
[List mode]
Device
X20
M10
D8
K3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents