LEXICON Command
Reference Manual
User Defined Attributes
:
UDAs in User Elements
: Set and Change UDAs in User Elements
Set and Change UDAs in User Elements
A UDA instance is set using the syntax
:Udname setting
where
setting
could be an integer, a value, text, and so on, depending on the UDA type. An example of (re)setting the CAP attribute above could be:
:CAP 101 - reset CAP value to 101
Array attributes may be set or changed as shown by the following examples. Changes are shown relative to the original setting.
Example:
:ARR1 1 2 3 4 5
Set to 1 2 3 4 5
:ARR1 NUM 4 44
Change 4th value to ‘44’, that is, change to 1 2 3 44 5
:ARR1 NUM 5 55 66
Change ‘5' to ‘55 66' (that is, change to 1 2 3 4 55 66)
No more values can be specified than are given by the UDA length (ULEN attribute). If more values are entered, the excess ones are ignored and an error message is output.
An attribute may be returned to its default state by a command such as:
:ARR2 DEF
If no default exists, the UDA becomes unset. This always applies to REFERENCE, POS, ORI and DIR UDA types since no defaults are allowed. REFERENCE UDAs may only reference elements of the type given in the UDA definition.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.