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 starts

FALSE: Action stops, outputs xDone, xBusy, xError are resetted

LTrig

Output

xDone

BOOL

TRUE: Action successfully completed

LTrig

xBusy

BOOL

TRUE: Function block active

LTrig

xError

BOOL

TRUE: Error occurred, function block aborts action

FALSE: No error

LTrig

Input

itfParameterGroup

IReceiveParameterGroup

parameter group to be monitored

tTimeout

TIME

monitoring time: t#0ms = infinite timeout (no timeout monitoring)

Output

eError

ERROR

detailed error information if xError is TRUE.

xReceived

BOOL

TRUE: parameter group was received in previous cycle.