Example #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;
 }
Example #2
0
 public DataItem_A016_ASK(byte ser, ST1 st1, ST2 st2) : base(ser)
 {
     this.ST1 = st1;
     this.ST2 = st2;
 }
Example #3
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;
        }
Example #4
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;
 }