beautypg.com

Pisampdat() – Rockwell Automation FactoryTalk Historian SE DataLink 4.2 User Guide User Manual

Page 126

background image

FactoryTalk Historian DataLink User Guide

118

Argument

Value

filtcode (integer)

A filter code, either 1 to return Filtered status or 0 to skip.

outcode (integer)

An output code.

PIServer (string)

The target FactoryTalk Historian server.

mode (string)

The method of handling values at boundaries of the time range.

Returns

Results display is determined by an output code (page 104) value.

Example:

The following retrieves compressed data points and the corresponding
times, starting from 2:00 a.m. and ending at 10:00 a.m., for the tag
cdf144 when the tag cdep158 is greater than 38:

=PICompFilDat("cdf144","2:00","10:00","'cdep158'>38",1,1,,)

The status Filtered is displayed for times when the filter condition is false.
Data are retrieved from the default FactoryTalk Historian server with
inside as boundary type.

PISampDat()

Retrieves sampled FactoryTalk Historian point values corresponding to a
specified time range, using the following syntax:

PISampDat(tagname, stime, etime, interval, outcode, PIServer)

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).