Create a User System Defined Attribute
- Last UpdatedDec 20, 2021
- 1 minute read
The following example will restrict the FUNC attribute on EQUIPMENT to be 'HeatX' or 'Pump', create a USDA as follows:
|
Example: |
|---|
|
NEW UWRL /USDAWR |
|
NEW UGRO /USDAGR |
|
NEW USDA /UFUNC |
|
DESC 'Set restriction on FUNC attribute on EQUI' |
|
USYSTY FUNC |
|
ELELIST ADD EQUI |
|
NEW UVALID |
|
UVVAL 'PUMP' |
|
NEW UVALID |
|
UVVAL 'HEATX' |
To apply limits to a USDA the procedure is the same as UDAs. The following example will apply limits to the POSSTART attribute on a STANCHION:
|
Example: |
|---|
|
NEW USDA /LIMITSTAN |
|
DESC ‘Set limits on POSSTART attribute on SCTN’ |
|
USYSTY POSSTART |
|
ELYLIST ADD SCTN |
|
NEW ULIMIT |
|
UMIN 1000 |
|
UMAX 6000 |