User Manual UMAX030541. Version V1 25-116
1.5.1 Conditions Evaluation
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 13.
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 6, Y = A, B or C, and Z = 1 to 3
Table 13
– LB(x-3) 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 5. 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 14, 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 14
– LB(x-3) Condition Operator Options