Exemple #1
0
 public T ToSingleField <T>(byte[] byRead, byte byteOrder, int byteSize)
 {
     return((T)ConvertHelper.BytesToStuct(ModBusHelper.GetDataByte(byRead, byteOrder, 9, byteSize), typeof(T)));
 }
Exemple #2
0
 public object ToWriteReturn(byte[] byData, byte byteOrder, Type type)
 {
     return(ConvertHelper.BytesToStuct(ModBusHelper.GetDataByte(byData, byteOrder, 10, 2), type));
 }
Exemple #3
0
 public byte[] GetCutReceiveData(byte[] byRead)
 {
     return(ConvertHelper.GetArrayByPos(byRead, 9, byRead.Length - 9));
 }