L9_ITOF: Integer to Floating Point
(Original Document)
Naming
Name in LL984 Editor
Function Block Name
name of legacy 984 instruction
name in other tools and editors like:
  • Type Library Browser
  • Data Editor
  • Animation Tables
  • Search Results
Function Description
The ITOF procedure performs the conversion of a signed or unsigned integer value (SOURCE) to a floating point (FP) value, and stores the FP value in two contiguous words.
ITOF has two control inputs. The ENABLE initiates the operation when it is ON. The state of SIGNED indicates whether the conversion will be a signed or unsigned operation.
ITOF produces one output OUT upon successful completion of the conversion.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
ON = enable conversion
Bottom
SIGNED
BOOL
ON = signed operation
OFF = unsigned operation
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
SOURCE
UINT
%IW, %MW
integer value, can be displayed explicitly as an integer (range 0 ... 65,535), stored in a %IW, stored in a %MW, an unlocated UINT or a constant value
Middle
IN/OUT
DEST
ArrUInt2
%MW
Declared as ARRAY[1..2] OF UINT where the converted FP value is stored.
Bottom
IN
CONST
UINT
1
constant value of 1, can not be changed
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
ON = FP conversion completed successfully