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