As a safety precaution I have decided that my software should have an emergency stop function that temporarily switches on/off all necessary inputs and outputs to prevent any further malfunctions. However I would like this to be only a temporary 'pause' on the subroutine so that when the fault is corrected it can return to the subroutine as if nothing had happened - all timers returning to the accumulation they were paused on, and all outputs returning to the same state they were on previously.
Thanks in advance!
Thanks in advance!