AbbLCon (FB)
FUNCTION_BLOCK AbbLCon
State machine for level controlled function blocks Limitations: * Aborting state is executed for 1 single cycle only * B_CyclicAction is called even if A_StartAction has set xError:=TRUE -> Make sure to check for xError=FALSE in B_CyclicAction! * Resetting state is executed for 1 single cycle only
- InOut:
Scope
Name
Type
Initial
Comment
Input
EnableBOOLFALSE
A rising edge (Enable = TRUE) starts the operation, the output Busy goes to TRUE. All other inputs are read and considered continuously. A falling edge (Enable = FALSE) aborts the operation. During Aborting the Busy is still TRUE. Afterward all outputs are reset.
Output
DoneBOOLFALSE
Operation is completed without error (while outputs Busy and Error are FALSE). This output is TRUE for at least one cycle or until Enable is set to FALSE.
BusyBOOLFALSE
Operation is running (while outputs Done and Error are FALSE)
ErrorBOOLFALSE
Operation is stopped with error (while outputs Busy and Done are FALSE). This output is TRUE for at least one cycle or until Enable is set to FALSE. The output ErrorID gives more details about the error.