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

AVEVA™ Plant SCADA

SubscriptionGetTimestamp

  • Last UpdatedJul 18, 2023
  • 1 minute read

Reads the specified timestamp of a subscribed tag.

Syntax

SubscriptionGetTimestamp(iHandle, sAttribute )

iHandle

Integer handle of the subscription to read from.

sAttribute

Attribute of the tag to read. Supported Attributes are:

Timestamp - The timestamp when the tag last changed. It is default value used when this argument is not specified.

QualityTimestamp - The timestamp when quality of the tag last changed.

ValueTimestamp - The timestamp when value of the tag last changed.

Return Value

The requested timestamp for a subscribed tag. On error, 0 (INVALID TIMESTAMP).

SubscriptionGetInfo, SubscriptionGetQuality, SubscriptionGetValue, SubscriptionGetTag

Example

TIMESTAMP theTime = SubscriptionGetTimestamp(hSub, "ValueTimestamp");

TIMESTAMP theTime = SubscriptionGetTimestamp(hSub);

See Also

Tag Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in