Real Number To Bin Value Conversion (Int) - Mitsubishi Electric Q Series Programming Manual

Motion controller
Hide thumbs Also See for Q Series:
Table of Contents

Advertisement

6 MOTION PROGRAMS FOR POSITIONING CONTROL

6.16.6 Real number to BIN value conversion (INT)

Code
Floating-point type real
number processing
Function
instruction
Real number to BIN value
I
N
Format
[Explanation]
[Program Example]
INT
T
[ ] n
;
(1) A floating-point type real number is converted into a 32-bit integer (BIN value)
including four decimal places.
(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 floating-point type real number is converted into a 32-bit integer (BIN
value) including four decimal places.
15
Bits 0 to 22 : Significant digit part
-126
2
, 0, 1.0
#2004 : L = (461C4000)
(D2004, D2005 = (461C4000)
#2006 : L = 10000
6 - 139
Indirect setting only
Real number to 32-bit integer
(BIN value) conversion command
Bit 0
–126
2
value < 1.0
16
)
16
128
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173hcpuQ172hcpu

Table of Contents