sherzaad:
the closest idea that I found that I think will fit my purpose I found the software example shown here:
IMHO that is because you are thinking of the wrong type of solution. Why would you need to restart the whole program?
And AFAIK a jmp 0 is not the same as pressing the reset button. If you really do need to restart the Arduino then get the E-stop process to trigger the Arduino reset pin using a suitable electrical circuit.
Can you respond to my comments in Reply #16?
...R