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

Page 124

Advertising
background image

FactoryTalk Historian DataLink User Guide

116

Argument

Value

outcode (integer)

An output code.

PIServer (string)

The 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 the corresponding
times, starting at 2:00 a.m., for the tag cdf144 while the tag cdep158
is greater than 38:

=PINCompFilDat("cdf144","2:00",10,"'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.

PICompDat()

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

PICompDat(tagname, stime, etime, 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).

etime (string)

The end time for the range (in FactoryTalk Historian time format).

Advertising