ILCon (ITF)¶
INTERFACE ILCon EXTENDS IActionProvider, ILevelControlled
Um einen Funktionsbaustein mit LCon
-Verhalten zu erstellen, muss sein Action Provider mit dieser Schnittstelle dekoriert werden. Dieser parametriert so die Zustandsmaschine, die dann den Funktionsbaustein zu einem angemessen LCon
-Verhalten zwingt.
Siehe Decorators für weitere Informationen zum Konzept.
Zustandsdiagramm für Funktionsbausteine mit LCon-Verhalten
- Starting:
⇒
StartAction
läift, bisxComplete
TRUE
ist,xBusy
⇒TRUE
- Executing:
⇒
CyclicAction
läuft, bisxComplete
TRUE
ist- Cleaning:
- ⇒
CleanupAction
läuft An seinem Ende wirdExitAction
wahrscheinlich einmal ausgeführt.Nach einerReady Condition
als Eingang, sind nur die AusgangszuständeDone
(xComplete
isTRUE
) oderError
(eErrorID
≠ERROR.NO_ERROR
) möglich.Nach einerError Condition
als Eingang, ist nur der AusgangszustandError
(eErrorID
≠ERROR.NO_ERROR
) möglich.Nach einerAbort Condition
als Eingang, sind nur die AusgangszuständeResetting
oderError
(eErrorID
≠ERROR.NO_ERROR
) möglich.(xBusy
is stillTRUE
!) - Done:
xDone
⇒TRUE
,xBusy
⇒FALSE
- Error:
xError
⇒TRUE
,eErrorID
≠ERROR.NO_ERROR
,xBusy
⇒FALSE
- Resetting:
- ⇒
ResetAction
läuft, bisxComplete
TRUE
istDanach:- the outputsxDone
andxError
will be set toFALSE
.- The outputeErrorID
will be set toERROR.NO_ERROR
.
Methods:
StartAction, inherited from IStartActionProvider