Rockwell Automation FactoryTalk Historian SE DataLink 4.2 User Guide User Manual
Page 128

●
●
●
●
●
FactoryTalk Historian DataLink User Guide
120
Arguments
Argument
Value
tagname(string)
The tag name or names matching the desired FactoryTalk Historian
points.
stime (string)
The start time for the range of sampling (in FactoryTalk Historian time
format).
etime (string)
The end time in FactoryTalk Historian time format.
interval (string)
The interval between sampled values (in FactoryTalk Historian time
format).
filtexp (string)
The filter expression used to filter results.
filtcode (integer)
A filter code, either 1 to return Filtered status or 0 to skip.
outcode (integer)
An output code, either 0, 1, 2, or 3.
PIServer (string)
The target FactoryTalk Historian server.
Returns
Outcode
Sampled Value
Time stamp
0
output cell
none
1
right column
output cell
2
output cell
none
3
row below
output cell
An output code (page 104) of 2 transposes the output array that results
from an output code of 0 and an output code of 3 transposes the output
array that results from an output code of 1.
Example:
The following formula retrieves sampled data for sinusoid at 11-Jan-
97, 11-Jan-97 1:00AM, 11-Jan-97 2:00AM, and 11-Jan-97 3:00AM:
=PISampFilDat("sinusoid","11-Jan-97","+3h","1h",A1,1,1,)