public static void laterbackflag()//动均后分线反馈 { int s5, GantryID = 0; int s6 = 0; hardware.lineDevice myLine = new hardware.lineDevice(utils.PlcUtils.mAddressProLine); if (myLine.laterlineback(out s5, s6, GantryID)) { beforezancunqu(s5, GantryID); } }
// private bool lineDataReady = false; // private object locker = new object(); public void backchiremoving() { int s5 = 0; hardware.lineDevice myLine = new hardware.lineDevice(utils.PlcUtils.mAddressProLine); myLine.shavingback(out s5); if (s5 != 0) { DataSet myds = new DataSet(); string DStr0 = "update tyre set tyrestatus = 1 where id = " + s5 + " ;";//修改轮胎状态 myds = Utils.DatabaseUtils.GetDataSet(DStr0, "shavingback"); myds.Dispose(); } }