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

Page 121

Advertising
background image

9

FactoryTalk Historian DataLink Function Reference

113

Argument

Value

outcode (integer)

An output code to determine results placement, either 0, 1, or 2.

PIServer (string)

The target FactoryTalk Historian server.

mode (string)

The mode used to determine which values are retrieved.

Returns

Outcode

Archive Value

Time stamp

0

output cell

1

left column

output cell

2

output cell

row above

Example:

The following retrieves the interpolated value for the tag cdep158 at
7:20pm on December 11, 1992 from the FactoryTalk Historian server
casaba:

=PIArcVal("cdep158","11-dec-92 19:20",0,
"casaba","interpolated")

PIExpVal()

Retrieves an archived FactoryTalk Historian point value based on an
expression, using the following syntax:

PIExpVal(expression, timestamp, PIServer)

Arguments

Argument

Value

expression (string)

A FactoryTalk Historian calculation expression.

time stamp (string)

The time stamp corresponding to the archive value.

PIServer (string)

The target FactoryTalk Historian server.

Advertising