//设置上下限压力 public static byte[] Set_addpumpmm(byte address, xd100x.addpumpmm amm) { int[] buffer = { Convert.ToInt16(amm._presshight * 100), Convert.ToInt16(amm._presslow * 100), Convert.ToInt16(amm._levelhight * 100), Convert.ToInt16(amm._levellow * 100) }; return(DataInfo.ModbusSetData(address, 0x10, 189, buffer)); }
//设置压差曲线 public static byte[] Set_cycpumpline(byte address, xd100x.cycpumpline cl) { int[] buffer = { cl._ov1, Convert.ToInt16(cl._pv1 * 100), cl._ov2, Convert.ToInt16(cl._pv2 * 100), cl._ov3, Convert.ToInt16(cl._pv3 * 100), cl._ov4, Convert.ToInt16(cl._pv4 * 100), cl._ov5, Convert.ToInt16(cl._pv5 * 100), cl._ov6, Convert.ToInt16(cl._pv6 * 100), cl._ov7, Convert.ToInt16(cl._pv7 * 100), cl._ov8, Convert.ToInt16(cl._pv8 * 100) }; return(DataInfo.ModbusSetData(address, 0x10, 161, buffer)); }
//设置二次回温度修正 public static byte[] Set_BT2revise(byte address, xd100x.temprevise or) { int[] buffer = { Convert.ToInt16(or._k * 1000), Convert.ToInt16(or._b * 10) }; return(DataInfo.ModbusSetData(address, 0x10, 32, buffer)); }
//设置补水泵模式及设定 public static byte[] Set_addpumpvalue(byte address, xd100x.addpumpvalue av) { int[] buffer = { av._type, Convert.ToInt16(av._pressure * 100) }; return(DataInfo.ModbusSetData(address, 0x10, 183, buffer)); }
//设置压差设定 public static byte[] Set_cycpumpvalue(byte address, xd100x.cycpumpvalue cv) { int[] buffer = { Convert.ToInt16(cv._pressure * 100) }; return(DataInfo.ModbusSetData(address, 0x10, 159, buffer)); }
//设置室外温度值 public static byte[] Set_outtemp(byte address, xd100x.outtemp ot) { int[] buffer = { Convert.ToInt16(ot._outtemp * 10) }; return(DataInfo.ModbusSetData(address, 0x10, 207, buffer)); }
//设置报警设置温度液位 public static byte[] Set_alarmt(byte address, xd100x.alarmt at) { int[] buffer = { at._yicigdiwen, at._erciggaowen, Convert.ToInt16(at._waterlow * 100), Convert.ToInt16(at._waterhight * 100) }; return(DataInfo.ModbusSetData(address, 0x10, 202, buffer)); }
//设置室外温度设置 public static byte[] Set_outmode(byte address, xd100x.outmode om) { int[] buffer = { om._outmode }; return(DataInfo.ModbusSetData(address, 0x10, 206, buffer)); }
//设置调节阀流量限定 public static byte[] Set_valvelimit(byte address, xd100x.valvelimit vl) { int[] buffer = { vl._enable, vl._limit }; return(DataInfo.ModbusSetData(address, 0x10, 153, buffer)); }
//设置报警设置压力 public static byte[] Set_alarmp(byte address, xd100x.alarmp ap) { int[] buffer = { Convert.ToInt16(ap._yicigdiya * 100), Convert.ToInt16(ap._erciggaoya * 100), Convert.ToInt16(ap._ercihgaoya * 100), Convert.ToInt16(ap._ercihdiya * 100) }; return(DataInfo.ModbusSetData(address, 0x10, 198, buffer)); }
//设置调节阀开度上下限 public static byte[] Set_valvemm(byte address, xd100x.valvemm vm) { int[] buffer = { vm._min, vm._max }; return(DataInfo.ModbusSetData(address, 0x10, 145, buffer)); }
//设置调节阀分时调整 public static byte[] Set_valvetime(byte address, xd100x.valvetime vt) { int[] buffer = { Convert.ToInt16(vt._v1 * 10), Convert.ToInt16(vt._v2 * 10), Convert.ToInt16(vt._v3 * 10), Convert.ToInt16(vt._v4 * 10), Convert.ToInt16(vt._v5 * 10), Convert.ToInt16(vt._v6 * 10), Convert.ToInt16(vt._v7 * 10), Convert.ToInt16(vt._v8 * 10), Convert.ToInt16(vt._v9 * 10), Convert.ToInt16(vt._v10 * 10), Convert.ToInt16(vt._v11 * 10), Convert.ToInt16(vt._v12 * 10) }; return(DataInfo.ModbusSetData(address, 0x10, 133, buffer)); }
//设置调节阀温度曲线 public static byte[] Set_valveline(byte address, xd100x.valveline vl) { int[] buffer = { vl._ov1, vl._gv1, vl._ov2, vl._gv2, vl._ov3, vl._gv3, vl._ov4, vl._gv4, vl._ov5, vl._gv5, vl._ov6, vl._gv6, vl._ov7, vl._gv7, vl._ov8, vl._gv8 }; return(DataInfo.ModbusSetData(address, 0x10, 117, buffer)); }
//设置二次供温 public static byte[] Set_valvevalue(byte address, xd100x.valvevalue vv) { int[] buffer = { Convert.ToInt16(vv._value * 10) }; return(DataInfo.ModbusSetData(address, 0x10, 116, buffer)); }
//设置命令生成区域 #region Set //设置类型 public static byte[] Set_valvecontrol(byte address, xd100x.valvecontrol vc) { int[] buffer = { vc._control }; return(DataInfo.ModbusSetData(address, 0x10, 114, buffer)); }