public void ResetAll() { if ((ConnectStatus & CONNECTTYPE.CONNECTED) == 0) { return; } try { _Robot.ResetALARM(); _Robot.ResetMove(); _Robot.ResetCYCLE(); _Robot.ResetPRG(); _Robot.ResetSTEP(); } catch (TsRemoteSException ex) { //Error processing Console.WriteLine("ResetAll: " + ex.Message); } }