| | |
| | | |
| | | #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; |
| | |
| | | "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(), |
| | | |
| | | }; |
| | | |
| | | |
| | |
| | | {"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 |
| | | } |
| | | } |