Mitsubishi Electric M800VW Series Programming Manual page 224

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
 The following program multiplies the 64-bit floating-point real number at D3 to D6 by the 64-bit floating-point real number at
D10 to D13 when X20 turns ON, and stores the result of the multiplication at R0 to R3.
[Ladder mode]
X20
0
5
D6
D5
D4
36.7896
 The following program subtracts the 64-bit floating-point real number at (D20) to (D23) from the 64-bit floating-point real
number data at (D10) to (D13) and stores the result of the subtraction at (D30) to (D33).
[Ladder mode]
SM400
0
5
D13
D12
D11
52171.39
ED*P D3 D10 R0
END
[Operation]
D3
D13
D12
D11
D10
×
11.9278
ED/P D10 D20 D30
END
[Operation]
D10
D23
D22
D21
D20
/
9.73521
[List mode]
Steps
Inst.
Device
0
LD
X20
1
ED*P
D3
D10
R0
5
END
R3
R2
R1
R0
438.8190
[List mode]
Steps
Inst.
Device
0
LD
SM400
1
ED/P
D10
D20
D30
5
END
D33
D32
D31
D30
5359.041
203
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents