rchHeartBeat (Function) |
Top Previous Next |
Calling this function will enable the heartbeat functionality supported by the RTCU Communication Hub. UDP/IP heartbeat packages will be sent to the RTCU Communication Hub in accordance with the parameters specified when calling this function. Please refer to the RTCU Communication Hub for more information.
The 'freq' is how often the Heartbeat should be sent. The 'timeout' is the maximum time without a heartbeat received by the RTCU Communication Hub until the device is considered offline.
Input: timeout : UINT (default 0) Timeout in seconds. Specifying a value of 0 will use a value that is two-times the self-transaction frequency. The frequency of the heartbeat in seconds. Specifying 0 will disable the heartbeat.
Returns:INT
Declaration: FUNCTION rchHeartBeat; freq : USINT := 0; END_VAR;
Example: INCLUDE rtcu.inc BEGIN |