Time stamp calculations


The Event Timer feature in the RMC200 requires calculating the difference between time stamp values. Each time stamp is stored in two registers. One register holds the number of whole seconds, and the other register holds the number of nanoseconds.

The attached TIMESTAMP_DIFF user function can be used in a user program to calculate time stamp differences. To use this function:

  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 TIMESTAMP_DIFF function will appear on the Functions tab of the Expression Editor.

EventTimerFunctions.rmcflib (2.15 KB)