📄 rscommdata.h
字号:
typedef struct
{
unsigned int ComID;
unsigned char *Addr;
unsigned int Info;
}COMINFO;
const COMINFO ComInfo[] =
{
//************************************************************
// 电能数据
//************************************************************
// 正向有功
//------------------- 当 前 --------------------
0x9010, SM.CMon.KwhPp.Fee[0], 4 +RS_TP_Norm,
0x9011, SM.CMon.KwhPp.Fee[1], 4 +RS_TP_Norm,
0x9012, SM.CMon.KwhPp.Fee[2], 4 +RS_TP_Norm,
0x9013, SM.CMon.KwhPp.Fee[3], 4 +RS_TP_Norm,
0x9014, SM.CMon.KwhPp.Fee[4], 4 +RS_TP_Norm,
0x901F, SM.CMon.KwhPp.Fee[0], 4*5 +RS_TP_Norm,
//------------------- 上 月 --------------------
0x9410, SM.LMon.KwhPp.Fee[0], 4 +RS_TP_Norm,
0x9411, SM.LMon.KwhPp.Fee[1], 4 +RS_TP_Norm,
0x9412, SM.LMon.KwhPp.Fee[2], 4 +RS_TP_Norm,
0x9413, SM.LMon.KwhPp.Fee[3], 4 +RS_TP_Norm,
0x9414, SM.LMon.KwhPp.Fee[4], 4 +RS_TP_Norm,
0x941F, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_Norm,
//------------------- 上 上 月 --------------------
0x9810, SM.LMon.KwhPp.Fee[0], 4 +RS_TP_Norm,
0x9811, SM.LMon.KwhPp.Fee[1], 4 +RS_TP_Norm,
0x9812, SM.LMon.KwhPp.Fee[2], 4 +RS_TP_Norm,
0x9813, SM.LMon.KwhPp.Fee[3], 4 +RS_TP_Norm,
0x9814, SM.LMon.KwhPp.Fee[4], 4 +RS_TP_Norm,
0x981F, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_Norm,
// 反向累计电能
//0x9020, SM.CMon.RevEC, 4 +RS_TP_Norm,
// 历史数据
0xD120, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_LMon,
0xD121, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_LMon,
0xD122, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_LMon,
0xD123, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_LMon,
0xD124, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_LMon,
0xD125, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_LMon,
0xD126, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_LMon,
0xD127, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_LMon,
0xD128, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_LMon,
0xD129, SM.LMon.KwhPp.Fee[0], 4*5 +RS_TP_LMon,
// ************************************************************
// 电表配置数据
// ************************************************************
//0xB020, SM.Cfg.IRevTmr, 4 +RS_TP_Norm, // 最近一次反向起启时间
//0xB021, SM.Cfg.IRevAllTmr, 3 +RS_TP_Norm, // 反向累计总时间
//0xB210, SM.Cfg.ProgDT, 4 +RS_TP_Norm, // 最近一次编程时间
//0xB212, SM.Cfg.ProgTms, 2 +RS_TP_Norm, // 编程次数
// ************************************************************
// 其它参数
// ************************************************************
0xC010, &SM.ClkBcd.Day[0], 4 +RS_TP_Clk +RS_TP_wr, // 电表日期
0xC011, &SM.ClkBcd.Sec[0], 3 +RS_TP_Clk +RS_TP_wr, // 电表时间
0xC01F, &SM.ClkBcd.Sec[0], 7 +RS_TP_Clk +RS_TP_wr, // 自定义
0xC020, SM.Cfg.MetStatus, 1 +RS_TP_Norm +RS_TP_wr, // 电表状态
//0xC030, SM.Cfg.MetConst, 3 +RS_TP_Norm +RS_TP_wr, // 电表常数
0xC032, SM.Cfg.MetID, 6 +RS_TP_Norm +RS_TP_wr, // 电表号
//0xC033, SM.Cfg.CustID, 6 +RS_TP_Norm +RS_TP_wr, // 用户号
//0xC115, (unsigned char*)&SM.Cfg.LcdCtl.Reg, 3 +RS_TP_Norm +RS_TP_wr, // 显示控制
//0xC117, SM.Cfg.BillDay, 2 +RS_TP_Norm +RS_TP_wr, // 结算日
//0xC119, SM.CMon.Fee[0], 4 +RS_TP_Norm +RS_TP_wr, // 表清零(使用清零密码)
0xC212, SM.Cfg.Pswd[1], 4 +RS_TP_Norm +RS_TP_wr, // 密码
0xC33F, (unsigned char*)&SM.Cfg.TariList[0], 3*8 +RS_TP_Tariff +RS_TP_wr, // 费率表
//0xE010, SM.Cfg.UnCover.Tmr[0], 4 +RS_TP_Norm +RS_TP_wr, // 最近一次开盖时间
//0xE011, SM.Cfg.UnCover.Tmr[1], 4 +RS_TP_Norm +RS_TP_wr, // 最近上一次开盖时间
//0xE012, SM.Cfg.UnCover.Tms, 2 +RS_TP_Norm +RS_TP_wr, // 开盖次数
//************************************************************
// 继电器控制
//************************************************************
0xE431, (unsigned char *)0x200, 0,
0xE431, (unsigned char *)0x200, 0,
};
const int ComInfoNum = sizeof(ComInfo)/sizeof(COMINFO);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -