schangxiang@126.com
2024-10-02 c3fdd3ead425cf39da619a8e69a1a1784a28b492
SDA/iWareSda/Common/Struct/WareSdaStruct.cs
@@ -59,6 +59,17 @@
        #endregion
        #region 站点的PLC地址
        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 输送线的PLC地址
        //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","输送线通讯异常"}
        };
        //里面有空格,别忘了最后trim下
        /// <summary>
        /// RGV报警字典
        /// key:报警代码 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
    }
}