Rockwell Automation FactoryTalk Historian SE DataLink 4.2 User Guide User Manual

Page 143

Advertising
background image

9

FactoryTalk Historian DataLink Function Reference

135

Arguments

Argument

Explanation

tagname (string)

The tag name or names matching the desired FactoryTalk Historian
points for calculation.

stime (string)

The start time for the range of calculation (in FactoryTalk Historian
time format).

etime (string)

The end time (in FactoryTalk Historian time format).

interval (string)

The interval between calculated values (in FactoryTalk Historian time
format).

filtexp (string)

The filter expression used to filter results.

mode (string)

The type of calculation to be used to compute point values.

calcbasis (string)

The weighting method used to calculate values.

sampmode (string)

The sampling method used for calculation expressions.

sampfreq (string)

The frequency used for interpolated sampling.

minpctgood (number) The minimum percentage of good data required to calculate and

return a value.

cfactor (number)

The time unit of flow for the source tag, required for Total
calculations.

outcode (integer)

An ouput code, 0-7.

PIServer (string)

The target FactoryTalk Historian server.

Returns

See specific information for PICalcDat() outcodes (page 132).

Example:

The following retrieves totals for the tag cdf144, from midnight
yesterday to midnight today at 3-hour intervals during the time periods
when tag cdf144 is in Manual from the default FactoryTalk Historian
server:

Advertising