Mitsubishi Electric MELSEC FX3U Programming Manual page 518

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

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
R11
R12
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
R12
516
FNC116
R0
DESTRP
Conversion
0
format
Total number
7
of digits
Number of digits
3
of decimal part
Space Number of
R1
R0
0.0327457
FNC116
R0
DESTRP
Conversion
format
Total number
12
of digits
Number of digits
4
of decimal part
Space
R1
R0
0.0327457
18.4 FNC116 – ESTR / Floating Point to Character String Conversion
R10
D0
END
Total number
D0
of digits
D1
0
0 3 3
D2
D3
digits of
decimal part
R10
D10
END
Total number
of digits
3
2 7 4 6 E
0
2
Number of digits
of decimal part
D10
D11
D12
D13
D14
D15
D16
18 Floating Point – FNC110 to FNC139
b15
b8 b7
20H(space)
2EH(.)
33H(3)
00H
00H is automatically stored at
the end of the character string.
b15
b8 b7
20H(space)
2EH(.)
37H(7)
36H(6)
2DH(-)
32H(2)
0000H
0000H is automatically stored at the
end of the character string.
b0
20H(space)
30H(0)
30H(0)
33H(3)
b0
20H(space)
33H(3)
32H(2)
34H(4)
45H(E)
30H(0)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents