Add a digital state set using piconfig
- Last UpdatedJan 13, 2023
- 1 minute read
- PI System
- PI Server
To add a digital state set to the digital state table, use piconfig as shown in this example:
-
Select the digital state table.
(Ls - PIDS) piconfig> @table pids
-
Prepare to write to the table.
(Ls - PIDS) piconfig> @mode create
-
Specify an input data format of a digital state set name followed by any number of states in the set. Follow this with a data line.
(Cr - PIDS) piconfig> @istructure set, state, ...
(Cr - PIDS) piconfig> ValveStateSet, Open, Closed -
List the new state set in order to verify that it was properly created. Select only those sets that start with “V.” Use an endsection command to force processing:
(Cr - PIDS) piconfig> @mode list
(Ls - PIDS) piconfig> @ostructure set, state, ...
(Ls - PIDS) piconfig> @select set=V*
(Ls - PIDS) piconfig> @endsection
VALVESTATESET,Open,Closed
(Ls - PIDS) piconfig>Note: The endsection command is not needed when creating the state set because data lines are processed as they are entered.