L9E_SUBDP: Double Precision 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_SUBDP DFB subtracts a double precision operand 2 from a double precision operand 1 and stores the result in an array.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
ON = subtracts operand 2 from operand 1 and posts difference in designated words
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
VALUE1
ARRAY[1...2] OF UINT
%MW
operand 1
Value 1 stores the high-order halves and low-order halves of operand 1, for a combined double precision value in the range of 0 through 99,999,999.
Middle
IN/OUT
RESULT
ARRAY[1...6] OF UINT
%MW
operand 2 and difference
  • Word 1 and 2 store the high-order and low-order halves of operand 2, for a combined double precision value in the range 0 through 99,999,999.
  • Word 3 and 4 store the high-order and low-order halves, of the absolute difference in double precision format.
  • Word 5 indicates whether or not the operands are in the valid range
  • Word 6 is reserved.
Output Pin
Name
Data Type
Address Range
Meaning
Top
GRT
BOOL
ON = operand 1 > operand 2
Middle
EQT
BOOL
ON = operand 1 = operand 2
Bottom
LESSTH
BOOL
ON = operand 1 < operand 2