Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Manual Logger

PreviousTime

  • Last UpdatedNov 22, 2022
  • 1 minute read

Syntax

PreviousTime(TagName)

Arguments

Argument

Data Type

Description

TagName

String

The name of any PI tag in the current tour. The tag must be surrounded by double or single quotes.

Returns

Returns the timestamp of the last collected value from previous tours for the TagName argument (for the timestamp of the tag in the current tour, use the CurrentTime function). The tag must be part of the current tour. If the last timestamp cannot be determined, Unknown is returned.

Examples

PreviousTime("TI001.ML")

This example returns the timestamp for the latest previous value of the tag named TI1001.ML. If the timestamp for the previous value cannot be found for the tag, Unknown is returned.

TitleResults for “How to create a CRG?”Also Available in