FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Program examples
1)
In the program example shown below, the contents (binary floating point data) of R0 and R1 are converted
according to the contents specified by R10 to R12, and then stored to D0 and later when X000 turns ON
X000
R10
0
R11
7
R12
3
R1
2)
In the program shown below, the contents (binary floating point data) of R0 and R1 are converted according to the
contents specified by R10 to R12, and then stored to D10 and later when X000 turns ON
X000
1 (exponent
R10
format)
R11
12
R12
4
R1
0.0327457
FNC116
R0
R10
DESTRP
Conversion
format
Total number
Total number
of digits
of digits
Number of digits
0
of decimal part
Space Number of
R0
0.0327457
FNC116
R0
R10
DESTRP
Conversion
format
Total number
of digits
Number of digits
3
of decimal part
Space
R0
18 Floating Point – FNC110 to FNC139
18.4 FNC116 – ESTR / Floating Point to Character String Conversion
D0
END
b15
D0
20H(space)
D1
0 3 3
D2
D3
digits of
decimal part
D10
END
Total number
of digits
2 7 4 6 E
0
2
Number of digits
b15
of decimal part
20H(space)
D10
D11
D12
D13
D14
D15
D16
0000H is automatically stored at the
b8 b7
20H(space)
2EH(.)
30H(0)
33H(3)
30H(0)
00H
33H(3)
00H is automatically stored at
the end of the character string.
b8 b7
20H(space)
2EH(.)
33H(3)
37H(7)
32H(2)
36H(6)
34H(4)
2DH(-)
45H(E)
32H(2)
30H(0)
0000H
end of the character string.
11
12
b0
13
14
15
16
b0
17
18
19
20
497