Beispiel #1
0
 private void Feedhold_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (KM.WriteLineReadLine("GetStopState") == "0")
         {
             KM.Feedhold();
         }
         else
         {
             KM.ResumeFeedhold();
         }
     }
     catch (Exception)
     {
         KM.ReleaseToken();
     }
 }
Beispiel #2
0
 private void btnFeedHold_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (KM.WriteLineReadLine("GetStopState") == "0")
         {
             KM.Feedhold();
             btnFeedHold.Content = "Resume";
         }
         else
         {
             KM.ResumeFeedhold();
             btnFeedHold.Content = "Feed Hold";
         }
     }
     catch (Exception)
     {
         KM.CoordMotion.Interpreter.Halt();
     }
 }