Multiple value functions, Pincompdat() – Rockwell Automation FactoryTalk Historian SE DataLink 4.2 User Guide User Manual
Page 122

●
●
●
●
●
FactoryTalk Historian DataLink User Guide
114
Returns
Outcode
Archive Value
Time stamp
0
output cell
1
left column
output cell
2
output cell
row above
Example:
The following calculates the square root of the value of the tag sinusoid
from the FactoryTalk Historian server thevax at midnight yesterday:
=PIExpVal("sqr('sinusoid')","y",0,"thevax")
Multiple Value Functions
Multiple value functions associate a FactoryTalk Historian point with a
range of time over which there can be one or many corresponding values at
different points in time.
PINCompDat()
Retrieves a number of FactoryTalk Historian point values corresponding to
a specified start time, using the following syntax:
PINCompDat(tagname, stime, numvals, 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).