From 124c6bef95aa767f62ac245a883179ff5baca206 Mon Sep 17 00:00:00 2001 From: cjs <2216046164@qq.com> Date: 星期一, 28 七月 2025 17:45:03 +0800 Subject: [PATCH] 11 --- ams/Hanhe.iWCS.JingmenGEMTwoProtocol/PLCControl.cs | 34 +++++++++++++++++++++++++--------- 1 files changed, 25 insertions(+), 9 deletions(-) diff --git a/ams/Hanhe.iWCS.JingmenGEMTwoProtocol/PLCControl.cs b/ams/Hanhe.iWCS.JingmenGEMTwoProtocol/PLCControl.cs index 6fa8241..d9b7a5e 100644 --- a/ams/Hanhe.iWCS.JingmenGEMTwoProtocol/PLCControl.cs +++ b/ams/Hanhe.iWCS.JingmenGEMTwoProtocol/PLCControl.cs @@ -601,10 +601,10 @@ var plc = Settings.GetPlcInfo().Where(a => a.ip == ip).FirstOrDefault(); //ASM鍐欏叆閫氶亾0灏忚溅鍔ㄤ綔锛�-鍙栨枡 int[] num = new int[2] { 1, 1 }; - //if(type == "PDA鎵撳寘涓嬬嚎") - //{ - // num[0] = 4; - //} + if(type == "PDA鎵撳寘涓嬬嚎") + { + num[0] = 4; + } var writeRes0 = OITcpHelper.RegisterWriteOutPutMulti(new OITcpHelper.RegisterWriteOutPutModelMulti { host = ip, @@ -1440,13 +1440,24 @@ { //鍙互鐢熸垚浠诲姟锛岃皟WMS鎺ュ彛鑾峰彇浠诲姟淇℃伅 bool req = WMSHelper.WMSOut(pmInfo.location, "", trayType); - if (req) CMMLog.Debug($"璋冪敤WMS鑾峰彇纰熺洏鍑哄簱鐢熸垚浠诲姟鎴愬姛锛�);//鐜板湪浠诲姟鐢盬MS鑷繁涓嬪彂锛孉MS鍋氭嫤鎴鐞嗭紙鏌ヨext1閲岄潰瀵瑰簲鐨勪换鍔$被鍨嬶紝骞舵洿鏀逛换鍔$被鍨嬶級 - else CMMLog.Debug($"璋冪敤WMS鑾峰彇纰熺洏鍑哄簱鐢熸垚浠诲姟澶辫触锛�); + if (req) + { + CMMLog.Debug($"璋冪敤WMS鑾峰彇鍙犵洏鍑哄簱鐢熸垚浠诲姟鎴愬姛锛�);//鐜板湪浠诲姟鐢盬MS鑷繁涓嬪彂锛孉MS鍋氭嫤鎴鐞嗭紙鏌ヨext1閲岄潰瀵瑰簲鐨勪换鍔$被鍨嬶紝骞舵洿鏀逛换鍔$被鍨嬶級 + ProcessHelper.deleteInfo(pmInfo.location + "-鍙犵洏涓婄嚎"); + } + else CMMLog.Debug($"璋冪敤WMS鑾峰彇鍙犵洏鍑哄簱鐢熸垚浠诲姟澶辫触锛�); } - else CMMLog.Debug($"CacheStackingMouth: 鎵樼洏绫诲瀷涓嶆纭紝鎵樼洏绫诲瀷锛歿result.result[2]}"); - + else + { + CMMLog.Debug($"鍙犵洏鏈� 鎵樼洏绫诲瀷涓嶆纭紝鎵樼洏绫诲瀷锛歿result.result[2]}"); + ProcessHelper.recordInfo(pmInfo.location + "-鍙犵洏涓婄嚎", $"鎵樼洏绫诲瀷涓嶆纭紝鎵樼洏绫诲瀷锛歿result.result[2]}"); + } } - else CMMLog.Debug($"妫�煡褰撳墠鍙犳墭鐐规槸鍚︽湁浠诲姟鍗犵敤锛屾垨鑰匨ST涓昏〃涓湁缂撳瓨鏋跺叆鍙犵洏鏈虹殑浠诲姟锛�); + else + { + CMMLog.Debug($"妫�煡褰撳墠鍙犳墭鐐规槸鍚︽湁浠诲姟鍗犵敤锛屾垨鑰匨ST涓昏〃涓湁缂撳瓨鏋跺叆鍙犵洏鏈虹殑浠诲姟锛�); + ProcessHelper.recordInfo(pmInfo.location + "-鍙犵洏涓婄嚎", "鍙犵洏鏈哄綋鍓嶆湁浠诲姟"); + } } } else CMMLog.Debug($"缂撳瓨鍏ュ彔鐩樻満锛屽垱寤轰换鍔★紝result={result.errMsg}"); @@ -1649,8 +1660,13 @@ if (amsResult.success) { CMMLog.Info($"鍖呰绾胯ˉ绌轰换鍔$敓鎴愭垚鍔�); + ProcessHelper.deleteInfo(pmInfo.location + "-鍖呰鏈虹┖鎵樹笂绾�); break; } + else + { + ProcessHelper.recordInfo(pmInfo.location + "-鍖呰鏈虹┖鎵樹笂绾�, $"{amsResult.errMsg}"); + } } } } -- Gitblit v1.9.1