From d89732b82ff7fc047628ca3772311a0fbeea3553 Mon Sep 17 00:00:00 2001
From: zongzhibin <zongzhibin@weben-smart.com>
Date: 周日, 24 11月 2024 14:19:14 +0800
Subject: [PATCH] add

---
 SDA/iWareSda/Common/Struct/WareSdaStruct.cs |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/SDA/iWareSda/Common/Struct/WareSdaStruct.cs b/SDA/iWareSda/Common/Struct/WareSdaStruct.cs
index e5d9b68..162acff 100644
--- a/SDA/iWareSda/Common/Struct/WareSdaStruct.cs
+++ b/SDA/iWareSda/Common/Struct/WareSdaStruct.cs
@@ -59,6 +59,17 @@
 
         #endregion
 
+        #region 绔欑偣鐨凱LC鍦板潃
+
+        public const CpuType Station_PLC_CpuType = CpuType.S71500;
+        public const SiemensPLCS Station_SiemensPLCS = SiemensPLCS.S1500;
+        public static string Station_Address = ConfigHelper.GetConfigString("Station_Address");
+        public static short Station_Rack = (short)ConfigHelper.GetConfigInt("Station_Rack");
+        public static short Station_Slot = (short)ConfigHelper.GetConfigInt("Station_Slot");
+        public static short Station_Port = (short)ConfigHelper.GetConfigInt("Station_Port");
+
+        #endregion
+
         #region 杈撻�佺嚎鐨凱LC鍦板潃
 
         //public const CpuType Line_PLC_CpuType = CpuType.S71500;
@@ -80,6 +91,18 @@
             "1011","1012","1013","1014","1015",
             "1020","1030","1040",  //鎷嗙洏鏈� 鎻愬崌鏈� RGV
             "1019"
+        };
+
+        /// <summary>
+        /// 绔欑偣闆嗗悎
+        /// </summary>
+        public static List<string> StationStationList = new List<string>() {
+           StationLocationEnum.棣栨鎵爜宸ヤ綅.ToString(),
+           StationLocationEnum.BZ01.ToString(),
+           StationLocationEnum.BZ39.ToString(),
+           StationLocationEnum.BZ21.ToString(),
+           StationLocationEnum.BZ12.ToString(),
+
         };
 
 
@@ -209,6 +232,28 @@
         {"1.4","杈撻�佺嚎閫氳寮傚父"}
         };
 
+
+        //閲岄潰鏈夌┖鏍硷紝鍒繕浜嗘渶鍚巘rim涓�
+        /// <summary>
+        /// RGV鎶ヨ瀛楀吀
+        /// key:鎶ヨ浠g爜 value锛氭姤璀﹀唴瀹�
+        /// </summary>
+        public static IDictionary<string, string> StationAlertDict = new System.Collections.Generic.Dictionary<string, string>() {
+        {"0.0","鍓嶆瀬闄愬紓甯�"},
+        {"0.1","鍚庢瀬闄愬紓甯�"},
+        {"0.2","鎬ュ仠寮傚父"},
+        {"0.3","琛岃蛋婵�鍏夋祴璺濆�兼棤鍙樺寲"},
+        {"0.4","琛岃蛋婵�鍏夋祴璺濆�间綅闆�"},
+        {"0.5","琛岃蛋鍙橀鍣ㄥ紓甯�"},
+        {"0.6","杈撻�佸彉棰戝櫒寮傚父"},
+        {"0.7","琛岃蛋瓒呮椂寮傚父"},
+        {"1.0","杈撻�佽秴鏃跺紓甯�"},
+        {"1.1","宸︿晶绐佸嚭寮傚父"},
+        {"1.2","鍙充晶绐佸嚭寮傚父"},
+        {"1.3","杈撻�佺嚎绐佸嚭寮傚父"},
+        {"1.4","杈撻�佺嚎閫氳寮傚父"}
+        };
+
         #endregion
     }
 }

--
Gitblit v1.9.3