| | |
| | | public GZ.Device.PLC.PlcBase RGV=null; |
| | | public GZ.Device.PLC.PlcBase påé£ç§2ä¸çº¿=null; |
| | | public GZ.Device.PLC.PlcBase påé£ç§3ä¸çº¿=null; |
| | | public GZ.Device.PLC.PlcBase påé£ç§4ä¸çº¿=null; |
| | | public Device() |
| | | { |
| | | ç»´å¸å°æè1 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile |
| | |
| | | System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "påé£ç§3ä¸çº¿"), |
| | | null |
| | | ); |
| | | påé£ç§4ä¸çº¿ = GZ.Device.PLC.PlcFactory.CreateInstanceByFile |
| | | ( |
| | | System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "påé£ç§4ä¸çº¿"), |
| | | null |
| | | ); |
| | | if(System.Configuration.ConfigurationManager.AppSettings["AutoRunPLC"]=="1") |
| | | { |
| | | if(ç»´å¸å°æè1!=null){ç»´å¸å°æè1.Run();} |
| | |
| | | if(RGV!=null){RGV.Run();} |
| | | if(påé£ç§2ä¸çº¿!=null){påé£ç§2ä¸çº¿.Run();} |
| | | if(påé£ç§3ä¸çº¿!=null){påé£ç§3ä¸çº¿.Run();} |
| | | if(påé£ç§4ä¸çº¿!=null){påé£ç§4ä¸çº¿.Run();} |
| | | } |
| | | } |
| | | } |
| | |
| | | #region påé£ç§1ä¸çº¿ |
| | | public _påé£ç§1ä¸çº¿ påé£ç§1ä¸çº¿ = new _påé£ç§1ä¸çº¿(); |
| | | /// <summary> |
| | | /// |
| | | /// 10.221.55.131 - 1å·åé£ç§ |
| | | /// </summary> |
| | | public class _påé£ç§1ä¸çº¿ |
| | | { |
| | |
| | | #region påé£ç§2ä¸çº¿ |
| | | public _påé£ç§2ä¸çº¿ påé£ç§2ä¸çº¿ = new _påé£ç§2ä¸çº¿(); |
| | | /// <summary> |
| | | /// |
| | | /// 10.221.55.141 - 2å·åé£ç§ |
| | | /// </summary> |
| | | public class _påé£ç§2ä¸çº¿ |
| | | { |
| | |
| | | #region påé£ç§3ä¸çº¿ |
| | | public _påé£ç§3ä¸çº¿ påé£ç§3ä¸çº¿ = new _påé£ç§3ä¸çº¿(); |
| | | /// <summary> |
| | | /// |
| | | /// ä¸çº¿å°åï¼10.221.55.181 端å£ï¼6000 |
| | | /// </summary> |
| | | public class _påé£ç§3ä¸çº¿ |
| | | { |
| | | } |
| | | #endregion |
| | | |
| | | #region påé£ç§4ä¸çº¿ |
| | | public _påé£ç§4ä¸çº¿ påé£ç§4ä¸çº¿ = new _påé£ç§4ä¸çº¿(); |
| | | /// <summary> |
| | | /// äºçº¿å°åï¼10.221.55.179 端å£ï¼6000 |
| | | /// </summary> |
| | | public class _påé£ç§4ä¸çº¿ |
| | | { |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | |
| | | #endregion |