예제 #1
0
 public object ToWriteReturn(byte[] byData, byte byteOrder, Type type)
 {
     return(ConvertHelper.BytesToStuct(ModBusHelper.GetDataByte(byData, byteOrder, 4, 2), type));
 }
예제 #2
0
 public T ToSingleField <T>(byte[] byRead, byte byteOrder, int byteSize)
 {
     return((T)ConvertHelper.BytesToStuct(ModBusHelper.GetDataByte(byRead, byteOrder, 3, byteSize), typeof(T)));
 }