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

Data Archive Reference

Create a digital tag

  • Last UpdatedJan 13, 2023
  • 1 minute read

A digital tag is defined by specifying point type Digital in the PI point database.

The default digital state set is System. To specify a different state set, enter the digital state set name in the tag's DigitalSet attribute in the PI point database.

In this example, the tag name, the point type, and the digital state set are explicitly defined, while all the other point attributes use the defaults.

  1. Select the PI point database table:

    (Ls - ) piconfig> @table pipoint

  2. Prepare it for writing:

    (Ls - PIPOINT) piconfig> @mode create

  3. Specify the input data format:

    (Cr - PIPOINT) piconfig> @istructure tag, pointtype, digitalset
    *> istructure tag, pointtype, digitalset

  4. Specify the data:

    (Cr - PIPOINT) piconfig> ValveStateTag, Digital, ValveStateSet
    *> ValveStateTag, Digital, ValveStateSet

  5. List the new tag entry in order to verify that it was properly created:

    (Cr - PIPOINT) piconfig> @mode list
    (Ls - PIPOINT) piconfig> @ostructure tag, pointtype, digitalset

  6. Select only those tags that start with “V”:

    (Ls - PIPOINT) piconfig> @select tag=V*

  7. Force processing:

    (Ls - PIPOINT) piconfig> @endsection
    ValveStateTag, Digital, ValveStateSet

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