Pipropertytovalue() – Rockwell Automation FactoryTalk Historian SE DataLink 4.2 User Guide User Manual

Page 153

Advertising
background image

9

FactoryTalk Historian DataLink Function Reference

145

PIPropertyToValue()

Retrieves the value of a specified FactoryTalk Historian point property,
using the following syntax:

PIPropertyToValue(property, modulepath, querydate, PIServer,
outcode)

Arguments

Argument

Explanation

Property (string)

The module database property corresponding to the desired
FactoryTalk Historian point.

modulepath (string)

The full module path to the property.

querydate (integer)

A date limit such that only properties created at or after the date are
returned.

PIServer (string)

The target FactoryTalk Historian server.

Outcode (integer)

An ouput code, either 0, 1, or 2.

Returns

An output code (page 104) of 0 displays the value of the property in a
column.

An output code of 2 displays the value of the property in a row.

Example:

The following returns the value corresponding to the Implementer property
of module Reactor1 which is a submodule of Unit1. Unit1 is at the root of
the module database for a FactoryTalk Historian server named thevax.
The module database is queried at current time.

=PIPropertyToValue("Implementer","\Unit1\Reactor1","*","theva
x")

Advertising