From c248264e3bc150d145fd38f76f468f938270782a Mon Sep 17 00:00:00 2001 From: cjs <2216046164@qq.com> Date: 星期五, 20 六月 2025 17:14:26 +0800 Subject: [PATCH] 111 --- ams/Hanhe.iWCS.TaizhouGEMTwoProtocol/EnentListen.cs | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/ams/Hanhe.iWCS.TaizhouGEMTwoProtocol/EnentListen.cs b/ams/Hanhe.iWCS.TaizhouGEMTwoProtocol/EnentListen.cs index 56acb2c..67b86a9 100644 --- a/ams/Hanhe.iWCS.TaizhouGEMTwoProtocol/EnentListen.cs +++ b/ams/Hanhe.iWCS.TaizhouGEMTwoProtocol/EnentListen.cs @@ -166,15 +166,7 @@ { list.ForEach(a => { - if(a.deviceType == "1") - { - PLCControl.PickUpBlank(a); - } - else - { - PLCControl.PickUpBlankTwo(a); - } - + PLCControl.PickUpBlankTwo(a); }); } } @@ -322,7 +314,7 @@ list.ForEach(a => { // 鍖呰鏈哄惎鍔ㄦ椂璇诲彇銆愮炕椤甸�閬撱�锛屾牴鎹〉鍙疯幏鍙栦簲鏉℃暟鎹紝鐒跺悗鍐欏叆鍖呰鏈�- //ERPService.WriteItemInfo(a); + ERPService.WriteItemInfoTwo(a); PLCControl.CheckPackingMachineTetracobalt(a); }); @@ -338,7 +330,7 @@ { lock (lock10015) { - ERPService.insertMidTable(); + //ERPService.insertMidTable(); } } #endregion @@ -347,12 +339,12 @@ //鍥涢挻杞﹂棿鎵撳寘涓嬬嚎鐗╂枡淇℃伅闇�浠庝笅绾垮彛鑾峰彇 if (currActionModel.CN_N_ACTION_CODE == 10016) { - var plc = Settings.GetPlcInfo().Where(a => a.enable == 1 && a.deviceType == "26").FirstOrDefault(); + var plc = Settings.GetPlcInfo().Where(a => a.enable == 1 && a.deviceType == "27").FirstOrDefault(); if (plc != null) { if (CheckStartFree(plc.location)) { - PLCControl.CheckPackingLineFullTwo(plc); + PLCControl.CheckPackingLineFullThree(plc); } } //Thread.Sleep(500); -- Gitblit v1.9.1