ReceiveWatchdog (FB)ΒΆ
FUNCTION_BLOCK ReceiveWatchdog EXTENDS CBM.LTrig
This function block monitors the reception of a specific parameter group (itfParameterGroup).
xError becomes TRUE if there is no reception after tTimeout else function block stays in busy state.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xEnableBOOLTRUE: Action startsFALSE: Action stops, outputsxDone,xBusy,xErrorare resettedLTrig
Output
xDoneBOOLTRUE: Action successfully completedLTrig
xBusyBOOLTRUE: Function block activeLTrig
xErrorBOOLTRUE: Error occurred, function block aborts actionFALSE: No errorLTrig
Input
itfParameterGroupIReceiveParameterGroupparameter group to be monitored
tTimeoutTIMEmonitoring time: t#0ms = infinite timeout (no timeout monitoring)
Output
eErrordetailed error information if
xErrorisTRUE.xReceivedBOOLTRUE: parameter group was received in previous cycle.