FUNCTION_BLOCK FB_Template_Edge
InOut:
Scope |
Name |
Type |
Comment |
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. |
Output |
xDone |
BOOL |
TRUE: Action has been successfully completed. |
xBusy |
BOOL |
TRUE: Function block in operation. |
|
xError |
BOOL |
TRUE: Error has occurred. Function block aborts action. FALSE: No error |
|
eError |
WORD |
Local library error ID |