Delta AS Series Programming Manual page 381

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
Example 1
1.
When X0.0 is ON, the instruction converts the decimal floating-point number in the register in (D1, D0) into the
single-precision floating-point number, and stores the conversion result is stored in (D3, D2).
Decimal fl oating-point number
Binary floating-point number
Example 2
1.
Before the floating-point operation is performed, use the FLT instruction to convert the binary integer into a single-
precision floating-point number. Make sure the value to be converted is a binary integer before conversion. You
can use the FBIN instruction to convert the floating-point number into the single-precision floating-point number.
_6
2.
When X0.0 is ON, K314 and K-2 are moved to D0 and D1 respectively, and then FBIN combines them into the
decimal floating-point number (3.14=314×10
Additional remarks
If the real number part of the decimal floating-point number in S is not between -9,999 to +9,999, or if the exponent of the
decimal floating-point number in S is not between -41 to +35, the instruction is not executed, SM0 is ON, and the error
code in SR0 is 16#2013.
6 - 1 0 2
Exponent
Real number
Mathematic al form
D 1
D 0
Real number: 23 bits; Ex ponent: 8 bits ; sign: 1 bit
D 3
D 2
-2
).
[D 1]
[D0]
10
X

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents