BX debugging function
These functions can be used for measuring command execution times in a PLC project. The unit is a tick. One tick corresponds to 5.12 µs.
Start Debug Timer function
![BX debugging function 1:](Images/gif/3207638411__Web.gif)
Calling this function starts the timer. The return value is "0".
Read Debug Timer function
![BX debugging function 2:](Images/gif/3207640843__Web.gif)
This function reads the timer value. The return value has to be multiplied with 5.12 µs.
Example
VAR
Timer_BX :WORD;
i :INT;
END_VAR
Program
F_STARTDEBUGTIMER();
For i:=0 to 1000 do
;
END_FOR
Timer_BX:=F_READDEBUGTIMER();