boardTimeSinceReset (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

3.10 / 1.00.00


boardTimeSinceReset will return the number of milliseconds since the RTCU device was reset.

 

Please note that the value will wrap around, going negative after approximately 25 days.

 

Input:

None

         

Returns:

The time since RTCU device was reset in milliseconds.

 

Declaration:

FUNCTION boardTimeSinceReset : DINT;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  a : DINT;
END_VAR;
 
BEGIN
  ...
  // Get time since the RTCU device was reset
  a := boardTimeSinceReset();
  ...
END;
 
END_PROGRAM;