예제 #1
0
        public void Update()
        {
            if (isconnect != abc.IsAlive())
            {
                ISConnect = abc.IsAlive();
            }

            if (!abc.IsAlive())
            {
                return;
            }

            if (actionsta != abc.ActionStatus())
            {
                actionsta    = abc.ActionStatus();
                ActionStatus = "";
            }

            if (devicesta != abc.DeviceStatus())
            {
                devicesta    = abc.DeviceStatus();
                DeviceStatus = "";
            }

            if (commandsta != abc.CommandStatus())
            {
                commandsta    = abc.CommandStatus();
                CommandStatus = "";
            }

            if (des_x_y_z != abc.GetGoodsSite())
            {
                Des_X_Y_Z = abc.GetGoodsSite();
            }

            if (now_task != abc.CurrentTask())
            {
                now_task = abc.CurrentTask();
                Now_Task = "";
            }

            if (now_x_y_z != abc.GetCurrentSite())
            {
                Now_X_Y_Z = abc.GetCurrentSite();
            }

            if (finish_task != abc.FinishTask())
            {
                finish_task = abc.FinishTask();
                Finish_Task = "";
            }

            if (loadstatus != abc.GoodsStatus())
            {
                loadstatus = abc.GoodsStatus();
                LoadStatus = "";
            }

            if (errormsg != abc.ErrorMessage())
            {
                errormsg = abc.ErrorMessage();
                ErrorMsg = "";
            }

            if (abc.GetUpdateTime(out string time))
            {
                if (datatime != time)
                {
                    DataTime = time;
                }
            }
        }