public static int VaccumInitialJudge()//判断12个真空吸状态 { int returnResult = 0; for (int i = 0; i < 12; i++) { if (GClsMontion.ReadIOCard7432InputBit(0, i) == 1) { returnResult++; } } return(returnResult); }
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夹紧气缸夹紧 }