Beispiel #1
0
 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 public C_MotorDataRow(e_motorDataType _dataType)
 {
     if (dataType == e_motorDataType.regByteValue)
     {
         throw new Exception("Cannot create MotorDataRow with motorDataType = regByteValue, without specifying register byte address - please use different constructor!");
     }
     dataType           = _dataType;
     name               = EnumGetDescription.GetDescription((e_motorDataType)dataType);
     motStrings         = new string[3];
     letter_regByteType = ' ';
     address            = 0;
     REFRESH();
 }
Beispiel #2
0
 public static string GET_motorDataTypeInfo(C_Packet packet)
 {
     return(EnumGetDescription.GetDescription(packet.motorDataType));
 }