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