コード例 #1
0
ファイル: xd100.cs プロジェクト: wwkkww1983/bt
 //解析室外温度值
 public static xd100x.outtemp Read_outtemp(byte[] inByte)
 {
     xd100x.outtemp op = new xd100x.outtemp();
     op._outtemp = DataInfo.GetFloatValue(inByte, 8);
     return(op);
 }
コード例 #2
0
 //设置室外温度值
 public static byte[] Set_outtemp(byte address, xd100x.outtemp ot)
 {
     int[] buffer = { Convert.ToInt16(ot._outtemp * 10) };
     return(DataInfo.ModbusSetData(address, 0x10, 207, buffer));
 }
コード例 #3
0
ファイル: xd100.cs プロジェクト: wwkkww1983/bt
 //设置室外温度设置
 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));
 }