Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

Pulling digital state number rather than actual state in DataLink

$
0
0

We are using PI Datalink (Excel) to pull some information from a digital state tag. 

Today we were asked to do something unique; pull the state number rather than the actual digital state condition.

 

Example of Digital States:

 

0 = Stopped

1 = Running

2 = Waiting

 

Question: Is there a way to change the equation to return the state numbers (0,1,or 2), rather than the state condition (Stopped, Running, or Waiting)?

 

Example:

=PIArcVal("0395.VP.CASEPACKER.STATUS","2/20/2014  7:00:00 AM",0,,"auto")

 

Thanks,

Brian

 

 


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>