Mitsubishi Electric M800VW Series Programming Manual page 204

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.2 Arithmetic Operation Instructions
 Program example
 When X5 is turned ON, "5678" of BIN and multiplication result of D0 are stored in D3 and D4.
X5
0
5
 Multiplication result of BIN data of X8 to XF and BIN data of X10 to X1B is output to D0 and D1.
M402
0
5
 When X3 is turned ON, the data of X8 to XF is divided by 3.14 and the result is output to D3 and D4.
X3
0
9
[Ladder mode]
*P K5678 D0 D3
END
[Ladder mode]
* K2X8 K3X10 D0
END
[Ladder mode]
*P K2X8 K100 D0
/P D0
K314 D3
END
183
[List mode]
Steps
Inst.
Device
0
LD
X5
1
*P
K5678
D0
D3
5
END
[List mode]
Steps
Inst.
Device
0
LD
M402
1
*
K2X8
K3X10
D0
5
END
[List mode]
Steps
Inst.
Device
0
LD
X3
1
*P
K2X8
K100
D0
5
/P
D0
K314
D3
9
END
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents