| 
					
				 | 
			
			
				@@ -1,9 +1,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-using Aitex.Core.Util; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-using System; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using Aitex.Common.Util; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using Aitex.Core.Util; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using MECF.Framework.Common.Simulator; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using System.Collections.Generic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-using System.Linq; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-using System.Text; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-using System.Threading.Tasks; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using System.IO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 namespace Aitex.Core.RT.Device 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -15,6 +14,7 @@ namespace Aitex.Core.RT.Device 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// 关联变量字典 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// </summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private Dictionary<string, string> _relatedDictionary = new Dictionary<string, string>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #endregion 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //delegate 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,20 +32,15 @@ namespace Aitex.Core.RT.Device 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public void Initialize() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _relatedDictionary.Add("c_LOADERA_WS_BLADDER", "r_LOADERA_WS_BLADDER_PRESSURE");//Wafershuttle bladder 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _relatedDictionary.Add("c_LOADERB_WS_BLADDER", "r_LOADERB_WS_BLADDER_PRESSURE"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _relatedDictionary.Add("c_LOADERA_BERNOULLI_BLADDER", "r_LOADERA_CHUCK_BLADDER");//bernoulli bladder 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _relatedDictionary.Add("c_LOADERB_BERNOULLI_BLADDER", "r_LOADERB_CHUCK_BLADDER"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _relatedDictionary.Add("c_LoaderA_LS_Vacuum", "r_LoaderA_LS_Vacuum_anlg");//Ls vacuum 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _relatedDictionary.Add("c_LoaderB_LS_Vacuum", "r_LoaderB_LS_Vacuum_anlg"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _relatedDictionary.Add("c_LOADERA_BERNOULLI_N2", "r_LOADERA_BERNOULLI_PRESSURE"); //bernoulli N2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _relatedDictionary.Add("c_LOADERB_BERNOULLI_N2", "r_LOADERB_BERNOULLI_PRESSURE"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //加载相关联的IO映射配置文件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            string xmlPath = PathManager.GetCfgDir() + "SimulatorIOMapCfg.xml"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SimulatorIOMapConfig cfg = CustomXmlSerializer.Deserialize<SimulatorIOMapConfig>(new FileInfo(xmlPath)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            foreach (var item in cfg.SimulatorIOMapConfigs) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _relatedDictionary[item.SourceIOName] = item.TargetIONameA; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// 通知受关联模块变化的变量以及变化的值 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// </summary> 
			 |