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