Y_YA_CommWatchdog
This function block allows the application program to monitor data being transmitted from a master device. If the data does not change within two times the Watchdog period, the OK output goes FALSE to indicate that the heartbeat is not being updated by the master.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_INPUT | ||||
| B | Enable | BOOL | The function block will continue to execute every scan while Enable is TRUE and there are no errors. | FALSE |
| V | HeartBeat | DINT | Value that the master changes and sends to the MPiec controller. | DINT#0 |
| V | WatchDog | TIME | The HeartBeat input is checked at the frequency specified by the WatchDog input. Enter the value in ms. | TIME#0ms |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | The Valid output indicates that the function block is operating normally and the outputs of the function block are valid. | |
| E | OK | BOOL | Indicates if the HeartBeat input has changed in two cycles of the WatchDog period. |
|
| B | Error | BOOL | The Error output is set to TRUE if an error has occurred during the operation of the function block. The output is cleared when the Execute or Enable input becomes FALSE. | |
| B | ErrorID | UINT | The ErrorID output provides the identifier of the error when there is an active error in the function block execution. The output is cleared when the Execute or Enable input becomes FALSE. | |
Notes
- The Valid Output will be high when the function is executing. If the WatchDog value is not greater than zero, the function will not operate.
- Watchdog cannot be greater than 2,000,000,000 ms
Error Description
See the
Function Block ErrorID List