?? rscommdata.h
字號:
typedef struct
{
unsigned int ComID;
unsigned char *Addr;
unsigned int Info;
}COMINFO;
const COMINFO ComInfo[] =
{
//************************************************************
// 電能數(shù)據(jù)
//************************************************************
// 正向有功
//------------------- 當(dāng) 前 --------------------
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,
// 反向累計(jì)電能
//0x9020, SM.CMon.RevEC, 4 +RS_TP_Norm,
// 歷史數(shù)據(jù)
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,
// ************************************************************
// 電表配置數(shù)據(jù)
// ************************************************************
//0xB020, SM.Cfg.IRevTmr, 4 +RS_TP_Norm, // 最近一次反向起啟時(shí)間
//0xB021, SM.Cfg.IRevAllTmr, 3 +RS_TP_Norm, // 反向累計(jì)總時(shí)間
//0xB210, SM.Cfg.ProgDT, 4 +RS_TP_Norm, // 最近一次編程時(shí)間
//0xB212, SM.Cfg.ProgTms, 2 +RS_TP_Norm, // 編程次數(shù)
// ************************************************************
// 其它參數(shù)
// ************************************************************
0xC010, &SM.ClkBcd.Day[0], 4 +RS_TP_Clk +RS_TP_wr, // 電表日期
0xC011, &SM.ClkBcd.Sec[0], 3 +RS_TP_Clk +RS_TP_wr, // 電表時(shí)間
0xC01F, &SM.ClkBcd.Sec[0], 7 +RS_TP_Clk +RS_TP_wr, // 自定義
0xC020, SM.Cfg.MetStatus, 1 +RS_TP_Norm +RS_TP_wr, // 電表狀態(tài)
//0xC030, SM.Cfg.MetConst, 3 +RS_TP_Norm +RS_TP_wr, // 電表常數(shù)
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, // 結(jié)算日
//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, // 費(fèi)率表
//0xE010, SM.Cfg.UnCover.Tmr[0], 4 +RS_TP_Norm +RS_TP_wr, // 最近一次開蓋時(shí)間
//0xE011, SM.Cfg.UnCover.Tmr[1], 4 +RS_TP_Norm +RS_TP_wr, // 最近上一次開蓋時(shí)間
//0xE012, SM.Cfg.UnCover.Tms, 2 +RS_TP_Norm +RS_TP_wr, // 開蓋次數(shù)
//************************************************************
// 繼電器控制
//************************************************************
0xE431, (unsigned char *)0x200, 0,
0xE431, (unsigned char *)0x200, 0,
};
const int ComInfoNum = sizeof(ComInfo)/sizeof(COMINFO);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -