Modify a digital state set
- Last UpdatedJan 13, 2023
- 1 minute read
- PI System
- PI Server
If you want to modify an existing digital state set by adding a state, deleting a state, or renaming a state, you must specify all of the states in the state set. Individual states cannot be edited.
Note: For sets with more than a few states it is advisable to use an output file, edit the file, and then use it as the input file. The state set must be added or edited as a whole.
This procedure shows how to add another state to the ValveStateSet.
-
Select the digital state table:
(Ls - PIDS) piconfig> @table pids
-
Prepare to write to the table:
(Ls - PIDS) piconfig> @mode edit
-
Specify an input data format that consists of a digital state set name followed by any number of states in the set:
(Ed - PIDS) piconfig> @istructure set, state, ...
-
Input data (with no commands):
(Ed - PIDS) piconfig> ValveStateSet, Open, Closed, Stuck
-
List the new state set in order to verify that it was properly created:
(Ed - PIDS) piconfig> @mode list
(Ls - PIDS) piconfig> @ostructure set, state, ... -
Select only those sets that start with “V”:
(Ls - PIDS) piconfig> @select set=V*
-
Start processing:
Ls - PIDS) piconfig> @endsection
VALVESTATESET,Open,Closed,Stuck
(Ls - PIDS) piconfig>