Model startup, production, stopping and faults as explicit states with testable transitions.
Name states and transition reasons
Separate idle, preparation, run and controlled stop. Define the sensor, operator command or timeout for each transition.
Test recovery behavior
Automatic restart after power loss or sensor fault may be unsuitable. Test safe start conditions and operator approval in simulation and on site.