Ejemplo n.º 1
0
 //解析开度上下限
 public static xd100x.valvemm Read_valvemm(byte[] inByte)
 {
     xd100x.valvemm vmm = new xd100x.valvemm();
     vmm._min = DataInfo.GetLongValue2(inByte, 3);
     vmm._max = DataInfo.GetLongValue2(inByte, 5);
     return(vmm);
 }
Ejemplo n.º 2
0
 //解析开度上下限
 public static xd100x.valvemm Read_valvemm(byte[] inByte)
 {
     xd100x.valvemm vm = new xd100x.valvemm();
     vm._min       = DataInfo.GetByteValue(inByte, 8);
     vm._max       = DataInfo.GetByteValue(inByte, 9);
     vm._deatharea = DataInfo.GetByteValue(inByte, 10);
     return(vm);
 }
Ejemplo n.º 3
0
 //设置调节阀开度上下限
 public static byte[] Set_valvemm(byte address, xd100x.valvemm vm)
 {
     int[] buffer = { vm._min, vm._max };
     return(DataInfo.ModbusSetData(address, 0x10, 145, buffer));
 }
Ejemplo n.º 4
0
 //设置调节阀开度上下限
 public static byte[] Set_valvemm(byte address, xd100x.valvemm vm)
 {
     byte[] buffer = { 73, Convert.ToByte(vm._min), Convert.ToByte(vm._max), Convert.ToByte(vm._deatharea) };
     return(DataInfo.SetData(address, 21, buffer));
 }