Mitsubishi Electric M800VW Series Programming Manual page 256

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.4 Data Transfer Instructions
 Program example
 The following program inverts the data from X0 to X7, and transfers result to D0.
M3
0
4
When the number of bits at "S" is less than the number of bits at "D"
These bits are all
read as "0".
D0
 The following program inverts the data at M16 to M35, and transfers the result to Y40 to Y53.
M3
0
4
When the number of bits at "S" is less than the number of bits at "D"
These bits are all
read as "0".
Y57
 The following program inverts the data at D0 and D1 when X3 is ON, and stores the result at D16 and D17.
X3
0
4
b31
b24
0 0
0 0
0 1
0 0
D0,D1
b31
b24
1 1 1 1
1 0
1 1
D16,D17
[Ladder mode]
CML K2X0 D0
END
X7
X0
1 1 0 1 0 0 0 0
b15
b8b7
b0
1 1 1 1 1 1 1 1 0 0 1 0 1 1 1 1
[Ladder mode]
DCML K5M16 K6Y40
END
M35
M24 M23
0 1
0 0
0 1 1 1 0 0 1 0 1 1 0 0
Y53
Y48Y47
1 0 0 0 1 1 0 1 0 0 1 1
1 1 1 1
1 0
1 1
[Ladder mode]
DCMLP D0 D16
END
b8 b7
b0
0 1 1 1 0 0 1 0 1 1 0 0
b8 b7
b0
1 0 0 0 1 1 0 1 0 0 1 1
Steps
0
1
4
Steps
0
1
4
M16
Y40
Steps
0
1
4
235
[List mode]
Inst.
Device
LD
M3
CML
K2X0
D0
END
[List mode]
Inst.
Device
LD
M3
DCML
K5M16
K5Y40
END
[List mode]
Inst.
Device
LD
X3
DCMLP
D0
D16
END
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents