Piarcval() – Rockwell Automation FactoryTalk Historian SE DataLink 4.2 User Guide User Manual
Page 120

●
●
●
●
●
FactoryTalk Historian DataLink User Guide
112
Arguments
Argument
Value
tagname (string)
The tag name or names matching the desired FactoryTalk Historian
points.
outcode (integer)
An output code to determine results placement, either 0, 1, or 2.
PIServer (string)
The target FactoryTalk Historian server.
Returns
Outcode
Value
Time stamp
0
output cell
none
1
right column
output cell
2
output cell
row above
Example:
The following retrieves the current value and corresponding time stamp for
the tag let439 from the FactoryTalk Historian server holden and
places the time stamp in the column to the left of the value:
=PICurrVal("let439",1,"holden")
PIArcVal()
Retrieves archived FactoryTalk Historian point values corresponding to
specified times, using the following syntax:
PIArcVal(tagname, timestamp, outcode, PIServer, mode)
Arguments
Argument
Value
tagname (string)
The tag name or names matching the desired FactoryTalk Historian
points.
time stamp (string)
The time stamp corresponding to the archive value.