L9_TEST: Test of 2 Values
(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 TEST procedure compares the signed or unsigned size of the 16-bit values in VALUE1 and VALUE2 and describes the relationship via the outputs.
TEST has two control inputs. ENABLE initiates the operation when it is ON. The state of SIGNED indicates whether the comparison will be a signed or unsigned operation.
TEST produces one of three possible outputs (GRT, EQT, LESSTH). The state of the outputs indicates the relationship between VALUE1 and VALUE2
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
ON = compares value 1 and value 2
Bottom
SIGNED
BOOL
ON = signed operation
OFF = unsigned operation
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
VALUE1
UINT
%IW, %MW
value1, can be displayed explicitly as an integer (range 0 ... 65 535) or stored in a parameter
Middle
IN
VALUE2
UINT
%IW, %MW
value2, can be displayed explicitly as an integer (range 0 ... 65 535) or stored in a parameter
Bottom
IN
CONST
UINT
1
constant value, not used
Output Pin
Name
Data Type
Address Range
Meaning
Top
GRT
BOOL
ON = value1 > value2
Middle
EQT
BOOL
ON = value1 = value2
Bottom
LESSTH
BOOL
ON = value1 < value2