Omron SYSMAC CP CP1E-N@@D@-@ Manual do Utilizador Página 288

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 467
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 287
2 Instructions
2-252
CP1E CPU Unit Instructions Reference Manual(W483)
Sample program
Converting ASCII Text in Decimal Notation to Floating-point Data
When CIO 0.00 is ON in the following example, FVAL(449) converts the specified decimal-notation
ASCII text number in the source words starting at D0 to floating-point data and writes the result to des-
tination words D100 and D101.
Converting ASCII Text in Scientific Notation
When CIO 0.00 is ON in the following example, FVAL(449) converts the specified scientific-notation
ASCII text number in the source words starting at D0 to floating-point data and writes the result to des-
tination words D100 and D101.
0000010011000000
101111111
0011110
0.00
15 0
D100
D101
20 (Space)
31 (1)
32 (2)
34 (4)
32 (2)
00
D0
D1
D2
D3
D4
D5
0000010011000000
101111111
0011110
15 0
FVAL
D0
D100
The 7th and higher digits are ignored.
(The sign, decimal point, and leading
zeroes/spaces are not counted.)
Ignored
Conversion
Storage
0100001010101111
1011110001001010
0.00
15 0
D100
D101
D0
D1
D2
D3
D4
D5
D6
0100001010101111
1011110001001010
15 0
FVAL
D0
D100
1. 2345E-02
Ignored Ignored
Conversion
Storage
20 (Space)
Vista de página 287
1 2 ... 283 284 285 286 287 288 289 290 291 292 293 ... 466 467

Comentários a estes Manuais

Sem comentários