Stop logic
The stop logic is the logic that is used to get the process to a safe state when a Stop command is received. The state changes to STOPPING, whatever logic was running is stopped, and the stop logic is executed. When the stop logic completes, the state changes to STOPPED and remains STOPPED until a Reset command is received.
Note:
There is no way to return to the RUNNING state from STOPPED.