L9E_CNVIF: Integer-to-Floating Point Conversion
(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 L9E_CNVIF DFB converts an integer value to a floating point value.
Representation
Parameters
Input
Name
Data Type
Address Range
Meaning
Top
ENABLE
ON = initiates integer to floating point conversion
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
VALUE1
ARRAY[1...2] OF UINT
%MW
integer value to be converted
VALUE1 stores the integer value to be converted.
Note: If an invalid integer value ( > 9999) is entered in VALUE1, the floating point conversion will be performed but an event will be reported and logged in the L9E_ERLOG DFB. The result of the conversion may not be correct.
Middle
IN/OUT
RESULT
ARRAY[1...4] OF UINT
%MW
floating point value
The floating point result of the conversion is posted in word 3 and 4.
Word 1 and 2 are not used but allocation is required.
Note: To preserve space, you can make the %MW reference numbers assigned to word 1 and 2 equal to VALUE1, since word 1 and 2 are not used.
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
ON = operation successful
(Event is flagged in the L9E_ERLOG DFB).