L9E_SQRT: Floating Point Square Root
(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_SQRT DFB performs a standard square root operation on a %MW or a %IW value and stores the result in an array.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
ON = initiates a standard square root operation
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
SOURCE
ARRAY[1...2] OF UINT
%IW, %MW
source value
If you specify a %MW the source value may be in the range of 0..99,999,999 (word 1+2 in array used).
If you specify a %IW the source value may be in the range of 0..9,999 (only word 1 in array used).
Middle
IN/OUT
RESULT
ARRAY[1...2] OF UINT
%MW
result
RESULT stores the value of the standard square root operation.
RESULT is stored in the fixed-decimal format: 1234.5600. where word 1 stores the four-digit value to the left of the first decimal point and word 2 stores the four-digit value to the right of the first decimal point.
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
ON = operation successful
Middle
ERR
BOOL
ON =source value out of range