FB_Template_EdgeAbort (FB)

 

FUNCTION_BLOCK FB_Template_EdgeAbort EXTENDS FB_Tem­plate_Edge

InOut:

Scope

Name

Type

Comment

Inherited from

Input

xExecute

BOOL

Rising edge: Starts action.

Falling edge: Resets outputs.

If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone, xError, eError) are present at the outputs for exactly one cycle.

FB_Template_Edge

Output

xDone

BOOL

TRUE: Action has been successfully completed.

FB_Template_Edge

xBusy

BOOL

TRUE: Function block in operation.

FB_Template_Edge

xError

BOOL

TRUE: Error has occurred. Function block aborts action.

FALSE: No error

FB_Template_Edge

eError

WORD

Local library error ID

FB_Template_Edge

Input

xAbort

BOOL

TRUE: The action is stopped immediately and all outputs are reset to their initial values.