Create a digital tag
- Last UpdatedJan 13, 2023
- 1 minute read
- PI System
- PI Server
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.
-
Select the PI point database table:
(Ls - ) piconfig> @table pipoint
-
Prepare it for writing:
(Ls - PIPOINT) piconfig> @mode create
-
Specify the input data format:
(Cr - PIPOINT) piconfig> @istructure tag, pointtype, digitalset
*> istructure tag, pointtype, digitalset -
Specify the data:
(Cr - PIPOINT) piconfig> ValveStateTag, Digital, ValveStateSet
*> ValveStateTag, Digital, ValveStateSet -
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 -
Select only those tags that start with “”:
(Ls - PIPOINT) piconfig> @select tag=V*
-
Force processing:
(Ls - PIPOINT) piconfig> @endsection
ValveStateTag, Digital, ValveStateSet