L9E_SUBFI: Floating Point - Integer Subtraction
(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_SUBFI DFB subtracts a double precision integer value from a floating point value and stores the result in an array.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
ON = initiates floating point - integer operation
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
VALUE1
ARRAY[1...2] OF UINT
%MW
floating point value
VALUE1 stores the floating point value from which the integer value is subtracted.
Middle
IN/OUT
RESULT
ARRAY[1...4] OF UINT
%MW
integer value and difference
Word 1 and 2 store the double precision integer value to be subtracted from the floating point value, and the difference is posted in word 3 and 4. The difference is posted in floating point format.
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
ON = operation successful