UMAX130511 Version 1.00A Preliminary Documentation
– May be subject to change
40 - 141
The first step in determining which table will be selected as the active table is to first evaluate the
conditions associated with a given table. Each table has associated with it up to three conditions
that can be evaluated. Conditional objects are custom DEFSTRUCT objects defined as shown in
Table 25.
Index
Sub-Index
Name
Data Type
3xyz*
0
Highest sub-index supported
UNSIGNED8
1
Argument 1 Source
UNSIGNED8
2
Argument 1 Number
UNSIGNED8
3
Argument 2 Source
UNSIGNED8
4
Argument 2 Number
UNSIGNED8
5
Operator
UNSIGNED8
* Logic Block X Function Y Condition Z, where X = 4 to 7, Y = A, B or C, and Z = 1 to 3
Table 26
– LB(3-x) Condition Structure Definition
Objects 3x11h, 3x12h and 3x13h are the conditions evaluated for selecting Table A.
Objects 3x21h, 3x22h and 3x23h are the conditions evaluated for selecting Table B.
Objects 3x31h, 3x32h and 3x33h are the conditions evaluated for selecting Table C.
Argument 1 is always a logical output from another function block, as listed in Table 28. As always,
the input is a combination of the functional block objects 3xyzh sub-index 1
“Argument 1 Source”
and
“Argument 1 Number.”
Argument 2 on the other hand, could either be another logical output such as with Argument 1, OR
a constant value set by the user. To use a constant as the second argument in the operation, set
“Argument 2 Source”
to
‘Constant Function Block’,
and
“Argument 2 Number”
to the desired
sub-index. When defining the constant, make sure it uses the same resolution (decimal digits) as
the Argument 1 input.
Argument 1 is evaluated against Argument 2 based on the
“Operator”
selected in sub-index 5 of
the condition object. The options for the operator are listed in Table 27, and the default value is
always
‘Equal’
for all condition objects.
Value Meaning
0
=, Equal
1
!=, Not Equal
2
>, Greater Than
3
>=, Greater Than or Equal
4
<, Less Than
5
<=, Less Than or Equal
Table 27
– LB(3-x) Condition Operator Options
By default, both arguments are set to
‘Control Source Not Used’
which disables the condition, and
automatically results in a value of N/A as the result. Although is generally considered that each
condition will be evaluated as either TRUE or FALSE, the reality is that there could be four possible
results, as described in Table 28.
Value Meaning
Reason
0
False
(Argument 1) Operator (Argument 2) = False