533
Double-precision Floating-point Instructions Section 3-15
Example conversions:
A floating-point value of 2,147,483,640.5 is converted to 2,147,483,640.
A floating-point value of –2,147,483,640.5 is converted to –2,147,483,640.
Flags
Precautions The content of words S to S+3 must be floating-point data and the integer por-
tion must be in the range of –2,147,483,648 to 2,147,483,647.
3-15-3 16-BIT TO DOUBLE FLOATING: DBL(843)
Purpose Converts a 16-bit signed binary value to double-precision (64-bit) floating-
point data and places the result in the specified destination words.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
Name Label Operation
Error Flag ER ON if the data in words S to S+3 is not a number (NaN).
ON if the integer portion of words S to S+3 is not within
the range of –2,147,483,648 to 2,147,483,647.
OFF in all other cases.
Equals Flag = ON if the result is 0000 0000.
OFF in all other cases.
Negative Flag N ON if bit 15 of D+1 is ON after execution.
OFF in all other cases.
DBL(843)
S
D
S: Source word
D: First destination word
Variations Executed Each Cycle for ON Condition DBL(843)
Executed Once for Upward Differentiation @DBL(843)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area S D
CIO Area CIO 0 to CIO 6143 CIO 0 to CIO 6140
Work Area W0 to W511 W0 to W508
Holding Bit Area H0 to H511 H0 to H508
Auxiliary Bit Area A0 to A959 A448 to A956
Timer Area T0000 to T4095 T0000 to T4092
Counter Area C0000 to C4095 C0000 to C4092
DM Area D0 to D32767 D0 to D32764
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants #0000 to #FFFF (binary) ---
Data Registers DR0 to DR15 ---