Omron SYSMAC CP CP1E-N@@D@-@ Manual de usuario Pagina 287

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 467
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 286
2-251
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Floating-point Math
Instructions
2
FVAL
Storage of ASCII Text
The following diagrams show how the ASCII text number is converted to floating-point data. Different
conversion methods are used for numbers stored with decimal notation and scientific notation.
00
S
FVAL(449) converts the ASCII characters
starting with the leftmost byte of S and
continuing until a byte containing 00 hex is
reached. There must be a byte containing
00 hex within the first 25 bytes.
Up to 00 hex
(25 characters max.)
15 078
00
SP SP
(20)
Digit
Sign
(20)
00
25 characters max
Integer part Fractional part
Sign
Decimal
point
The 7th and higher digits are ignored. (The sign, decimal point,
and exponent characters are not counted as digits.)
Any spaces (20 hex) or zeroes (30 hex)
before the first digit are ignored.
Positive number: Space (20 hex) or Plus sign (2B hex)
Negative number: Minus sign (2D hex)
.
Decimal notation
15 078
(20)
Digit
Digit
...
Sign
Digit
00
SP
E
Sign
(20)
.(2E)
Digit
E(45)
Digit
00
25 characters max.
Integer part Fractional part Exponential part
Decimal
point
SignSign
Positive: + (2B hex)
Negative: - (2D hex)
E (45)
The 7th and higher digits are ignored.
(The sign, decimal point, and exponent
characters are not counted as digits.)
Any spaces (20 hex) or zeroes (30 hex)
before the first digit are ignored.
Positive number: Space (20 hex) or Plus sign (2B hex)
Negative number: Minus sign (2D hex)
.
Scientific notation
ASCII Character Storage
Vista de pagina 286
1 2 ... 282 283 284 285 286 287 288 289 290 291 292 ... 466 467

Comentarios a estos manuales

Sin comentarios