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

AVEVA™ Plant SCADA

SysTime

  • Last UpdatedFeb 02, 2024
  • 1 minute read

Gets the Plant SCADA internal system millisecond counter. The counter is not based on time, but counts from 0 up to the maximum unsigned integer value and then back to 0.

As Cicode integer handling is signed, values above 24 days will appear negative. For users needing the full 49 day range, please use the Timestamp Functions.

Note: The delta time between two timestamps will be correct and positive provided the difference between the two is less than 49 days. If the gap exceeds this, the timestamp functions should be used.

You can use this function to time events down to the millisecond level, either by subtracting the current SysTime from the SysTime at the start of the event, or by using the SysTimeDelta() function (which will give the same result).

The SysTime() function does not return the time of day. Use the Time() or TimeCurrent() function to obtain the time of day.

Note: Time/Date functions can only be used with dates between 1980 and 2035. You should check that the date you are using is valid with Cicode similar to the following:
IF StrToDate(Arg1)>0 THEN
...
ELSE
...
END

Syntax

SysTime()

Return Value

The Plant SCADA internal system millisecond counter (as an integer).

SysTimeDelta, Time, TimeCurrent

Example

Start=SysTime();

! Gets the current time.

...

Delay=SysTime()-Start;

! Sets Delay to the time difference, in milliseconds.

See Also

Time and Date Functions

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