Group element
- Last UpdatedNov 22, 2022
- 2 minute read
- PI System
- PI Manual Logger 2017 R2
- Visualization
Root level elements are referenced by their name without any separators. Sub-groups are referenced with ‘\’ or ‘/’ as separators.
If referenced by a element, the element does not need to be defined and is created automatically. However, if additional configurations, such as Barcode (referenced as in the XSD file), Comment Tag, Collection Scheduling, Conditional Specifications, or Group Sequencing need to be defined, then a element should be created within the XML file.
At a minimum, the following attributes and fields must be defined for the element:
The following example illustrates how to create a group and reference it within a element.
<PITag SelectX="x" Operation="CreateOrUpdate">
<Sequence>1</Sequence>
<Tag>Pump P250 Vibrations</Tag>
<GroupName>North Site/Pump P250</GroupName>
<TourName>Pump and Vibrations</TourName>
</PITag>
<PITag SelectX="x" Operation="CreateOrUpdate">
<Sequence>2</Sequence>
<Tag>Pump P250 Temp</Tag>
<GroupName>North Site/Pump P250</GroupName>
<TourName>Pump and Vibrations</TourName>
<TagScanCode>12345</TagScanCode>
<OperatorInstructions>If the value is less than 120 degrees F, be sure and follow
the special procedures.</OperatorInstructions>
</PITag>
<PITag SelectX="x" Operation="CreateOrUpdate">
<Sequence>3</Sequence>
<Tag>Pump P250-I Vibrations</Tag>
<GroupName>North Site/Pump P250-I</GroupName>
<TourName>Pump and Vibrations</TourName>
</PITag>
<PITag SelectX="x" Operation="CreateOrUpdate">
<Sequence>4</Sequence>
<Tag>Pump P250-I Temp</Tag>
<GroupName>North Site/Pump P250-I</GroupName>
<TourName>Pump and Vibrations</TourName>
</PITag>
<Group SelectX="x" Operation="CreateOrUpdate">
<GroupName>North Site</GroupName>
<Sequence>1</Sequence>
<TourName>Pump and Vibrations</TourName>
<GroupScanCode>510010</GroupScanCode>
<GroupCMDE>if( CurrentValue("Pump P250 Temp") = DigCode("Unit Down"), Skip(),
CollectNow())</GroupCMDE>
</Group>
<Group SelectX="x" Operation="CreateOrUpdate">
<GroupName>North Site/Pump P250</GroupName>
<Sequence>2</Sequence>
<TourName>Pump and Vibrations</TourName>
</Group>
<Group SelectX="x" Operation="CreateOrUpdate">
<GroupName>North Site/Pump P250-I</GroupName>
<Sequence>3</Sequence>
<TourName>Pump and Vibrations</TourName>
In the example above, assuming the element is defined in the XML file as well, the following group hierarchy is created with associated tags.
Sample Group Hierarchy Created from Element
