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:
⇒StartAction
is running, untilxComplete
isTRUE
,xBusy
⇒TRUE
.At its beginning theSampleAction
is probably executed one time.- Executing:
⇒
CyclicAction
is running untilxComplete
isTRUE
- Cleaning:
⇒CleanupAction
is running.At its end theExitAction
is probably executed one time.After aReady Condition
as input, only the output statesDone
(xComplete
isTRUE
) orError
(eErrorID
≠ERROR.NO_ERROR
) are possible.After aError Condition
as 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:
⇒ResetAction
is running, untilxComplete
isTRUE
.After that:- the outputsxDone
andxError
will be set toFALSE
.- The outputeErrorID
will 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