Tag functions, Pipointidtotag() – Rockwell Automation FactoryTalk Historian SE DataLink 4.2 User Guide User Manual

Page 149

Advertising
background image

9

FactoryTalk Historian DataLink Function Reference

141

Returns

If the output code (page 104) is 0, 1, or 2 only the calculated value is
returned.

Outcode of 3 is not used.

If the outcode is 4 or 5, the percent good is returned to the right of the
value cell.

If the outcode is 6 or 7, the percent good is returned below the value
cell.

Example:

The following calculates the amount of time that the expression from cell
$A$1 is true from the FactoryTalk Historian server named thevax, starting
from midnight yesterday to midnight today:

=PITimeFilterVal($A$1,"y","t","seconds",1,"thevax")

The calculation result is expressed in seconds.

Tag Functions

PIPointIDToTag()

Retrieves a tag name corresponding to a FactoryTalk Historian point ID,
using the following syntax:

PIPointIDToTag(pointid, PIServer)

Arguments

Argument

Explanation

pointid (string)

A FactoryTalk Historian point ID, which is a unique internal ID not

reused upon deletion of a point.

PIServer (string)

The target FactoryTalk Historian server.

Advertising