STATE (ENUM)¶
TYPE STATE :
Every state listed below is represented by an element in the state chart.
The PLCopen defines two different variables (xEnable/xExecute) for starting a function block depending on its type.
For this reason a neutral name xControl has been chosen. The xControl input variable can act as a xExecute or an xEnable input variable.
This depends on how the related action provider is decorated. If the action provider is decorated with IEdgeTriggered
then the xControl input variable acts as an xExecute. If the action provider is decorated with ILevelControlled then
the xControl input variable acts as an xEnable.
- Dormant
⇒ Waiting for
xControl(xEnable/xExecute)- Starting
⇒StartActionis running, untilxCompleteisTRUE,xBusy⇒TRUE.At its beginning theSampleActionis probably executed one time.- Executing
⇒
CyclicActionis running untilxCompleteisTRUE- Cleaning
⇒CleanupActionis running.At its end theExitActionis probably executed one time.After aReady Conditionas input, only the output statesDone(xCompleteisTRUE) orError(eErrorID≠ERROR.NO_ERROR) are possible.After aError Conditionas input, only the output stateError(eErrorID≠ERROR.NO_ERROR) is possible.- Done
xDone⇒TRUE,xBusy⇒FALSE- Error
xError⇒TRUE,eErrorID≠ERROR.NO_ERROR,xBusy⇒FALSE- Resetting
⇒ResetActionis running, untilxCompleteisTRUE.After that:- the outputsxDoneandxErrorwill be set toFALSE.- The outputeErrorIDwill be set toERROR.NO_ERROR.
- Attributes:
qualified_only- InOut:
Name
Initial
Comment
UNKNOWN
0
DORMANT
Waiting for
xControl⇒ (xEnable/xExecute)STARTING
IStartActionProvider.StartAction is running
EXECUTING
ICyclicActionProvider.CyclicAction is running
CLEANING
ICleanupActionProvider.CleanupAction is running
DONE
Ready condition reached
ERROR
Error condition reached
ABORTED
Abort condition reached
RESETTING
IResetActionProvider.ResetAction is running
