Bin Value To Real Number Conversion (Flt) - Mitsubishi Electric Q172CPU Programming Manual

Melsecq series motion controller sv43
Hide thumbs Also See for Q172CPU:
Table of Contents

Advertisement

7 MOTION PROGRAMS FOR POSITIONING CONTROL

7.16.7 BIN value to real number conversion (FLT)

Code
Floating-point type real
number processing
Function
instruction
BIN value to real number
conversion
F
L
Format
[Explanation]
[Program Example]
FLT
T
[ ] n
;
(1) A 32-bit integer (BIN value) including four decimal places is converted into a
floating-point type real number.
(2) A floating-point type real number is processed as single precision (32-bit) in the
binary floating-point format of the IEEE Standard.
Sign part ...................... 1 bit
Exponent part .............. 8 bits
Significant digit part...... 23 bits
31
22
Bits 23 to 30 : Exponent part
Bits 31 : Sign part
(3) The following values can be handled as floating-point type real numbers.
128
-1.0
2
< value -1.0
#2002 : L = 10000 ;
#2004 : L = FLT [#2002 : L] ;
#2006 : L = INT [#2004 : L] ;
A 32-bit integer (BIN value) including four decimal places is converted
into a floating-point type real number.
15
Bits 0 to 22 : Significant digit part
-126
2
, 0, 1.0
#2004 : L = (461C4000)
(D2004, D2005 = (461C4000)
#2006 : L = 10000
7 - 140
Indirect setting only
32-bit integer (BIN value) to real
number conversion command
Bit 0
–126
2
value < 1.0
16
)
16
128
2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpuQ172cpunQ173cpun

Table of Contents