IETrig (ITF)¶
INTERFACE IETrig EXTENDS IActionProvider, IEdgeTriggered
In order to build a function block with an ETrig behaviour, its action provider has to be decorated with this interface.
This will determine the state machine which then forces the function block to the appropriate ETrig behaviour.
See Decorators for more information about the concept.
A state chart for function blocks with ETrig behaviour
- Starting
- ⇒
StartActionis running, untilxCompleteisTRUE,xBusy⇒TRUEAt 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.
Methods:
StartAction, inherited from IStartActionProvider