From c3fdd3ead425cf39da619a8e69a1a1784a28b492 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周三, 02 10月 2024 09:34:15 +0800
Subject: [PATCH] 调整sda

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

diff --git a/SDA/iWareSda/Common/Struct/WareSdaStruct.cs b/SDA/iWareSda/Common/Struct/WareSdaStruct.cs
index e5d9b68..abac5b2 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;
@@ -76,6 +87,16 @@
         /// RGV绔欑偣闆嗗悎
         /// </summary>
         public static List<string> RgvStationList = new List<string>() {
+            "1001","1002","1003","1004","1005","1006","1007","1008","1009","1010",
+            "1011","1012","1013","1014","1015",
+            "1020","1030","1040",  //鎷嗙洏鏈� 鎻愬崌鏈� RGV
+            "1019"
+        };
+
+        /// <summary>
+        /// 绔欑偣闆嗗悎
+        /// </summary>
+        public static List<string> StationStationList = new List<string>() {
             "1001","1002","1003","1004","1005","1006","1007","1008","1009","1010",
             "1011","1012","1013","1014","1015",
             "1020","1030","1040",  //鎷嗙洏鏈� 鎻愬崌鏈� RGV
@@ -209,6 +230,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