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

AVEVA™ Plant SCADA

SysTimeDelta

  • Last UpdatedJul 18, 2023
  • 1 minute read

Calculates the time difference between a start time and the current time, and updates the start time to the current time. You can time continuous events in a single operation. See the SysTime() function for information on its use.

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

SysTimeDelta(Start)

Start:

The start time returned from the SysTime() function. Must be a Long type variable.

Return Value

The time difference from a start time and the current time.

SysTime

Example

Start=SysTime();

! Gets the current time.

...

Delay1=SysTimeDelta(Start);

! Sets Delay1 to the time difference from Start.

...

Delay2=SysTimeDelta(Start);

! Sets Delay2 to the time difference from the last SysTimeDelta()
call.

See Also

Time and Date Functions

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