Handling Emergency Stop

After an emergency stop, you must reset the emergency stop condition before you can run the robot again.
To do this, provide a reset button with the EventTaskType set to 2 – NoEmgAbort.

Function frmMain_btnReset_Click(Sender$ As String)  
    Reset  
    If EstopOn Then  
        MsgBox "EStop could not be reset"  
    EndIf  
Fend