LEXICON Command
Reference Manual
User Defined Attributes
:
Valid Values and Valid Ranges
: Limits
Limits
Valid values or ranges of values for real or integer UDAs can be defined by creating ULIMIT elements as members of a UDA. Multiple ULIMIT members can be created for a UDA.
The attributes of a ULIMIT element are:
UMIN - Minimum value
UMAX - Maximum value
The following example will create a Weight UDA and limit the input value to between 5kg and 50kg:
Example:
NEW UDA /WEIG UTYP REAL
UDNA 'WEIGHT'
ABLEN 6
UUNI Mass
RPTX 'Weight'
ELE ADD STRU SUBS EQUI
Create UDA Weight
NEW ULIMIT
Create a ULIMIT element beneath UDA
UMIN 5kg
Set a minimum value of 5kg
UMAX 50kg
Set a maximum value of 50kg
DESC ‘Weight Limit’
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.