Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        // 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();
            }
        }