Pitimefilter() – Rockwell Automation FactoryTalk Historian SE DataLink 4.2 User Guide User Manual
Page 147

9
●
FactoryTalk Historian DataLink Function Reference
●
●
●
●
●
139
sampled at the combined compressed events of cdf144 and cdt158.
The minpctgood is 50 percent so result will only be displayed if
percent good is 50 percent or greater. The percent good is returned next to
the total.
PITimeFilter()
Returns the amount of time over specified intervals for which a
FactoryTalk Historian point expression evaluates as true, using the
following syntax:
PITimeFilter(expression, stime, etime, interval, timeunit,
outcode, PIServer)
Arguments
Argument
Explanation
expression (string)
A FactoryTalk Historian calculation expression.
stime (string)
The start time for the range of calculation (in FactoryTalk Historian
time format).
etime (string)
The end time (in FactoryTalk Historian time format).
interval (string)
The interval between evaluations (in FactoryTalk Historian time
format).
timeunit (string)
Time unit of the calculated result (in FactoryTalk Historian time
format).
outcode (integer)
An ouput code, either 0, 1, 2, 4, 5, 6, or 7, and not 3.
PIServer (string)
The target FactoryTalk Historian server.
Returns
Outcode
Column 1
Column 2
0
Calculated data
1
Time stamps
Calculated data