Mitsubishi Electric MELSEC FX3U Programming Manual page 523

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
2) In the program shown below, a character string stored in D10 and later is converted into binary floating
point, and stored to D100 and D101 when X000 turns ON
X000
Operations at overflow, underflow and zero
Condition
The absolute value of the
conversion result is less than
−126
"2
".
The absolute value of the
conversion result is not less than
128
"2
".
The conversion result is true "0".
(The mantissa part is "0".)
FNC117
D10
D100
DEVALP
END
b15
b8 b7
20H(space)
D10
D11
2EH(.)
D12
33H(3)
35H(5)
D13
2DH(-)
D14
32H(2)
D15
D16
1
2
3 4 5
Ignored.
The value of
flag M8021 turns ON.
The value of
flag M8022 turns ON.
The zero flag M8020 turns ON.
18.5 FNC117 – EVAL / Character String to Floating Point Conversion
b0
20H(space)
31H(1)
32H(2)
34H(4)
45H(E)
30H(0)
00H
E
0
2
Rounded.
Operation
−126
is the minimum value (2
D
is the maximum value (2
D
18 Floating Point – FNC110 to FNC139
D101
D100
1.2345E−2
) of 32-bit real numbers and the borrow
128
) of 32-bit real numbers and the carry
11
12
13
14
15
16
17
18
19
20
521

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents