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

AVEVA™ Plant SCADA

GetCPTimeStamp()

  • Last UpdatedJul 13, 2023
  • 1 minute read

Returns the time stamp of a custom property. This function is available within any Industrial Graphics client script.

Syntax

DateTime GetCPTimeStamp(String name)

Where String name is the name of the custom property whose time stamp is to be retrieved.

This script function takes the name of a custom property on the symbol. This argument is of type string and it can be a reference or a constant.

Note: For use with custom properties only. It does not apply to HMI tags.

Return Value

The GetCPTimeStamp() script function returns the time stamp of the custom property’s current value of type DateTime. If the custom property value is a constant, then the return value is the time the value was created.

Example

cp2 = GetCPTimeStamp("cp1");

Where cp1 and cp2 are custom properties and the data type of cp2 is DateTime.

Graphic Client Functions

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