示例#1
0
 //切断报警启动控制开关标志,长期未与服务器通讯报警时间,燃气漏泄切断报警时间,燃气流量过载切断报警时间,异常大流量值,
 //异常大流量切断报警时间,异常微小流量切断报警时间,持续流量切断报警时间,长期未使用切断报警时间
 public DataItem_C103_Answer(byte ser, ST1 st1, ST2 st2)
 {
     this.dataUnits    = new byte[0x06];
     this.dataUnits[0] = 0xC1;
     this.dataUnits[1] = 0x03;
     this.dataUnits[2] = ser;
     this.ST1          = st1;
     this.ST2          = st2;
 }
示例#2
0
 public DataItem_A010_Answer(byte ser, ST1 st1)
 {
     this.dataUnits    = new byte[5];
     this.dataUnits[0] = 0xA0;
     this.dataUnits[1] = 0x10;
     /*数据标识DI,序号SER,阶梯气价控制标志(CT),价格1,用量1,价格2,用量2,价格3,用量3,价格4,用量4,价格5,启用日期*/
     this.dataUnits[2] = ser;
     this.ST1          = st1;
 }
示例#3
0
 public DataItem_A017_ASK(byte ser, ST1 st1)
     : base(ser)
 {
     this.ST1 = st1;
 }
示例#4
0
 public DataItem_A016_ASK(byte ser, ST1 st1, ST2 st2) : base(ser)
 {
     this.ST1 = st1;
     this.ST2 = st2;
 }
示例#5
0
        public DataItem_901F_ANSWER(byte ser, DateTime readDate, decimal ljGas, decimal ljMoney, decimal syMoney, decimal lastLJGas, ST1 st1, ST2 st2)
        {
            /*数据标识DI,序号SER,实时时间,当前累计用量(气量),当前累计用量(金额),当前剩余气量(气量/金额),结算日累计用量(气量/金额),状态ST1、ST2*/
            this.dataUnits = new byte[0x1d];

            this.dataUnits[0] = 0x90;
            this.dataUnits[1] = 0x1f;
            this.dataUnits[2] = ser;
            this.ReadDate     = readDate;
            this.LJGas        = ljGas;
            this.LJMoney      = ljMoney;
            this.SYMoney      = syMoney;
            this.LastLJGas    = lastLJGas;
            this.ST1          = st1;
            this.ST2          = st2;
        }
示例#6
0
 public DataItem_C001(byte ser, DateTime readDate, decimal ljGas, decimal ljMoney, decimal syMoney, decimal lastLJGas, ST1 st1, ST2 st2)
 {
     //数据标识DI(2),序号SER(1),抄表时间(7),当前累计用量(气量)(4),当前累计用量(金额)(4),当前剩余用量(气量/金额)(4),最后一次结算日累计用量(气量/金额)(4),结算日(1),状态ST1(2)、ST2(1)
     this.dataUnits    = new byte[0x1D];
     this.dataUnits[0] = 0xc0;
     this.dataUnits[1] = 0x01;
     this.dataUnits[2] = ser;
     this.ReadDate     = readDate;
     this.LJGas        = ljGas;
     this.LJMoney      = ljMoney;
     this.SYMoney      = syMoney;
     this.LastLJGas    = lastLJGas;
     this.ST1          = st1;
     this.ST2          = st2;
 }