Pitagatt(), Tag attribute value – Rockwell Automation FactoryTalk Historian SE DataLink 4.2 User Guide User Manual
Page 151

9
●
FactoryTalk Historian DataLink Function Reference
●
●
●
●
●
143
An output code (page 104) of 2 transposes the output array that results
from an output code of 1.
Example:
The following returns the tag name of the tags which start with "sin"
from server named thevax.
=PIAttributeMaskToTag("sin*","*","*","*","*","*",0,"thevax")
PITagAtt()
Retrieves the value of a tag attribute based on a tag name, using the
following syntax:
PITagAtt(tagname, attribute, PIServer)
Arguments
Argument
Explanation
tagname (string)
The tag name or names matching the desired attributes.
attribute (string)
The desired FactoryTalk Historian point attribute.
PIServer (string)
The target FactoryTalk Historian server.
Returns
Tag attribute value
Example:
The following retrieves from the default FactoryTalk Historian server the
engineering units for the tag located in cell D1:
=PITagAtt(d1,"units",)