Read Actual Runtime

This function block is used to perform a runtime measurement within an application. It will determine the elapsed time since the starting function block or the previous measurement function block respectively. That means this function block has to be placed behind a starting block in the working sequence.

The input Freeze is used to halt the measurement. The value at the output D2First shows the elapsed time since the starting block and the output D2Bev shows the elapsed time since the previous measurement function block. These values show the run time in nanoseconds (ns). The output Err will show an error number.

Signals

Name I/O Type(s) Function
Freeze I BIT Halt measurement
D2First O LONG Elapsed run time since stating block in [ns]
D2Bev O LONG Elapsed run time since previous measurement block in [ns]
Err O WORD Error indicator

Comments

Error number Result
0 No error
-2 Maximum number of surveillance points is exceeded.
-3 The measuring point is invalid.
-4 No starting point found.
-110 Access failure by the driver.