Siemens NAN 67 Series Manual de Serviço Página 286

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 318
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 285
C-4
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
Table C-3 Integer Range
Format Range
16-bit integer -32,768 to +32,767
1 1 0 0
03748111215Bits
Sign Decimal Values: 32 + 8 + 4 = 44
0 0 1 00 0 0 0
0 0 0 0
Figure C-1 A 16-Bit Integer in Binary Format: +44
An integer is a whole number that has a sign to indicate whether it is positive
or negative. In memory, a 32-bit integer (double integer) takes up two words
of space. Table C-4 shows the range of a double integer. Figure C-2 shows
the integer - 500,000 in binary format. In binary format, the negative form of
an integer is represented as the twos complement of the positive form of that
integer. You obtain the twos complement of an integer by inverting the signal
states of all bits and then adding + 1 to the result.
Table C-4 Double Integer Range
Format Range
32-bit integer -2,147,483,648 to +2,147,483,647
0 0 0 0
037481112
Bits
Sign
151619202324272831
1 1 1 0 1 1 1 0 0 1 0 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1
Figure C-2 A 32-Bit Integer in Binary Format: -500,000
A real number (also called floating-point number) is a positive or negative
number that includes a decimal value, for example, 0.339 or - 11.1. You can
also include an exponent with a real number to indicate the integer power of
10 by which the real number is multiplied to obtain the value you want to
represent. For example, you can represent 1,234,000 as 1.234E6 or 1.234e6
(that is, 1.234 10
6
). Table C-5 shows the range of a real number.
In memory, a real number takes up two words of space (32 bits, see
Figure C-3). The most significant bit indicates the sign of the number (bit 31,
where 0 indicates plus, 1 indicates minus). The other bits represent the
exponent and the mantissa.
Double Integers:
32 Bits
Real Numbers
Number Notation
Vista de página 285
1 2 ... 281 282 283 284 285 286 287 288 289 290 291 ... 317 318

Comentários a estes Manuais

Sem comentários