Omron CS1G/H-CPUxxH Instructions Manual page 590

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Floating-point Math Instructions
Flags
Examples
Decimal notation
15
8
7
0
Sign
(20)
Integer part
Digit
(20)
Sign
SP SP
00
Positive number: Space (20 Hex) or Plus sign (2B Hex)
Negative number: Minus sign (2D Hex)
Scientific notation
15
8
7
0
Sign
(20)
Integer part
Digit
(20)
Sign
. (2E)
Digit
SP
Digit
Sign
E (45)
Digit
Digit
00
Positive number: Space (20 Hex) or Plus sign (2B Hex)
Negative number: Minus sign (2D Hex)
Name
Label
Error Flag
ER
Equals Flag
=
Converting ASCII Text in Decimal Notation to Floating-point Data
When CIO 000000 is ON in the following example, FVAL(449) converts the
specified decimal-notation ASCII text number in the source words starting at
D00000 to floating-point data and writes the result to destination words
D00100 and D00101.
25 characters max.
Fractional part
00
Decimal
The 7th and higher digits are ignored.
point
(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.
25 characters max.
Exponential part
Fractional part
Sign
E
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.
Operation
ON if the digits (integer and fractional parts) in the source
data starting at S are not 30 to 39 Hex (0 to 9).
ON if the first two digits of the exponential part do not con-
tain 45 and 2B Hex (E+) or 45 and 2D Hex (E-). (integer
and fractional parts) in the source data starting at S are
not 30 to 39 Hex (0 to 9).
ON if there are two or more exponential parts in the
source data.
– ∞
ON if the data is +
or
ON is the are 0 characters in the text data.
ON if a byte containing 00 Hex is not found within the first
25 characters.
OFF in all other cases.
ON if the conversion result is 0.
OFF in all other cases.
Section 3-15
00
Positive: + (2B Hex)
Negative: - (2D Hex)
E (45)
after conversion.
569

Advertisement

Table of Contents
loading

Table of Contents