Пример #1
0
 private void SiriusEditorForm_Disposed(object sender, EventArgs e)
 {
     // 가공 시뮬레이션 중이면 중단
     Document?.Action?.ActEntityLaserPathSimulateStop();
     //RTC 가공 중이면 가공 정지
     Rtc?.CtlAbort();
 }
Пример #2
0
 public bool Stop()
 {
     Logger.Log(Logger.Type.Warn, $"marker [{this.Index}]: trying to stop ...");
     Rtc.CtlAbort();
     Rtc.CtlLaserOff();
     Motion?.StopAll();
     if (this.thread != null)
     {
         if (!this.thread.Join(2 * 1000))
         {
             Logger.Log(Logger.Type.Error, $"marker [{this.Index}]: fail to join the thread");
         }
         this.thread = null;
         return(true);
     }
     return(false);
 }