From 514e0b05b51f82203e716bc506c7cccb58e7434e Mon Sep 17 00:00:00 2001
From: cjs <2216046164@qq.com>
Date: 星期四, 19 六月 2025 17:23:08 +0800
Subject: [PATCH] 111

---
 ams/Hanhe.iWCS.TaizhouGEMTwoProtocol/EnentListen.cs |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/ams/Hanhe.iWCS.TaizhouGEMTwoProtocol/EnentListen.cs b/ams/Hanhe.iWCS.TaizhouGEMTwoProtocol/EnentListen.cs
index 46bc41a..126e53a 100644
--- a/ams/Hanhe.iWCS.TaizhouGEMTwoProtocol/EnentListen.cs
+++ b/ams/Hanhe.iWCS.TaizhouGEMTwoProtocol/EnentListen.cs
@@ -193,12 +193,15 @@
             #region 10006-鍙犵洏鏈烘弧鎵樹笅绾匡紙3妤煎彔鐩樹笅绾匡級-3妤煎彔鐩樹笅绾�-宸插畬鎴�寰呮祴璇�
             if (currActionModel.CN_N_ACTION_CODE == 10006)
             {
-                var plc = Settings.GetPlcInfo().Where(a => a.enable == 1 && (a.deviceType == "15" || a.deviceType == "25")).FirstOrDefault();
-                if (plc != null)
+                var plc = Settings.GetPlcInfo().Where(a => a.enable == 1 && (a.deviceType == "15" || a.deviceType == "25")).ToList();
+                if (plc.Count >0 )
                 {
-                    if (PickUpStartFree(plc.location))
+                    foreach(var a in plc)
                     {
-                        PLCControl.StackingLineEmpty(plc);
+                        if (PickUpStartFree(a.location))
+                        {
+                            PLCControl.StackingLineEmpty(a);
+                        }
                     }
                 }
                 //Thread.Sleep(500);
@@ -311,7 +314,7 @@
                         list.ForEach(a =>
                         {
                             // 鍖呰鏈哄惎鍔ㄦ椂璇诲彇銆愮炕椤甸�閬撱�锛屾牴鎹〉鍙疯幏鍙栦簲鏉℃暟鎹紝鐒跺悗鍐欏叆鍖呰鏈�-                            //ERPService.WriteItemInfo(a);
+                            ERPService.WriteItemInfoTwo(a);
 
                             PLCControl.CheckPackingMachineTetracobalt(a);
                         });
@@ -341,7 +344,7 @@
                 {
                     if (CheckStartFree(plc.location))
                     {
-                        PLCControl.CheckPackingLineFullTwo(plc);
+                        PLCControl.CheckPackingLineFullThree(plc);
                     }
                 }
                 //Thread.Sleep(500);

--
Gitblit v1.9.1