States
The mode and state manager is of fundamental importance for both PackML and AFW. Execute the states in a predefined sequence. The actual action takes place in the "acting states". "Waiting states" are used when waiting for an event that allows the program to return to an action state.

Below you can see the AFW implementation for the PackML. The monitor for the AFW also displays warnings and information from the program.

Not all states are mandatory and have different properties. The waiting states are passive and wait for a trigger. In the acting states, the code is implemented and actions are performed. "Dual states" have the characteristics of both states.
The following table shows the definition of the states and which states are mandatory according to the PackML specification.
State | Wait | Acting | Comment |
|---|---|---|---|
Cyclic | X | X | SEW‑EURODRIVE- specific |
Clearing | – | – | – |
Stopped | X | – | Minimum required |
Starting | – | X | – |
Idle | – | – | Minimum required |
Suspended | – | – | – |
Execute | X | X | Minimum required |
Stopping | X | – | – |
Aborting | X | – | – |
Aborted | X | – | Minimum required |
Holding | – | X | – |
Held | X | – | – |
Unholding | – | X | – |
Suspending | – | X | – |
Unsuspending | – | X | – |
Resetting | – | X | – |
Completing |
| X |
|
Complete | X |
|
|
