Example #1
0
 /// <summary>
 /// Удалить параметр протокола модбас
 /// </summary>
 /// <param name="parametr">Удаляемый параметр</param>
 public bool RemoveParametr(ModbusParametr parametr)
 {
     if (this.Protocol.Remove(parametr.Name) == TypeMBProtocolErrorStatus.tesOK)
         return true;
     else
         return false;
 }
Example #2
0
 /// <summary>
 /// Добавить параметр в протокол модбас
 /// </summary>
 /// <param name="parametr">Добавляемый параметр</param>
 public bool AddParametr(ModbusParametr parametr)
 {
     if (this.Protocol.Add(parametr) == TypeMBProtocolErrorStatus.tesOK)
         return true;
     else
         return false;
 }