Example #1
0
 public static void NGTrayUnload()//NG Tray下料
 {
     Main.frmMain.ListBoxDisplay("NG夹紧气缸松开");
     CAMiClsCylinder.NGlocationClampRetract();
     MessageBox.Show("请抽出NG料盘,并取走NG产品。然后按Tray按钮。");
     while (GClsMontion.ReadCardInputBit(1, 3) == 1)
     {
         Main.frmMain.ListBoxDisplay("NG夹紧气缸夹紧");
         CAMiClsCylinder.NGLocationClampExtend();//NG夹紧气缸夹紧
     }
 }
Example #2
0
 public static void NGTrayLoad()//NG Tray上料
 {
     while (GClsMontion.ReadIOCard7432InputBit(0, 28) == 0)
     {
         MessageBox.Show("请将料盘推到位!");
         Application.DoEvents();
         Thread.Sleep(1000);
     }
     while (GClsMontion.ReadIOCard7432InputBit(0, 29) == 0)
     {
         MessageBox.Show("请放置Tray盘");
         Application.DoEvents();
         Thread.Sleep(1000);
     }
     for (int i = 0; i < 12; i++)
     {
         CAMiClsVariable.isTrayCaveEmpty[i] = "1";//Tray穴位是否为空,清空数据,1为空
     }
     Main.frmMain.ListBoxDisplay("NG夹紧气缸夹紧");
     CAMiClsCylinder.NGLocationClampExtend();//NG夹紧气缸夹紧
 }