Siemens NAN 67 Series Wartungshandbuch Seite 289

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 318
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 288
C-7
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
Figure C-4 shows the real number format for the following decimal values:
S 10.0
S (3.141593)
S Square root of 2 (p2 = 1.414214)
The hexadecimal value for the real number is shown in the row above the bit
numbers.
0
037481112Bits
Sign of
Mantissa: s
(1 bit)
151619202324272831
Exponent: e
(8 bits)
Mantissa or fraction: f
(23 bits)
f = 2
-2
= 0.25
01000 1 100 00 0 0000000000000000000
Hexadecimal
value
41 2 0 0 0 0 0
1
037481112Bits
Sign of
Mantissa: s
(1 bit)
151619202324272831
Exponent: e
(8 bits)
Mantissa or fraction: f
(23 bits)
01000 0 000 01 0 0010000111111011100
Hexadecimal
value
40 4 9 0 FD C
0
037481112Bits
Sign of
Mantissa: s
(1 bit)
151619202324272831
Exponent: e
(8 bits)
Mantissa or fraction: f
(23 bits)
00111 1 111 10 1 1010000010011110111
Hexadecimal
value
3F B 5 0 4 F 7
Decimal value 10.0
Decimal value 3.141593
Decimal value 1.414214
e = 2
7
+ 2
1
= 130
1.f 2
e-bias
= 1.25 2
3
= 10.0
[1.25 2
(130-127)
= 1.25 2
3
= 10.0]
Figure C-4 Example of a Floating-Point Number Format for Decimal Value 10.0
Examples of Real
Number Format
Number Notation
Seitenansicht 288
1 2 ... 284 285 286 287 288 289 290 291 292 293 294 ... 317 318

Kommentare zu diesen Handbüchern

Keine Kommentare