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:
- Save the file to your computer.
- In the RMCTools project pane, expand Programming, right-click User Functions, and choose Import User Functions.
- Browse to the file and click OK.
- Create a user program.
- 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)