コード例 #1
0
 /// <summary>
 /// 使用具体时标初始化报文
 /// </summary>
 /// <param name="begin">起始地址</param>
 /// <param name="end">终止地址</param>
 /// <param name="time">指定时段</param>
 public ReadAccountingITWithSpecificTimeAndAddressRange(byte begin, byte end, CP40Time2b time)
     : base(0)
 {
     BeginAddress = begin;
     EndAddress   = end;
     SpecificTime = time;
 }
コード例 #2
0
 /// <summary>
 /// 使用具体时标初始化报文
 /// </summary>
 /// <param name="beginAdd">起始地址</param>
 /// <param name="endAdd">终止地址</param>
 /// <param name="beginTime">指定时段</param>
 /// <param name="endTime">指定时段</param>
 public ReadAccountingITWithTimeRangeAndAddressRange(byte beginAdd, byte endAdd, CP40Time2b beginTime, CP40Time2b endTime)
     : base(0)
 {
     BeginAddress = beginAdd;
     EndAddress   = endAdd;
     BeginTime    = beginTime;
     EndTime      = endTime;
 }
コード例 #3
0
        /// <summary>
        /// 通过信息解析报文
        /// </summary>
        /// <param name="msg">信息体内容</param>
        /// <param name="startIndex">信息体首地址</param>
        public ReadAccountingITWithSpecificTime(byte[] msg, int startIndex)
            : base(msg, startIndex, true)
        {
            //最后一个isSequence强制标true,相当于不执行base,
            //因为base要解析信息对象地址,这里没有信息对象地址。。直接解析内容就好了

            SpecificTime = new CP40Time2b(msg, startIndex);
        }
コード例 #4
0
        /// <summary>
        /// 通过信息解析报文
        /// </summary>
        /// <param name="msg">信息体内容</param>
        /// <param name="startIndex">信息体首地址</param>
        public ReadSinglePointWithTimeRange(byte[] msg, int startIndex)
            : base(msg, startIndex, true)
        {
            //最后一个isSequence强制标true,相当于不执行base,
            //因为base要解析信息对象地址,这里没有信息对象地址。。直接解析内容就好了

            BeginTime = new CP40Time2b(msg, 0);
            EndTime   = new CP40Time2b(msg, 5);
        }
コード例 #5
0
 /// <summary>
 /// 通过信息解析报文
 /// </summary>
 /// <param name="msg">信息体内容</param>
 /// <param name="startIndex">信息体首地址</param>
 public ReadAccountingITWithSpecificTimeAndAddressRange(byte[] msg, int startIndex)
     : base(msg, startIndex, true)
 {
     //最后一个isSequence强制标true,相当于不执行base,
     //因为base要解析信息对象地址,这里没有信息对象地址。。直接解析内容就好了
     BeginAddress = msg[startIndex++];
     EndAddress   = msg[startIndex++];
     SpecificTime = new CP40Time2b(msg, startIndex++);
 }
コード例 #6
0
 /// <summary>
 /// 使用具体时标初始化报文
 /// </summary>
 /// <param name="beginAdd">起始地址</param>
 /// <param name="endAdd">终止地址</param>
 /// <param name="beginTime">指定时段</param>
 /// <param name="endTime">指定时段</param>
 public ReadPeriodAITWithTimeRangeAndAddressRange(byte beginAdd, byte endAdd, CP40Time2b beginTime, CP40Time2b endTime)
     : base(beginAdd, endAdd, beginTime, endTime)
 {
 }
コード例 #7
0
 /// <summary>
 /// 使用具体时标初始化报文
 /// </summary>
 /// <param name="begin">起始地址</param>
 /// <param name="end">终止地址</param>
 /// <param name="time">指定时段</param>
 public ReadPeriodAITWithSpecificTimeAndAddressRange(byte begin, byte end, CP40Time2b time)
     : base(begin, end, time)
 {
 }
コード例 #8
0
 /// <summary>
 /// 使用具体时标初始化报文
 /// </summary>
 /// <param name="time">指定时段</param>
 public ReadPeriodAITWithSpecificTime(CP40Time2b time)
     : base(time)
 {
 }
コード例 #9
0
 /// <summary>
 /// 使用开始、结束时间初始化报文
 /// </summary>
 /// <param name="begin">开始时间</param>
 /// <param name="end">结束时间</param>
 public ReadSinglePointWithTimeRange(CP40Time2b begin, CP40Time2b end)
     : base(0)
 {
     BeginTime = begin;
     EndTime   = end;
 }
コード例 #10
0
 /// <summary>
 /// 使用具体时标初始化报文
 /// </summary>
 /// <param name="time">指定时段</param>
 public ReadAccountingITWithSpecificTime(CP40Time2b time)
     : base(0)
 {
     SpecificTime = time;
 }
コード例 #11
0
 /// <summary>
 /// 使用具体时标初始化报文
 /// </summary>
 /// <param name="beginAdd">起始地址</param>
 /// <param name="endAdd">终止地址</param>
 /// <param name="beginTime">指定时段</param>
 /// <param name="endTime">指定时段</param>
 public ReadOperationalITWithTimeRangeAndAddressRange(byte beginAdd, byte endAdd, CP40Time2b beginTime, CP40Time2b endTime)
     : base(beginAdd, endAdd, beginTime, endTime)
 {
 }
コード例 #12
0
 /// <summary>
 /// 使用具体时标初始化报文
 /// </summary>
 /// <param name="begin">起始地址</param>
 /// <param name="end">终止地址</param>
 /// <param name="time">指定时段</param>
 public ReadOperationalITWithSpecificTimeAndAddressRange(byte begin, byte end, CP40Time2b time)
     : base(begin, end, time)
 {
 }
コード例 #13
0
 /// <summary>
 /// 使用具体时标初始化报文
 /// </summary>
 /// <param name="time">指定时段</param>
 public ReadOperationalITWithSpecificTime(CP40Time2b time)
     : base(time)
 {
 }