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

Page 123

Advertising
background image

9

FactoryTalk Historian DataLink Function Reference

115

Argument

Value

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 10 compressed data points and corresponding time
stamps for the tag cdf144 starting from 1:00 a.m. this morning from the
default FactoryTalk Historian server with inside as boundary type:

=PINCompDat("cdf144","1:00",10,1,,"inside")

PINCompFilDat()

Retrieves a number of filtered FactoryTalk Historian point values
corresponding to a specified start time, using the following syntax:

PINCompFilDat(tagname, stime, numvals, filtexp, filtcode,
outcode, PIServer, mode)

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 retrieved values (in FactoryTalk
Historian time format).

numvals (integer)

The number of desired values (negative if counting backward in time).

filtexp (string)

A filter expression used to filter out results.

filtcode (integer)

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

Advertising