Set reason attribute traits
- Last UpdatedJan 11, 2023
- 3 minute read
- PI System
- PI Server 2018
- PI Server
You can only set one reason attribute trait per event frame or transfer.
Use reason attribute traits on event frames and transfers to enable users to select a reason code for excursions, downtime, and other events.
-
To designate an attribute as a reason attribute trait for an event frame or transfer, choose from the following actions:
To set a reason attribute trait for ...
Do this ...
Event frame template
-
In the Library browser, select an event frame template.
-
Choose one of the following actions:
-
Right-click and click Reason.
-
On the General tab, click the Reason link.
-
Transfer template
-
In the Library browser, select a transfer template.
-
Choose one of the following actions:
-
Right-click and click Reason.
-
On the General tab, click the Reason link.
-
Event frame
-
In the Event Frames browser, select an event frame.
-
Choose one of the following actions:
-
Right-click and click Reason.
-
On the General tab, click the Reason link.
-
Transfer
-
In the Event Frames browser, select a transfer.
-
Choose one of the following actions:
-
Right-click and click Reason.
-
On the General tab, click the Reason link.
-
Attribute template for an event frame template
-
In the Library browser, select an event frame template.
-
Click the Attribute Templates tab.
-
Choose one of the following actions:
-
Right-click an existing attribute template and click Reason for Event Frame Template.
-
Click New Attribute Template, right-click and click Reason for Event Frame Template.
-
Attribute template for a transfer template
-
In the Library browser, select a transfer template.
-
Click the Attribute Templates tab.
-
Choose one of the following actions:
-
Right-click an existing attribute template and click Reason for Transfer Template.
-
Click New Attribute Template, right-click and click Reason for Transfer Template.
-
Event frame or transfer attribute
If the Allow Extensions check box has been selected for an event frame or a transfer template, and no attribute template has previously been designated as a reason attribute trait, you can either create a new attribute and establish it as the reason attribute trait, or choose an existing attribute.
-
In the Event Frames or Transfer browser, select an event frame or transfer.
-
Click the Attributes tab.
-
Choose one of the following actions:
-
Right-click an existing attribute and click Reason for Event Frame or Reason for Transfer.
-
Right-click below the attribute table and click Reason for Event Frame or Reason for Transfer.
-
-
-
In the Reason window, select the check box beside the Reason trait you want to apply.
-
In Attribute, choose one of the following actions:
-
Leave the default attribute name as Reason.
-
If an attribute already exists that you want to designate as the reason trait, select it from the list.
Note: Reason traits that have already been defined are displayed in bold typeface.
-
-
Choose from the following actions:
To set a ...
Do this ...
Default value for the reason trait
-
In Value Type, select Enumeration Value > Enumeration Sets and select an enumeration set to use for the reason trait. The default is the built-in System enumeration set.
-
In Default Value, select the default reason trait value from the selected enumeration set.
Default value from a data reference
Note: The data reference must be to a digital states tag.
-
In Data Reference, select a data reference type.
-
In Settings, click
to configure the data reference.
-
Click OK to close the data reference window.
The result of the evaluated data reference is displayed.
-
-
Click OK when the assignment of a default reason trait for the selected event frame or transfer is complete.