• 大小: 68KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-16
  • 语言: 其他
  • 标签:

资源简介

本人花了几个月做的单相电能表程序,已经在线上生关了,非常珍贵的资料。

资源截图

代码片段和文件信息

#include 
#include 
#include 

//------------------------------ *** - 命令解析 - *** ------------------------------//
void AvailabilityAddParse(void)
{
    unsigned char i;
    NullityFg=0; 
    switch(InceptBuf[8])
    {
         case 0x01 :
                    DataSaveSt=0;
                    switch(InceptBuf[11])
                    {
                         case 0x90:
                                    switch(InceptBuf[10])
                                    {
                                        case 0x10:  //读当前有功总电量 --- 指令通过 68 00 00 00 00 00 00 68 01 02 43 C3 D9 16                                                 
                                                    //HwTxd=0;
                                                    CmdPick(00ShowDataBuf4);
                                                    DataSend();                                                    
                                        break;
                                        case 0x1F:  //读当前有功总电量 --- 指令通过 68 00 00 00 00 00 00 68 01 02 43 C3 D9 16                                                 
                                                    //HwTxd=0;
                                                    CmdPick(00ShowDataBuf4);
                                                    DataSend();                                                    
                                        break;
                                        default:
                                                    NullityFg=1;
                                                    DataSend();               
                                        break;
                                    }
                         case 0xC0:
                                    switch(InceptBuf[10])
                                    {     
                                        case 0x30:  //读电表脉冲常数 --- 指令通过
                                                    //68 00 00 00 00 00 00 68 01 02 63 c3 29 16
                                                    CmdPick(0xa00x0503);
                                                    DataSend();
                                        break;  
                                        case 0x32:  //读电表地址
                                                    //68 AA AA AA AA AA AA 68 01 02 65 c3 27 16 --- 指令通过
                                                    CmdPick(00MeterAdd6);
                                                    //CmdPick(0xa00x1006);
                                                    DataSend();                                                 
                                        break;
                                        default:
                                                    NullityFg=1;
                                                    DataSend();
                                        break;
                                    }

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        848  2007-11-01 19:12  DDS485\bcdhex.c

     文件       2557  2007-11-28 04:48  DDS485\datasend.c

     文件       1693  2008-01-06 17:05  DDS485\DDS485.cfg

     文件       6142  2008-01-06 17:05  DDS485\DDS485.mpj

     文件       4293  2007-12-19 15:07  DDS485\define.h

     文件        596  2007-11-24 17:35  DDS485\delay.c

     文件       1883  2007-12-19 15:07  DDS485\global.c

     文件       3314  2007-12-05 14:25  DDS485\iic.c

     文件       7417  2007-12-19 20:36  DDS485\infrarereceive.c

     文件       6522  2007-11-01 19:12  DDS485\int.c

     文件          0  2007-11-24 17:35  DDS485\interrupt.c

     文件       1449  2007-11-01 19:12  DDS485\led.c

     文件       6412  2007-12-24 16:29  DDS485\main.c

     文件       3881  2007-11-28 22:13  DDS485\pulse.c

     文件       4827  2007-11-24 17:35  DDS485\reg932.h

     文件        157  2007-11-24 17:35  DDS485\wdt.c

     目录          0  2008-01-03 09:57  DDS485

     文件      10135  2008-01-03 09:57  DDS485\addparse.c

     文件       3901  2008-01-03 09:57  DDS485\AddParse.OBJ

     文件       1147  2007-11-28 04:20  DDS485\cmdparse.c

     文件       1454  2008-01-03 09:57  DDS485\CmdParse.OBJ

     文件       1152  2007-12-21 21:59  DDS485\datachange.c

     文件       1730  2008-01-03 09:57  DDS485\DataChange.OBJ

     文件       1824  2007-11-28 03:09  DDS485\datacheck.c

     文件       2306  2008-01-03 09:57  DDS485\DataCheck.OBJ

     文件       1889  2007-11-28 05:02  DDS485\dataclr.c

     文件       2714  2008-01-03 09:57  DDS485\DataClr.OBJ

     文件        786  2007-11-24 17:35  DDS485\datapickup.c

     文件       1373  2008-01-03 09:57  DDS485\DataPickup.OBJ

     文件       1539  2007-11-28 21:43  DDS485\datasave.c

............此处省略26个文件信息

评论

共有 条评论

相关资源