355
Floating-point Math Instructions
Section 5-24
5-24-4 32-BIT TO FLOATING: FLTL(––)
Limitations
The result will not be exact if a number with an absolute value greater than
16,777,215 (the maximum value that can be expressed in 24-bits) is con-
verted.
DM 6143 to DM 6655 cannot be used for R.
Description
When the execution condition is OFF, FLTL(––) is not executed. When the
execution condition is ON, FLTL(––) converts the 32-bit signed binary value in
S+1 and S to 32-bit floating-point data (IEEE754-format) and places the result
in R+1 and R. A single 0 is added after the decimal point in the floating-point
result.
Signed binary data within the range of –2,147,483,648 to 2,147,483,647 can
be specified for S+1 and S. The floating point value has 24 significant binary
digits (bits). The result will not be exact if a number greater than 16,777,215
(the maximum value that can be expressed in 24-bits) is converted by
FLTL(––).
Example Conversions:
A signed binary value of 16,777,215 is converted to 16,777,215.0.
A signed binary value of –16,777,215 is converted to –16,777,215.0.
Flags
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of
*
EM/
*
DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
EQ:
ON if both the exponent and mantissa of the result are 0.
5-24-5 FLOATING-POINT ADD: +F(––)
S
:
First source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
R
: First result word
IR, SR, AR, DM, EM, HR, LR
Ladder Symbols
Operand Data Areas
Third operand
:
Always 000
−−−
FLTL(
−−
)
S
R
000
@FLTL(
−−
)
S
R
000
R+1
R
S
Floating-point data (32 bits)
Signed binary data (32 bits)
S+1
Au
:
First augend word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Ad
:
First addend word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Ladder Symbols
Operand Data Areas
R
:
First result word
IR, SR, AR, DM, EM, HR, LR
+F(
−−
)
Au
Ad
R
@+F(
−−
)
Au
Ad
R