From 99d001bbf2a0371373e15c97d3c6c7dcf45e97e3 Mon Sep 17 00:00:00 2001
From: kazelee <1847801760@qq.com>
Date: 星期五, 13 六月 2025 15:44:22 +0800
Subject: [PATCH] 修复空托上线与满托下线联调的逻辑错误

---
 device/ProductionLineDevice.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/device/ProductionLineDevice.cs b/device/ProductionLineDevice.cs
index 4eaf326..c22a7d7 100644
--- a/device/ProductionLineDevice.cs
+++ b/device/ProductionLineDevice.cs
@@ -22,10 +22,14 @@
             Port = port;
             Id = id;
         }
+        
+        public ProductionLineDevice(Config.ProductionLine line) {
+            Ip = line.PlcIp;
+            Port = line.PlcPort;
+            Id = line.Id;
+        }
 
         public string Id { get; set; }
-
-
 
         /// <summary>
         /// 绯荤粺鐘舵�锛�鏈湴 1鑱斿姩(AGV妯″紡) 2鏁呴殰

--
Gitblit v1.9.1