Skip to main content

PI Tag Data and Calculation

Using the PI Tags we set up in the PI Tag Creation \topic, “RunHours” and “ND_RunHours” have the following data:

PI Tag Data – RunHours and ND_RunHours

RunHoursND_RunHoursTime
ValueState NumberState Name
11Run
00Stop
11Run
00Stop
11Run

Values in PI Tags are “Run” and “Stop”, which are the Digital State Names. The corresponding State Numbers are “1” and “0”.

In the table, PI Tag – Number of Hours in each State, we can see the number of hours that the instrument was in a specific state.

PI Tag – Hours in Each State

Event Start TimeEvent End TimeRun or 1Stop or 0
01/01/2017 12:00:00 AM01/01/2017 10:02:03 AM10 h 2 min 3 s0 h 0 min 0 s
01/01/2017 10:02:03 AM01/02/2017 12:00:00 AM0 h 0 min 0 s13 h 57 min 57 s
01/02/2017 12:00:00 AM01/03/2017 12:00:00 AM0 h 0 min 0 s24 h 0 min 0 s
01/03/2017 12:00:00 AM01/04/2017 12:00:00 AM24 h 0 min 0 s0 h 0 min 0 s
01/04/2017 12:00:00 AM01/05/2017 12:00:00 AM0 h 0 min 0 s24 h 0 min 0 s
01/05/2017 12:00:00 AM01/06/2017 12:00:00 AM24 h 0 min 0 s0 h 0 min 0 s