Mitsubishi Electric M800VW Series Programming Manual page 359

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.10 Character String Processing Instructions
 Program example
 The following program converts the 32-bit floating-point real number data stored at R0 and R1 in accordance with the con-
version designation stored at R10 to R12, and stores the result in the area starting from D0 when X0 turns ON.
X0
0
5
R10
(decimal format)
0
R11
7
R12
3
R1
R0
0.0327457
 The following program converts the 32-bit floating-point real number data stored at D0 and D1 in accordance with the con-
version designation stored at R10 to R12, and stores the result in the area starting from D10 when X1C turns ON.
X1C
0
5
(exponential
R10
1
format)
Total number
R11
12
of digits
R12
4
D1
D0
0.03274578
IB-1501667-B
[Ladder mode]
ESTRP R0 R10 D0
END
Conversion 
format
Total number of digits
Total number 
of digits
Number of 
0
.
digits in 
Space
decimal 
Number of digits 
fraction
in decimal fraction
[Ladder mode]
ESTRP D0 R10 D10
END
Conversion
format
Total number of digits
Number of
3
.
2 7 4 6
digits in
decimal
Number of digits in
Space
fraction
decimal fraction
Steps
0
1
5
[Operation]
b15
(space)
D0
20H
D1
2EH (.)
0 3 3
D2
33H (3)
D3
00H
Automatically stored
Steps
0
1
5
[Operation]
b15
20H
D10
D11
E
-
0
2
D12
D13
D14
D15
D16
338
[List mode]
Inst.
Device
LD
X0
ESTRP
R0
R10
D0
END
b8b7
(space)
20H
30H (0)
30H (0)
33H (3)
[List mode]
Inst.
Device
LD
X1C
ESTRP
D0
R10
D10
END
b8b7
(space)
20H
(space)
2EH (.)
33H (3)
37H (7)
32H (2)
36H (6)
34H (4)
2DH (-)
45H (E)
32H (2)
30H (0)
00H
Automatically stored
b0
b0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents