Exemplo n.º 1
0
 /// <summary>
 /// Shows the function code of the element group.
 /// </summary>
 private void ShowFuncCode(ElemGroupConfig elemGroup)
 {
     if (elemGroup == null)
     {
         txtGrFuncCode.Text = "";
     }
     else
     {
         byte funcCode = ModbusUtils.GetReadFuncCode(elemGroup.DataBlock);
         txtGrFuncCode.Text = string.Format("{0} ({1}h)", funcCode, funcCode.ToString("X2"));
     }
 }