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:
- 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 functions will appear on the Functions tab of the Expression Editor.
TimeFunctions.rmcflib (6.5 KB)