Beispiel #1
0
 public void GetRetValue()
 {
     for (int i = 0; i < AllW.Length; i++)
     {
         PlcWordModel temp_word = new PlcWordModel();
         temp_word.MemoryArea  = "W";
         temp_word.WordAddress = i;
         temp_word.SetValue(AllW[i]);
         RetData_W.Add(temp_word);
     }
     for (int i = 0; i < AllH.Length; i++)
     {
         PlcWordModel temp_word = new PlcWordModel();
         temp_word.MemoryArea  = "H";
         temp_word.WordAddress = i;
         temp_word.SetValue(AllH[i]);
         RetData_H.Add(temp_word);
     }
     for (int i = 0; i < AllD.Length; i++)
     {
         PlcWordModel temp_word = new PlcWordModel();
         temp_word.MemoryArea  = "D";
         temp_word.WordAddress = i;
         temp_word.SetValue(AllD[i]);
         RetData_D.Add(temp_word);
     }
 }
 public PlcWordAddressMappingModel(string name, PlcWordModel wordModel)
 {
     DataName = name;
     Word     = wordModel;
 }