2 methods for changing over the state transitions, Methods for changing over the state transitions – Lenze ApplicationTemplate PackML (PLC Designer R3-x) User Manual
Page 66

Architecture: The ApplicationTemplate PackML in detail
State machine in detail
66
Lenze · ApplicationTemplate PackML · 1.0 EN - 05/2014
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[9-23] Complete state diagram according to PackML standard
The condition for switching the state transitions is that the result of the
Command_StateBusy(xAllOrSlaves:=TRUE) method is FALSE, except for the transitions "Abort" and
"Stop".
• The "Stop" transition enables a transition to the "stopping"
state from all areas without
Command_StateBusy (xAllOrSlaves:=TRUE) being =FALSE.
• The "Abort" transition enables a transition to the "Aborting"
without
Command_StateBusy (xAllOrSlaves:=TRUE) being = FALSE.
• All other state transitions can be found in the following section with the related
Command_CtrlCmds _xxx.
The state transitions in detail: Command_CtrlCmds() method
9.3.2
Methods for changing over the state transitions
The following section provides an overview of all methods in the ApplicationTemplate PackML:
Changing over a single transition
[9-24] Example: Changes the transition "Start" from"Idle"
"Starting".
• Thus, the state machine then is in the active "Starting" state.
• The xCmdChangeRequest value of the method cause a switching of the transition by means of
a positive edge.
• As long as one of the slave modules has the xBusy status, a changeover of the state machine is
prevented.
Command_CtrlCmd(eCtrlCmd:=L_EATP_CtrlCmd_PackML.Start , xCmdChangeRequest:=TRUE)