//设置循环泵压差设定 public static byte[] Set_cycpumpvalue(byte address, xd100x.cycpumpvalue cv) { byte[] t1 = BitConverter.GetBytes(cv._pressure); byte[] t2 = BitConverter.GetBytes(0f); byte[] buffer = { 0, t1[0], t1[1], t1[2], t1[3], t2[0], t2[1], t2[2], t2[3] }; return(DataInfo.SetData(address, 0x41, buffer)); }
//设置补水泵压力设定 public static byte[] Set_addpumpvalue(byte address, xd100x.addpumpvalue av) { byte[] t1 = BitConverter.GetBytes(av._pressure); byte[] t2 = BitConverter.GetBytes(0f); byte[] buffer = { 77, Convert.ToByte(av._type), t1[0], t1[1], t1[2], t1[3], t2[0], t2[1], t2[2], t2[3] }; return(DataInfo.SetData(address, 21, buffer)); }
//设置调节阀设定值 public static byte[] Set_valvevalue(byte address, xd100x.valvecontrol control, xd100x.valvevalue value) { byte[] t1 = BitConverter.GetBytes(value._value); byte[] t2 = BitConverter.GetBytes(0f); byte[] buffer = { 0x47, Convert.ToByte(control._control), t1[0], t1[1], t1[2], t1[3], t2[0], t2[1], t2[2], t2[3] }; return(DataInfo.SetData(address, 21, buffer)); }
//设置二次回温度修正 public static byte[] Set_BT2revise(byte address, xd100x.temprevise or) { byte[] t1 = BitConverter.GetBytes(or._max); byte[] t2 = BitConverter.GetBytes(or._min); byte[] t3 = BitConverter.GetBytes(or._k); byte[] t4 = BitConverter.GetBytes(or._b); byte[] buffer = { 35, or._channel, or._type, or._unit, t1[0], t1[1], t1[2], t1[3], t2[0], t2[1], t2[2], t2[3], t3[0], t3[1], t3[2], t3[3], t4[0], t4[1], t4[2], t4[3] }; return(DataInfo.SetData(address, 21, buffer)); }
//设置报警温度液位 public static byte[] Set_alarmt(byte address, xd100x.alarmt at) { byte[] t1 = BitConverter.GetBytes(at._yicigdiwen); byte[] t2 = BitConverter.GetBytes(at._erciggaowen); byte[] t3 = BitConverter.GetBytes(at._waterlow); byte[] t4 = BitConverter.GetBytes(at._waterhight); byte[] buffer = { 82, t1[0], t1[1], t1[2], t1[3], t2[0], t2[1], t2[2], t2[3], t3[0], t3[1], t3[2], t3[3], t4[0], t4[1], t4[2], t4[3] }; return(DataInfo.SetData(address, 21, buffer)); }
//设置报警设置压力 public static byte[] Set_alarmp(byte address, xd100x.alarmp ap) { byte[] t1 = BitConverter.GetBytes(ap._yicigdiya); byte[] t2 = BitConverter.GetBytes(ap._erciggaoya); byte[] t3 = BitConverter.GetBytes(ap._ercihgaoya); byte[] t4 = BitConverter.GetBytes(ap._ercihdiya); byte[] buffer = { 81, t1[0], t1[1], t1[2], t1[3], t2[0], t2[1], t2[2], t2[3], t3[0], t3[1], t3[2], t3[3], t4[0], t4[1], t4[2], t4[3] }; return(DataInfo.SetData(address, 21, buffer)); }
//设置补水压力上下限 水箱水位上下限 public static byte[] Set_addpumpmm(byte address, xd100x.addpumpmm apmm) { byte[] t1 = BitConverter.GetBytes(apmm._presshight); byte[] t2 = BitConverter.GetBytes(apmm._presslow); byte[] t3 = BitConverter.GetBytes(apmm._levelhight); byte[] t4 = BitConverter.GetBytes(apmm._levellow); byte[] buffer = { 79, t1[0], t1[1], t1[2], t1[3], t2[0], t2[1], t2[2], t2[3], t3[0], t3[1], t3[2], t3[3], t4[0], t4[1], t4[2], t4[3] }; return(DataInfo.SetData(address, 21, buffer)); }
//设置调节阀分时调整 public static byte[] Set_valvetime(byte address, xd100x.valvetime vt) { byte[] buffer = { (byte)Convert.ToSByte(vt._v1), (byte)Convert.ToSByte(vt._v2), (byte)Convert.ToSByte(vt._v3), (byte)Convert.ToSByte(vt._v4), (byte)Convert.ToSByte(vt._v5), (byte)Convert.ToSByte(vt._v6), (byte)Convert.ToSByte(vt._v7), (byte)Convert.ToSByte(vt._v8), (byte)Convert.ToSByte(vt._v9), (byte)Convert.ToSByte(vt._v10), (byte)Convert.ToSByte(vt._v11), (byte)Convert.ToSByte(vt._v12) }; return(DataInfo.SetData(address, 0x3d, buffer)); }
//设置压差曲线 public static byte[] Set_cycpumpline(byte address, xd100x.cycpumpline cl) { byte[] buffer = { (byte)Convert.ToSByte(cl._ov1), (byte)Convert.ToSByte(cl._pv1 * 100), (byte)Convert.ToSByte(cl._ov2), (byte)Convert.ToSByte(cl._pv2 * 100), (byte)Convert.ToSByte(cl._ov3), (byte)Convert.ToSByte(cl._pv3 * 100), (byte)Convert.ToSByte(cl._ov4), (byte)Convert.ToSByte(cl._pv4 * 100), (byte)Convert.ToSByte(cl._ov5), (byte)Convert.ToSByte(cl._pv5 * 100), (byte)Convert.ToSByte(cl._ov6), (byte)Convert.ToSByte(cl._pv6 * 100), (byte)Convert.ToSByte(cl._ov7), (byte)Convert.ToSByte(cl._pv7 * 100), (byte)Convert.ToSByte(cl._ov8), (byte)Convert.ToSByte(cl._pv8 * 100) }; return(DataInfo.SetData(address, 0x3f, buffer)); }
//设置调节阀温度曲线 public static byte[] Set_valveline(byte address, xd100x.valveline vl) { byte[] buffer = { (byte)Convert.ToSByte(vl._ov1), (byte)Convert.ToSByte(vl._gv1), (byte)Convert.ToSByte(vl._ov2), (byte)Convert.ToSByte(vl._gv2), (byte)Convert.ToSByte(vl._ov3), (byte)Convert.ToSByte(vl._gv3), (byte)Convert.ToSByte(vl._ov4), (byte)Convert.ToSByte(vl._gv4), (byte)Convert.ToSByte(vl._ov5), (byte)Convert.ToSByte(vl._gv5), (byte)Convert.ToSByte(vl._ov6), (byte)Convert.ToSByte(vl._gv6), (byte)Convert.ToSByte(vl._ov7), (byte)Convert.ToSByte(vl._gv7), (byte)Convert.ToSByte(vl._ov8), (byte)Convert.ToSByte(vl._gv8) }; return(DataInfo.SetData(address, 0x3c, buffer)); }
//补水泵启动 public static byte[] Set_addpumprun(byte address) { return(DataInfo.SetData(address, 0x33)); }
//补水泵停 public static byte[] Set_addpumpstop(byte address) { return(DataInfo.SetData(address, 0x32)); }
//设置室外温度设置 public static byte[] Set_outtemp(byte address, xd100x.outtemp ot) { byte[] t1 = BitConverter.GetBytes(ot._outtemp); byte[] buffer = { 0x1f, t1[0], t1[1], t1[2], t1[3] }; return(DataInfo.SetData(address, 0x29, buffer)); }
//设置室外温度设置 public static byte[] Set_outmode(byte address, xd100x.outmode om) { byte[] buffer = { Convert.ToByte(om._outmode) }; return(DataInfo.SetData(address, 0x28, buffer)); }
//设置调节阀开度上下限 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)); }