Пример #1
0
 //设置调节阀温度曲线
 public byte[] Set_line(Set_line line)
 {
     int[] li = { line._ov1, line._gv1, line._ov2, line._gv2, line._ov3, line._gv3, line._ov4, line._gv4, line._ov5, line._gv5, line._ov6, line._gv6, line._ov7, line._gv7, line._ov8, line._gv8 };
     return setdata(117, li);
 }
Пример #2
0
 //解析曲线
 public Set_line Read_line(byte[] inByte)
 {
     Set_line sl = new Set_line();
     sl._ov1 = DataInfo.GetLongValue2(inByte, 3);
     sl._gv1 = DataInfo.GetLongValue2(inByte, 5);
     sl._ov2 = DataInfo.GetLongValue2(inByte, 7);
     sl._gv2 = DataInfo.GetLongValue2(inByte, 9);
     sl._ov3 = DataInfo.GetLongValue2(inByte, 11);
     sl._gv3 = DataInfo.GetLongValue2(inByte, 13);
     sl._ov4 = DataInfo.GetLongValue2(inByte, 15);
     sl._gv4 = DataInfo.GetLongValue2(inByte, 17);
     sl._ov5 = DataInfo.GetLongValue2(inByte, 19);
     sl._gv5 = DataInfo.GetLongValue2(inByte, 21);
     sl._ov6 = DataInfo.GetLongValue2(inByte, 23);
     sl._gv6 = DataInfo.GetLongValue2(inByte, 25);
     sl._ov7 = DataInfo.GetLongValue2(inByte, 27);
     sl._gv7 = DataInfo.GetLongValue2(inByte, 29);
     sl._ov8 = DataInfo.GetLongValue2(inByte, 31);
     sl._gv8 = DataInfo.GetLongValue2(inByte, 33);
     return sl;
 }