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
xEnable
BOOL
TRUE
: Action startsFALSE
: Action stops, outputsxDone
,xBusy
,xError
are resettedLTrig
Output
xDone
BOOL
TRUE
: Action successfully completedLTrig
xBusy
BOOL
TRUE
: Function block activeLTrig
xError
BOOL
TRUE
: Error occurred, function block aborts actionFALSE
: No errorLTrig
Input
itfParameterGroup
IReceiveParameterGroup
parameter group to be monitored
tTimeout
TIME
monitoring time: t#0ms = infinite timeout (no timeout monitoring)
Output
eError
detailed error information if
xError
isTRUE
.xReceived
BOOL
TRUE
: parameter group was received in previous cycle.