From 142e78034cdc629f74090caa62b9b2d216eb0a86 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周六, 23 11月 2024 16:07:08 +0800 Subject: [PATCH] 222 --- CC/iWareCC_ASRS/FormCC.cs | 55 +++++-------------------------------------------------- 1 files changed, 5 insertions(+), 50 deletions(-) diff --git a/CC/iWareCC_ASRS/FormCC.cs b/CC/iWareCC_ASRS/FormCC.cs index b23ffc4..c1cd1ad 100644 --- a/CC/iWareCC_ASRS/FormCC.cs +++ b/CC/iWareCC_ASRS/FormCC.cs @@ -223,15 +223,15 @@ new Thread(DataProcess_RobotBuffer_FinishTaskForOutbound.Handler).Start(); - + new Thread(DataProcess_RobotBuffer_FinishTask.Handler).Start(); new Thread(DataProcess_BZ01.Handler).Start(); - + new Thread(DataProcess_269.Handler).Start(); - + new Thread(DataProcess_BZ39.Handler).Start(); @@ -966,53 +966,6 @@ #endregion - #region AGV - - - /// <summary> - /// 鑾峰彇AGV杞﹁締鍒楄〃 - /// </summary> - public void GetAgvVehicles() - { - while (true) - { - try - { - if (SystemValue.isAllowRuning_DataProcess_RobotBuffer_AutoQiTaoOutbound && SystemValue.isStartedModel) - { - AGVRetModel list = AgvRequestHelper.GetVehicles(); - AgvHandler.SaveAgvData(list); - - List<String> warningAddressList = new List<string>(); - if (list.alarms != null && list.alarms.errors != null && list.alarms.errors.Count > 0) - { - var waringList = list.alarms.errors; - if (waringList != null && waringList.Count > 0) - { - for (int i = 0; i < waringList.Count; i++) - { - DeviceWarningHandler.SaveWarning(EDevice.AGV, iWareCommon.Utils.LogType.DataProcess_RobotBuffer_AutoQiTaoOutbound, - waringList[i].code, waringList[i].code, waringList[i].desc);//鏂板鎶ヨ - warningAddressList.Add(waringList[i].code); - } - } - } - DeviceWarningHandler.AutoCloseWarning(EDevice.AGV, iWareCommon.Utils.LogType.DataProcess_RobotBuffer_AutoQiTaoOutbound, warningAddressList);//鑷姩鍏抽棴鎶ヨ - this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.Text = "鑾峰彇AGV杞﹁締淇℃伅鎴愬姛"; - } - } - catch (Exception ex) - { - Log4NetHelper.WriteErrorLog(iWareCommon.Utils.LogType.CCWCFService, "鑾峰彇AGV杞﹁締鍒楄〃 鍑虹幇寮傚父:" + ex.Message, ex); - this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.Text = "鑾峰彇AGV杞﹁締淇℃伅寮傚父锛�" + ex.Message; - } - finally - { - Thread.Sleep(5000);//5绉掍竴娆� - } - } - } - #endregion #region 鍏朵粬绾跨▼ @@ -1876,6 +1829,8 @@ this.btn_Start.BackColor = default_btn_Start_Color;//杩樺師棰滆壊 } } + + this.lbl_RobotMode.Text = "缂撳瓨宀涙満鍣ㄤ汉妯″紡:" + (IsAllowRunOutMode ? "鍑哄簱妯″紡" : "鍏ュ簱妯″紡"); } } -- Gitblit v1.9.3