public void Update() { if (isconnect != rgv.IsAlive()) { ISConnect = rgv.IsAlive(); } if (!rgv.IsAlive()) { return; } if (actionsta != rgv.ActionStatus()) { actionsta = rgv.ActionStatus(); ActionStatus = ""; } if (devicesta != rgv.DeviceStatus()) { devicesta = rgv.DeviceStatus(); DeviceStatus = ""; } if (commandsta != rgv.CommandStatus()) { commandsta = rgv.CommandStatus(); CommandStatus = ""; } if (des_x_y_z != rgv.GetGoodsSite()) { Des_X_Y_Z = rgv.GetGoodsSite(); } if (now_task != rgv.CurrentTask()) { now_task = rgv.CurrentTask(); Now_Task = ""; } if (now_x_y_z != rgv.GetCurrentSite()) { Now_X_Y_Z = rgv.GetCurrentSite(); } if (finish_task != rgv.FinishTask()) { finish_task = rgv.FinishTask(); Finish_Task = ""; } if (loadstatus != rgv.GoodsStatus()) { loadstatus = rgv.GoodsStatus(); LoadStatus = ""; } if (rollerstatus != rgv.CurrentStatus()) { rollerstatus = rgv.CurrentStatus(); RollerStatus = ""; } if (rollerdirection != rgv.RunDirection()) { rollerdirection = rgv.RunDirection(); RollerDirection = ""; } if (errormsg != rgv.ErrorMessage()) { errormsg = rgv.ErrorMessage(); ErrorMsg = ""; } if (rgv.GetUpdateTime(out string time)) { if (datatime != time) { DataTime = time; } } }