System Time Functions

System time in the RMC200 is stored as two DINT values, one representing seconds, and the other nanoseconds. This time format is also used by the Event Timer feature.

The attached user functions can be used to capture system time, calculated elapsed time since an initial time was captured, calculate the time duration between two stored times, and convert times to seconds or milliseconds.
To use these functions:

  1. Save the file to your computer.
  2. In the RMCTools project pane, expand Programming, right-click User Functions, and choose Import User Functions.
  3. Browse to the file and click OK.
  4. Create a user program.
  5. In a step in the user program, add the Expression (113) command. When editing the expression, the functions will appear on the Functions tab of the Expression Editor.

TimeFunctions.rmcflib (6.5 KB)