Omron SYSMAC CP Series Instruction & Reference Manual page 287

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

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.
ASCII Character Storage
S
00
Decimal notation
15
8
7
Sign
(20)
Digit
(20)
00
Scientific notation
15
8
7
Sign
(20)
Digit
(20)
Digit
.(2E)
Digit
...
Sign
E(45)
Digit
Digit
00
CP1E CPU Unit Instructions Reference Manual(W483)
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.)
0
25 characters max
Integer part
Fractional part
Sign
SP SP
.
Decimal
The 7th and higher digits are ignored. (The sign, decimal point,
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)
0
25 characters max.
Integer part
Fractional part Exponential part
Sign
SP
.
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)
00
Sign
E
00
Positive: + (2B hex)
Negative: - (2D hex)
E (45)
2 Instructions
2
2-251

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents