Mitsubishi MELSEC Q Series Programming Manual page 596

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

ESTR(P)
Program Example
(1) The following program converts the 32-bit floating point type real number data which had
been stored at R0 and R1 in accordance with the conversion designation that is being stored
at R10 to R12, and stores the result following D0 when X0 goes ON.
[Ladder Mode]
[Operation]
R10
R11
R12
R1
0
. 0 3 2 7 4 5 7
(2) The following program converts the 32-bit floating decimal point type real number data which
had been stored at D0 and D1 in accordance with the conversion designation that is being
stored at R10 to R12, and stores the result following D10 when X1C goes ON.
[Ladder Mode]
[Operation]
R10
1 (exponent format)
R11
R12
7-222
Conversion format
0
7
Total number of digits
Number of digits
3
in decimal fraction
R0
Conversion format
12
Total number of digits
4
Number of digits
in decimal fraction
D1
D0
. 0 3 2 7 4 5 7
0
8
[List Mode]
Step
Instruction
D0
Total number of digits
D1
0
. 0 3 3
D2
Space
Number of digits
in decimal fraction
[List Mode]
Step
Total number of digits
3
.
2 7 4 6 E
-
0
2
Space
Number of digits
in decimal fraction
b15
D10
D11
D12
D13
D14
D15
D16
Device
b15
b8 b7
20
(space)
20
(space)
H
H
30
(0)
2E
(.)
H
H
33
(3)
30
(0)
H
H
00
33
(3)
H
H
Automatically stored
Instruction
Device
b8 b7
20
(space)
20
(space)
H
H
2E
(.)
33
(3)
H
H
37
(7)
32
(2)
H
H
36
(6)
34
(4)
H
H
2D
(-)
45
(E)
H
H
32
(2)
30
(0)
H
H
00
H
Automatically stored
b0
b0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents