|
clockStart (Function) |
|
This function can be used to install callback functions that are called periodically.
Input: no : INT (0 .. 9) The index of the timer to configure.
freq : INT The interval between each call of the callback function in seconds. Use 0 to disable the timer.
func : CALLBACK The callback function to call.
arg : DINT A user defined argument that will be passed on to the callback function.
Returns:
Declaration: FUNCTION clockStart : INT;
Callback declaration: FUNCTION CALLBACK clockStartCallback;
Example: INCLUDE rtcu.inc |