Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Manual Logger

Rename or delete a tag in an existing tour configuration

Rename or delete a tag in an existing tour configuration

  • Last UpdatedNov 22, 2022
  • 2 minute read

If a tag has been renamed in PI Data Archive and if you are running PI Manual Logger 2010 R2 or greater, you typically update tag attributes by selecting

in PIML > PI Tags and Digital States. Alternatively, you can rename a tag in an existing tour configuration by exporting the tour configuration.

  1. Export the tour configuration and open it in an XML editor.

  2. Locate the <PITag> element for the tag to rename.

  3. Copy the <PITag> element and paste before or after the <PITag> element copied.

  4. Replace the tag name entry, <Tag>, in one of the <PITag> elements keeping the Operation set to CreateOrUpdate and make any additional changes to the tag's configuration that are needed.

  5. In the other <PITag> element, change the Operation to Delete and remove all other entries except the <TourName>. See the excerpts below for an example.

  6. Save the XML file and import it back into PI Manual Logger. The existing tour configuration is backed up prior to the changes, in case a mistake is made. The Import Log states where the backup file is located.

  7. You may need to update PI tags, attributes, and cached values by selecting and in PIML > PI Tags and Digital States.

The following is an example that illustrates the above steps, using an excerpt of an XML tour configuration. The tag Train1Car1.Bearing2.Oil.Filter.Action needs to be renamed to Train1Car1.Bearing1.Oil.Filter.Action to keep its tag configuration.

  • Before:

    <PITag SelectX="x" Operation="CreateOrUpdate">
    <Sequence>9</Sequence>
    <Tag>Train1Car1.Bearing2.Oil.Filter.Action</Tag>
    <GroupName>Car #1/Oil Filter</GroupName>
    <TourName>Train #1</TourName>
    <TagScanCode>Train1Car1.Bearing2.Oil.Filter.Action</TagScanCode>
    </PITag>

  • After:

    <PITag SelectX="x" Operation="CreateOrUpdate">
    <Sequence>9</Sequence>
    <Tag>Train1Car1.Bearing1.Oil.Filter.Action</Tag>
    <GroupName>Car #1/Oil Filter</GroupName>
    <TourName>Train #1</TourName>
    <TagScanCode>Train1Car1.Bearing1.Oil.Filter.Action</TagScanCode>
    </PITag>
    <PITag SelectX="x" Operation="Delete">
    <Tag>Train1Car1.Bearing2.Oil.Filter.Action</Tag>
    <TourName>Train #1</TourName></PITag>

TitleResults for “How to create a CRG?”Also Available in