Mitsubishi Electric M800VW Series Programming Manual page 217

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 adds the 64-bit floating-point real number at D3 to D6 to the 64-bit floating-point real number at D10
to D13 when X20 turns ON, and stores the result of the addition at R0 to R3.
[Ladder mode]
X20
0
5
D6
D5
5961.437
 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
97365.203
IB-1501667-B
ED+P D3 D10 R0
END
[Operation]
D4
D3
D13
D12
D11
12003.200
+
ED-P D10 D20 D30
END
[Operation]
D11
D10
D23
D22
D21
-
76059.797
[List mode]
Steps
Inst.
0
LD
1
ED+P
5
END
D10
R3
R2
R1
17964.637
[List mode]
Steps
Inst.
0
LD
1
ED-P
5
END
D20
D33
D32
D31
21305.406
196
Device
X20
D3
D10
R0
R0
Device
SM400
D10
D20
D30
D30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents