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