![background image](http://html1.mh-extra.com/html/omron/sx-f/sx-f_instruction-manual_743231089.webp)
81
Description of the EInt formats
Section 10-6
Example of floating point format
A signed number should be represented as a two complement binary number,
like below:
Value Binary
The value represented by the EInt floating point format is m·10
e
.
To convert a value from the EInt floating point format to a floating point value,
use the formula above.
To convert a floating point value to the EInt floating point format, see the code
float_to_eint below.
Example
The number 1.23 would be represented by this in EInt
The value is then 123x10
-2
= 1.23
Example of 15-bit fixed point format
The value 72.0 can be represented as the fixed point number 72. It is within
the range 0-32767, which means that the 15-bit fixed point format may be
used.
The value will then be represented as:
Where bit 15 indicates that we are using the fixed point format (F=0).
e3-e0 4-bit signed exponent.
-8..+7 (binary 1000 .. 0111)
m10-m0 11-bit signed mantissa.
-1024..+1023 (binary
10000000000..01111111111)
-8 1000
-7 1001
..
-2 1110
-1 1111
0 0000
1 0001
2 0010
..
6 0110
7 0111
F EEEE MMMMMMMMMMM
1 1110 00001111011
F=1 -> Eint
E=-2
M=123
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0
Содержание SX-F
Страница 2: ......
Страница 14: ...6 Table of contents...
Страница 20: ...12 Glossary Section 1 6...
Страница 32: ...24 Cabinet mounting Section 2 3...
Страница 58: ...50 Connecting options Section 5 6...
Страница 72: ...64 Load Monitor and Process Protection 400 Section 7 5...
Страница 74: ...66 EMC standards Section 8 1...
Страница 266: ...258 System Data 900 Section 11 9...
Страница 274: ...266 Maintenance Section 12 3...
Страница 284: ...276 Liquid cooling Section 13 12...