VERSION = "1.0.3" DATE = "2022.02.14" reg_config = {} reg_config.version = VERSION reg_config.date = DATE ------------------------------------------------------------------ ---------------------------- 总控相关 ------------------------- ------------------------------------------------------------------ ------------------------------------------------------------------ ---------------------------- 扫描寄存器配置表描述 ------------------------- ------------------------------------------------------------------ ----! desc 说明信息 ----! start 起始地址 ----! size 读取长度,可以通过设置stop,自动算出size ----! stop 结束地址(含此第地址) ----! period 采样周期,单位mS ----! update 更新CACHE周期,单位mS ------------------------------------------------------------------ reg_config.BAU_register_table = { { desc = "SUMMARY_STATE", start = 0x0040, stop = 0x007A, period = 500, }, { desc = "CFG_PARA", start = 0x0000, stop = 0x0012, period = 1000, }, { desc = "CRITICAL_STATE", start = 0x0080, stop = 0x00a8, period = 1150, }, { desc = "CRTL_PARA", start = 0x00c0, stop = 0x00c8, period = 1250, }, { desc = "NETWORK_CONFIG", start = 0x0200, stop = 0x0297, period = 1200, }, { desc = "RACK_INFO", start = 0x0480, stop = 0x04e1, period = 1350, }, { desc = "RACK_CTRL", start = 0x0400, stop = 0x045f, period = 1300, } } ------------------------------------------------------------------ ---------------------------- 业务触发配置表描述 ------------------------- ------------------------------------------------------------------ ----! identifier 服务标识,通过这个标识可以合并不同的采样包 ----! read_write 描述操作的读写 ----! frames 采集数据类型:alarm/info,用于标记数据记录到不同的cache ----! regs.reginfo 寄存器名称(或名称的数组),寄存器地址,寄存器格式化符号,数值缩放比例 ----! regs.batch 批量采样个数,批量采样自累加值,格式化输出:字符串/数组 ----! regs.map 数值缩放原始值最小,原始值最大,输出值最小,输出值最大 ----! regs.level 报警等级(或者等级的数组) ------------------------------------------------------------------ reg_config.BAU_point_table = { { identifier = "SystemInfoRequest", read_write = "R", frames = {"basic"}, regs = { { reginfo = {"ChargeSta",0x0044,">S",nil,"{unknow=0,left=1,right=2}"}, }, { reginfo = {"TotalCurrL",0x0045,">s"}, }, { reginfo = {"TotalCurrH",0x007A,">s"}, }, { reginfo = {"TotalCap",0x0046,">S"}, }, { reginfo = {"Soc",0x0047,">S",0.1}, }, { reginfo = {"Status",0x0048,">S",nil,"{Normal=0,StopCharge=1,StopDischarge=2,Standby=3,Stop=4}"}, }, { reginfo = {"TotalVol",0x0049,">S",0.1}, }, { reginfo = {"Soh",0x0050,">S",0.1}, }, { reginfo = {"Exception",0x00A8,">S",nil}, --修改 }, { reginfo = {"TotalRacks",0x04c1,">S"}, }, { reginfo = {"ConnectRacks",0x04c0,">S"}, }, { reginfo = {"ConnectRacksState",0x04c2,">S"}, batch = {32,1} }, { reginfo = {{"Comm_PCS",nil,"Comm_EMS"},0x0081,">S"} }, } }, { identifier = "SystemInfoRequest", read_write = "R", frames = {"sidebar"}, regs = { { reginfo = {"SystemInsulation",0x004A,">S"}, }, { reginfo = {"ChargeCap",0x004B,">S"}, }, { reginfo = {"DischargeCap",0x004C,">S"}, }, { reginfo = {"SingleChgCumCap",0x0065,">S"}, }, { reginfo = {"SingleDsgCumCap",0x0066,">S"}, }, { reginfo = {"TotalChgCumCap",0x0061,">I"},--累计充电量 }, { reginfo = {"TotalDsgCumCap",0x0063,">I"},--累计放电量 }, } }, { identifier = "SystemInfoRequest", read_write = "R", frames = {"other"}, regs = { { reginfo = {"AveVol",0x0070,">S",1},--堆平均电压 }, { reginfo = {"MaxVol",0x0054,">S",1}, }, { reginfo = {"MaxTemp",0x005C,">s",0.1}, }, { reginfo = {"AveTemp",0x006F,">s",0.1},--堆平均温度 }, { reginfo = {"MaxVolDepend",'format("%02d-%02d-%02d",&0x0051,&0x0052,&0x0053)'}, }, { reginfo = {"MaxTempDepend",'format("%02d-%02d-%02d",&0x0059,&0x005A,&0x005B)'}, }, { reginfo = {"ChgLimit",0x004E,">S",0.001}, }, { reginfo = {"MinVol",0x0058,">S",1}, }, { reginfo = {"MinTemp",0x0060,">s",0.1}, }, { reginfo = {"DischgLimit",0x004F,">S",0.001}, }, { reginfo = {"MinVolDepend",'format("%02d-%02d-%02d",&0x0055,&0x0056,&0x0057)'}, }, { reginfo = {"MinTempDepend",'format("%02d-%02d-%02d",&0x005D,&0x005E,&0x005F)'}, }, } }, { identifier = "RealAlarmConverge", read_write = "R", frames = {"bank"}, regs = { { level = 1, reginfo = { { "P009B.0","P009B.1", "P009B.2","P009B.3", "P009B.4","P009B.5", "P009B.6", },0x009B,">S"} } }, }, { identifier = "RealAlarmConverge", read_write = "R", frames = {"rack"}, regs = { { level = 3, reginfo = { { "P009C.0","P009C.1", "P009C.2","P009C.3", "P009C.4","P009C.5", "P009C.6","P009C.7", "P009C.8","P009C.9", "P009C.10","P009C.11", "P009C.12", },0x009C,">S"} }, { level = 2, reginfo = { { "P009D.0","P009D.1", "P009D.2","P009D.3", "P009D.4","P009D.5", "P009D.6","P009D.7", "P009D.8","P009D.9", "P009D.10","P009D.11", "P009D.12", },0x009D,">S"} }, { level = 1, reginfo = { { "P009E.0","P009E.1", "P009E.2","P009E.3", "P009E.4","P009E.5", "P009E.6","P009E.7", "P009E.8","P009E.9", "P009E.10","P009E.11", "P009E.12", },0x009E,">S"} }, } }, { identifier = "SystemAlarmRequest", read_write = "R", frames = {"alram"}, regs = { { level = 1, reginfo = { { "P009B.0","P009B.1", "P009B.2","P009B.3", "P009B.4","P009B.5", "P009B.6", },0x009B,">S"} } } }, -- down zgx add master { identifier = "ControlConnectRequest", read_write = "R", frames = {"basic"}, regs = { { reginfo = {"P0098",0x0098,">S",nil,"{NotStart=0,Start=1,Success=2,Stop=3}"}, --一键并网状态 }, { reginfo ={"P0003",0x0003,">S"} --总控最小并网簇数 }, } }, { identifier = "ControlConnectRequest", read_write = "R", frames = {"status"}, regs = { { reginfo = {"P0480",0x0480,">S"},--错误信息 batch = {32,1} }, { reginfo = {"P04C2",0x04C2,">S"},--并网状态 batch = {32,1} }, { reginfo = {"P0400",0x0400,">S"}, --并网控制 batch = {32,1} }, } }, { identifier = "ControlSet", read_write = "W", regs = { { reginfo = {"CleanAlarmReg",0x00C0,">S"}, --清除报警 }, { reginfo = {"ConnectCount",0x0003,">S"}, --最小并网簇数 }, { reginfo = {"AutoConnectNet",0x00c3,">S"}, --自动并网总开关 } } }, { identifier = "ControlUseSet", read_write = "W", regs = { { reginfo = {"P0400",0x0400,">S"}, --并网控制 }, { reginfo = {"P0401",0x0401,">S"}, }, { reginfo = {"P0402",0x0402,">S"}, }, { reginfo = {"P0403",0x0403,">S"}, }, { reginfo = {"P0404",0x0404,">S"}, }, { reginfo = {"P0405",0x0405,">S"}, }, { reginfo = {"P0406",0x0406,">S"}, }, { reginfo = {"P0407",0x0407,">S"}, }, { reginfo = {"P0408",0x0408,">S"}, }, { reginfo = {"P0409",0x0409,">S"}, }, { reginfo = {"P040A",0x040A,">S"}, }, { reginfo = {"P040B",0x040B,">S"}, }, { reginfo = {"P040C",0x040C,">S"}, }, { reginfo = {"P040D",0x040D,">S"}, }, { reginfo = {"P040E",0x040E,">S"}, }, { reginfo = {"P040F",0x040F,">S"}, }, { reginfo = {"P0410",0x0410,">S"}, }, { reginfo = {"P0411",0x0411,">S"}, }, { reginfo = {"P0412",0x0412,">S"}, }, { reginfo = {"P0413",0x0413,">S"}, }, { reginfo = {"P0414",0x0414,">S"}, }, { reginfo = {"P0415",0x0415,">S"}, }, { reginfo = {"P0416",0x0416,">S"}, }, { reginfo = {"P0417",0x0417,">S"}, }, { reginfo = {"P0418",0x0418,">S"}, }, { reginfo = {"P0419",0x0419,">S"}, }, { reginfo = {"P041F",0x041F,">S"}, } } }, { identifier = "NetConfig", read_write = "R", frames = {"netconfig"}, regs = { { reginfo = {"P0200",0x0200,">S"}, --本地ip地址 batch = {4,1} }, { reginfo = {"P0204",0x0204,">S"}, --网关ip地址 batch = {4,1} }, { reginfo = {"P0208",0x0208,">S"}, --子网掩码 batch = {4,1} }, { reginfo = {"P020C",0x020C,">S"}, --目标ip地址 batch = {4,1} }, { reginfo = {"P0210",0x0210,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0211",0X0211,">S"}, --目标端口 }, { reginfo = {"P0212",0X0212,">S"}, --本地端口 }, { reginfo = {"P0214",0x0214,">S"}, --目标ip地址NET2 batch = {4,1} }, { reginfo = {"P0219",0x0219,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P021A",0X021A,">S"}, --目标端口 }, { reginfo = {"P021B",0X021B,">S"}, --本地端口 }, { reginfo = {"P021C",0x021C,">S"}, --目标ip地址NET3 batch = {4,1} }, { reginfo = {"P0220",0x0220,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0221",0X0221,">S"}, --目标端口 }, { reginfo = {"P0222",0X0222,">S"}, --本地端口 }, { reginfo = {"P0224",0x0224,">S"}, --目标ip地址NET4 batch = {4,1} }, { reginfo = {"P0228",0x0228,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0229",0X0229,">S"}, --目标端口 }, { reginfo = {"P022A",0X022A,">S"}, --本地端口 }, { reginfo = {"P022C",0x022C,">S"}, --目标ip地址NET5 batch = {4,1} }, { reginfo = {"P0230",0x0230,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0231",0X0231,">S"}, --目标端口 }, { reginfo = {"P0232",0X0232,">S"}, --本地端口 }, { reginfo = {"P0234",0x0234,">S"}, --目标ip地址NET6 batch = {4,1} }, { reginfo = {"P0238",0x0238,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0239",0X0239,">S"}, --目标端口 }, { reginfo = {"P023A",0X023A,">S"}, --本地端口 }, { reginfo = {"P023C",0x023C,">S"}, --目标ip地址NET7 batch = {4,1} }, { reginfo = {"P0240-",0x0240,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0241",0X0241,">S"}, --目标端口 }, { reginfo = {"P0242",0X0242,">S"}, --本地端口 }, { reginfo = {"P0244",0x0244,">S"}, --目标ip地址NET8 batch = {4,1} }, { reginfo = {"P0248-",0x0248,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0249",0X0249,">S"}, --目标端口 }, { reginfo = {"P024A",0X024A,">S"}, --本地端口 }, { reginfo = {"P024C",0x024C,">S"}, --本地ip地址1 batch = {4,1} }, { reginfo = {"P0250",0x0250,">S"}, --网关ip地址1 batch = {4,1} }, { reginfo = {"P0254",0x0254,">S"}, --子网掩码1 batch = {4,1} }, { reginfo = {"P0258",0x0258,">S"}, --目标ip地址1 batch = {4,1} }, { reginfo = {"P025C",0x025C,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P025D",0X025D,">S"}, --目标端口1 }, { reginfo = {"P025E",0X025E,">S"}, --本地端口1 }, } }, { identifier = "NetConfigSet", read_write = "W", regs = { { reginfo = {"P0200",0x0200,">S4"}, --本地ip地址 batch = {4,1} }, { reginfo = {"P0204",0x0204,">S4"}, --网关ip地址 batch = {4,1} }, { reginfo = {"P0208",0x0208,">S4"}, --子网掩码 batch = {4,1} }, { reginfo = {"P020C",0x020C,">S4"}, --目标ip地址 batch = {4,1} }, { reginfo = {"P0210",0x0210,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0211",0X0211,">S"}, --目标端口 }, { reginfo = {"P0212",0X0212,">S"}, --本地端口 }, { reginfo = {"P0214",0x0214,">S"}, --目标ip地址NET2 batch = {4,1} }, { reginfo = {"P0219",0x0219,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P021A",0X021A,">S"}, --目标端口 }, { reginfo = {"P021B",0X021B,">S"}, --本地端口 }, { reginfo = {"P021C",0x021C,">S4"}, --目标ip地址NET3 batch = {4,1} }, { reginfo = {"P0220",0x0220,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0221",0X0221,">S"}, --目标端口 }, { reginfo = {"P0222",0X0222,">S"}, --本地端口 }, { reginfo = {"P0224",0x0224,">S4"}, --目标ip地址NET4 batch = {4,1} }, { reginfo = {"P0228",0x0228,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0229",0X0229,">S"}, --目标端口 }, { reginfo = {"P022A",0X022A,">S"}, --本地端口 }, { reginfo = {"P022C",0x022C,">S"}, --目标ip地址NET5 batch = {4,1} }, { reginfo = {"P0230",0x0230,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0231",0X0231,">S"}, --目标端口 }, { reginfo = {"P0232",0X0232,">S"}, --本地端口 }, { reginfo = {"P0234",0x0234,">S"}, --目标ip地址NET6 batch = {4,1} }, { reginfo = {"P0238",0x0238,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0239",0X0239,">S"}, --目标端口 }, { reginfo = {"P023A",0X023A,">S"}, --本地端口 }, { reginfo = {"P023C",0x023C,">S"}, --目标ip地址NET7 batch = {4,1} }, { reginfo = {"P0240-",0x0240,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0241",0X0241,">S"}, --目标端口 }, { reginfo = {"P0242",0X0242,">S"}, --本地端口 }, { reginfo = {"P0244",0x0244,">S"}, --目标ip地址NET8 batch = {4,1} }, { reginfo = {"P0248-",0x0248,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P0249",0X0249,">S"}, --目标端口 }, { reginfo = {"P024A",0X024A,">S"}, --本地端口 }, { reginfo = {"P024C",0x024C,">S4"}, --本地ip地址1 batch = {4,1} }, { reginfo = {"P0250",0x0250,">S4"}, --网关ip地址1 batch = {4,1} }, { reginfo = {"P0254",0x0254,">S4"}, --子网掩码1 batch = {4,1} }, { reginfo = {"P0258",0x0258,">S4"}, --目标ip地址1 batch = {4,1} }, { reginfo = {"P025C",0x025C,">S"}, --0->TCP服务;1->tcp 客户端 2:udp }, { reginfo = {"P025D",0X025D,">S"}, --目标端口1 }, { reginfo = {"P025E",0X025E,">S"}, --本地端口1 }, } }, { identifier = "ControlEnableRequest", read_write = "R", frames = {"StepInReqStatus"}, regs = { {reginfo = {"Rack1","bit.band(bit.rshift(&0x008D,0),1)"}}, {reginfo = {"Rack2","bit.band(bit.rshift(&0x008D,1),1)"}}, {reginfo = {"Rack3","bit.band(bit.rshift(&0x008D,2),1)"}}, {reginfo = {"Rack4","bit.band(bit.rshift(&0x008D,3),1)"}}, {reginfo = {"Rack5","bit.band(bit.rshift(&0x008D,4),1)"}}, {reginfo = {"Rack6","bit.band(bit.rshift(&0x008D,5),1)"}}, {reginfo = {"Rack7","bit.band(bit.rshift(&0x008D,6),1)"}}, {reginfo = {"Rack8","bit.band(bit.rshift(&0x008D,7),1)"}}, {reginfo = {"Rack9","bit.band(bit.rshift(&0x008D,8),1)"}}, {reginfo = {"Rack10","bit.band(bit.rshift(&0x008D,9),1)"}}, {reginfo = {"Rack11","bit.band(bit.rshift(&0x008D,10),1)"}}, {reginfo = {"Rack12","bit.band(bit.rshift(&0x008D,11),1)"}}, {reginfo = {"Rack13","bit.band(bit.rshift(&0x008D,12),1)"}}, {reginfo = {"Rack14","bit.band(bit.rshift(&0x008D,13),1)"}}, {reginfo = {"Rack15","bit.band(bit.rshift(&0x008D,14),1)"}}, {reginfo = {"Rack16","bit.band(bit.rshift(&0x008D,15),1)"}}, {reginfo = {"Rack17","bit.band(bit.rshift(&0x008C,0),1)"}}, {reginfo = {"Rack18","bit.band(bit.rshift(&0x008C,1),1)"}}, {reginfo = {"Rack19","bit.band(bit.rshift(&0x008C,2),1)"}}, {reginfo = {"Rack20","bit.band(bit.rshift(&0x008C,3),1)"}}, {reginfo = {"Rack21","bit.band(bit.rshift(&0x008C,4),1)"}}, {reginfo = {"Rack22","bit.band(bit.rshift(&0x008C,5),1)"}}, {reginfo = {"Rack23","bit.band(bit.rshift(&0x008C,6),1)"}}, {reginfo = {"Rack24","bit.band(bit.rshift(&0x008C,7),1)"}}, {reginfo = {"Rack25","bit.band(bit.rshift(&0x008C,8),1)"}}, {reginfo = {"Rack26","bit.band(bit.rshift(&0x008C,9),1)"}}, {reginfo = {"Rack27","bit.band(bit.rshift(&0x008C,10),1)"}}, {reginfo = {"Rack28","bit.band(bit.rshift(&0x008C,11),1)"}}, {reginfo = {"Rack29","bit.band(bit.rshift(&0x008C,12),1)"}}, {reginfo = {"Rack30","bit.band(bit.rshift(&0x008C,13),1)"}}, {reginfo = {"Rack31","bit.band(bit.rshift(&0x008C,14),1)"}}, {reginfo = {"Rack32","bit.band(bit.rshift(&0x008C,15),1)"}} } }, { identifier = "ControlEnableRequest", read_write = "R", frames = {"QuitOutReqStatus"}, regs = { {reginfo = {"Rack1","bit.band(bit.rshift(&0x008F,0),1)"}}, {reginfo = {"Rack2","bit.band(bit.rshift(&0x008F,1),1)"}}, {reginfo = {"Rack3","bit.band(bit.rshift(&0x008F,2),1)"}}, {reginfo = {"Rack4","bit.band(bit.rshift(&0x008F,3),1)"}}, {reginfo = {"Rack5","bit.band(bit.rshift(&0x008F,4),1)"}}, {reginfo = {"Rack6","bit.band(bit.rshift(&0x008F,5),1)"}}, {reginfo = {"Rack7","bit.band(bit.rshift(&0x008F,6),1)"}}, {reginfo = {"Rack8","bit.band(bit.rshift(&0x008F,7),1)"}}, {reginfo = {"Rack9","bit.band(bit.rshift(&0x008F,8),1)"}}, {reginfo = {"Rack10","bit.band(bit.rshift(&0x008F,9),1)"}}, {reginfo = {"Rack11","bit.band(bit.rshift(&0x008F,10),1)"}}, {reginfo = {"Rack12","bit.band(bit.rshift(&0x008F,11),1)"}}, {reginfo = {"Rack13","bit.band(bit.rshift(&0x008F,12),1)"}}, {reginfo = {"Rack14","bit.band(bit.rshift(&0x008F,13),1)"}}, {reginfo = {"Rack15","bit.band(bit.rshift(&0x008F,14),1)"}}, {reginfo = {"Rack16","bit.band(bit.rshift(&0x008F,15),1)"}}, {reginfo = {"Rack17","bit.band(bit.rshift(&0x008E,0),1)"}}, {reginfo = {"Rack18","bit.band(bit.rshift(&0x008E,1),1)"}}, {reginfo = {"Rack19","bit.band(bit.rshift(&0x008E,2),1)"}}, {reginfo = {"Rack20","bit.band(bit.rshift(&0x008E,3),1)"}}, {reginfo = {"Rack21","bit.band(bit.rshift(&0x008E,4),1)"}}, {reginfo = {"Rack22","bit.band(bit.rshift(&0x008E,5),1)"}}, {reginfo = {"Rack23","bit.band(bit.rshift(&0x008E,6),1)"}}, {reginfo = {"Rack24","bit.band(bit.rshift(&0x008E,7),1)"}}, {reginfo = {"Rack25","bit.band(bit.rshift(&0x008E,8),1)"}}, {reginfo = {"Rack26","bit.band(bit.rshift(&0x008E,9),1)"}}, {reginfo = {"Rack27","bit.band(bit.rshift(&0x008E,10),1)"}}, {reginfo = {"Rack28","bit.band(bit.rshift(&0x008E,11),1)"}}, {reginfo = {"Rack29","bit.band(bit.rshift(&0x008E,12),1)"}}, {reginfo = {"Rack30","bit.band(bit.rshift(&0x008E,13),1)"}}, {reginfo = {"Rack31","bit.band(bit.rshift(&0x008E,14),1)"}}, {reginfo = {"Rack32","bit.band(bit.rshift(&0x008E,15),1)"}} } }, { identifier = "ControlEnableRequest", read_write = "R", frames = {"ActualStatus"}, regs = { {reginfo = {"Rack1","bit.band(bit.rshift(&0x0097,0),1)"}}, {reginfo = {"Rack2","bit.band(bit.rshift(&0x0097,1),1)"}}, {reginfo = {"Rack3","bit.band(bit.rshift(&0x0097,2),1)"}}, {reginfo = {"Rack4","bit.band(bit.rshift(&0x0097,3),1)"}}, {reginfo = {"Rack5","bit.band(bit.rshift(&0x0097,4),1)"}}, {reginfo = {"Rack6","bit.band(bit.rshift(&0x0097,5),1)"}}, {reginfo = {"Rack7","bit.band(bit.rshift(&0x0097,6),1)"}}, {reginfo = {"Rack8","bit.band(bit.rshift(&0x0097,7),1)"}}, {reginfo = {"Rack9","bit.band(bit.rshift(&0x0097,8),1)"}}, {reginfo = {"Rack10","bit.band(bit.rshift(&0x0097,9),1)"}}, {reginfo = {"Rack11","bit.band(bit.rshift(&0x0097,10),1)"}}, {reginfo = {"Rack12","bit.band(bit.rshift(&0x0097,11),1)"}}, {reginfo = {"Rack13","bit.band(bit.rshift(&0x0097,12),1)"}}, {reginfo = {"Rack14","bit.band(bit.rshift(&0x0097,13),1)"}}, {reginfo = {"Rack15","bit.band(bit.rshift(&0x0097,14),1)"}}, {reginfo = {"Rack16","bit.band(bit.rshift(&0x0097,15),1)"}}, {reginfo = {"Rack17","bit.band(bit.rshift(&0x0096,0),1)"}}, {reginfo = {"Rack18","bit.band(bit.rshift(&0x0096,1),1)"}}, {reginfo = {"Rack19","bit.band(bit.rshift(&0x0096,2),1)"}}, {reginfo = {"Rack20","bit.band(bit.rshift(&0x0096,3),1)"}}, {reginfo = {"Rack21","bit.band(bit.rshift(&0x0096,4),1)"}}, {reginfo = {"Rack22","bit.band(bit.rshift(&0x0096,5),1)"}}, {reginfo = {"Rack23","bit.band(bit.rshift(&0x0096,6),1)"}}, {reginfo = {"Rack24","bit.band(bit.rshift(&0x0096,7),1)"}}, {reginfo = {"Rack25","bit.band(bit.rshift(&0x0096,8),1)"}}, {reginfo = {"Rack26","bit.band(bit.rshift(&0x0096,9),1)"}}, {reginfo = {"Rack27","bit.band(bit.rshift(&0x0096,10),1)"}}, {reginfo = {"Rack28","bit.band(bit.rshift(&0x0096,11),1)"}}, {reginfo = {"Rack29","bit.band(bit.rshift(&0x0096,12),1)"}}, {reginfo = {"Rack30","bit.band(bit.rshift(&0x0096,13),1)"}}, {reginfo = {"Rack31","bit.band(bit.rshift(&0x0096,14),1)"}}, {reginfo = {"Rack32","bit.band(bit.rshift(&0x0096,15),1)"}} } }, { identifier = "StepInSet", read_write = "W", regs = { { reginfo = {"Rack1",0x0420,">S"}, }, { reginfo = {"Rack2",0x0421,">S"}, }, { reginfo = {"Rack3",0x0422,">S"}, }, { reginfo = {"Rack3",0x0423,">S"}, }, { reginfo = {"Rack5",0x0424,">S"}, }, { reginfo = {"Rack6",0x0425,">S"}, }, { reginfo = {"Rack7",0x0426,">S"}, }, { reginfo = {"Rack8",0x0427,">S"}, }, { reginfo = {"Rack9",0x0428,">S"}, }, { reginfo = {"Rack10",0x0429,">S"}, }, { reginfo = {"Rack11",0x042A,">S"}, }, { reginfo = {"Rack12",0x042B,">S"}, }, { reginfo = {"Rack13",0x042C,">S"}, }, { reginfo = {"Rack14",0x042D,">S"}, }, { reginfo = {"Rack15",0x042E,">S"}, }, { reginfo = {"Rack16",0x042F,">S"}, }, { reginfo = {"Rack17",0x0430,">S"}, }, { reginfo = {"Rack18",0x0431,">S"}, }, { reginfo = {"Rack19",0x0432,">S"}, }, { reginfo = {"Rack20",0x0433,">S"}, }, { reginfo = {"Rack21",0x0434,">S"}, }, { reginfo = {"Rack22",0x0435,">S"}, }, { reginfo = {"Rack23",0x0436,">S"}, }, { reginfo = {"Rack24",0x0437,">S"}, }, { reginfo = {"Rack25",0x0438,">S"}, }, { reginfo = {"Rack26",0x0439,">S"}, }, { reginfo = {"Rack27",0x043A,">S"}, }, { reginfo = {"Rack28",0x043B,">S"}, }, { reginfo = {"Rack29",0x043C,">S"}, }, { reginfo = {"Rack30",0x043D,">S"}, }, { reginfo = {"Rack31",0x043E,">S"}, }, { reginfo = {"Rack32",0x043F,">S"}, }, } }, { identifier = "QuitOutSet", read_write = "W", regs = { { reginfo = {"Rack1",0x0440,">S"}, }, { reginfo = {"Rack2",0x0441,">S"}, }, { reginfo = {"Rack3",0x0442,">S"}, }, { reginfo = {"Rack3",0x0443,">S"}, }, { reginfo = {"Rack5",0x0444,">S"}, }, { reginfo = {"Rack6",0x0445,">S"}, }, { reginfo = {"Rack7",0x0446,">S"}, }, { reginfo = {"Rack8",0x0447,">S"}, }, { reginfo = {"Rack9",0x0448,">S"}, }, { reginfo = {"Rack10",0x0449,">S"}, }, { reginfo = {"Rack11",0x044A,">S"}, }, { reginfo = {"Rack12",0x044B,">S"}, }, { reginfo = {"Rack13",0x044C,">S"}, }, { reginfo = {"Rack14",0x044D,">S"}, }, { reginfo = {"Rack15",0x044E,">S"}, }, { reginfo = {"Rack16",0x044F,">S"}, }, { reginfo = {"Rack17",0x0450,">S"}, }, { reginfo = {"Rack18",0x0451,">S"}, }, { reginfo = {"Rack19",0x0452,">S"}, }, { reginfo = {"Rack20",0x0453,">S"}, }, { reginfo = {"Rack21",0x0454,">S"}, }, { reginfo = {"Rack22",0x0455,">S"}, }, { reginfo = {"Rack23",0x0456,">S"}, }, { reginfo = {"Rack24",0x0457,">S"}, }, { reginfo = {"Rack25",0x0458,">S"}, }, { reginfo = {"Rack26",0x0459,">S"}, }, { reginfo = {"Rack27",0x045A,">S"}, }, { reginfo = {"Rack28",0x045B,">S"}, }, { reginfo = {"Rack29",0x045C,">S"}, }, { reginfo = {"Rack30",0x045D,">S"}, }, { reginfo = {"Rack31",0x045E,">S"}, }, { reginfo = {"Rack32",0x045F,">S"}, }, } }, { identifier = "RealtimeGet", read_write = "R", frames = {"basic"}, regs = { { reginfo = {"year",0x0006,">S"}, }, { reginfo = {"month",0x0007,">S"}, }, { reginfo = {"day",0x0008,">S"}, }, { reginfo = {"hour",0x0009,">S"}, }, { reginfo = {"minit",0x000A,">S"}, }, { reginfo = {"second",0x000B,">S"}, } } }, { identifier = "RealtimeSet", read_write = "W", regs = { { reginfo = {"year",0x0006,">S"}, }, { reginfo = {"month",0x0007,">S"}, }, { reginfo = {"day",0x0008,">S"}, }, { reginfo = {"hour",0x0009,">S"}, }, { reginfo = {"minit",0x000A,">S"}, }, { reginfo = {"second",0x000B,">S"}, } } }, } ------------------------------------------------------------------ ---------------------------- 扫描寄存器配置表描述 ------------------------- ------------------------------------------------------------------ ----! desc 说明信息 ----! start 起始地址 ----! size 读取长度,可以通过设置stop,自动算出size ----! stop 结束地址(含此第地址) ----! period 采样周期,单位mS ------------------------------------------------------------------ reg_config.BCU_register_table = {} ------------------------------------------------------------------ ---------------------------- 业务触发配置表描述 ------------------------- ------------------------------------------------------------------ ----! identifier 服务标识,通过这个标识可以合并不同的采样包 ----! read_write 描述操作的读写 ----! frames 采集数据类型:alarm/info,用于标记数据记录到不同的cache ----! regs.reginfo 寄存器名称(或名称的数组),寄存器地址,寄存器格式化符号,数值缩放比例 ----! regs.batch 批量采样个数,批量采样自累加值,格式化输出:字符串/数组 ----! regs.map 数值缩放原始值最小,原始值最大,输出值最小,输出值最大 ----! regs.level 报警等级(或者等级的数组) ------------------------------------------------------------------ reg_config.BCU_point_table = { { identifier = "RackThresholdPush", read_write = "W", frames = {"trigger"}, regs = { { reginfo = {"P0140",0x0140,">s",0.1}, }, { reginfo = {"P0141",0x0141,">s",0.1}, }, { reginfo = {"P0142",0x0142,">s",0.1}, }, { reginfo = {"P0143",0x0143,">s",0.1}, }, { reginfo = {"P0144",0x0144,">s",0.1}, }, { reginfo = {"P0145",0x0145,">s",0.1}, }, { reginfo = {"P0146",0x0146,">s",0.1}, }, { reginfo = {"P0147",0x0147,">s",0.1}, }, { reginfo = {"P0148",0x0148,">s",0.1}, }, { reginfo = {"P0149",0x0149,">s",1}, }, { reginfo = {"P014A",0x014A,">s",1}, }, { reginfo = {"P014B",0x014B,">s",1}, }, { reginfo = {"P014C",0x014C,">s",1}, }, { reginfo = {"P014D",0x014D,">s",1}, }, { reginfo = {"P014E",0x014E,">s",1}, }, { reginfo = {"P014F",0x014F,">s",1}, }, { reginfo = {"P0150",0x0150,">s",1}, }, { reginfo = {"P0151",0x0151,">s",1}, }, { reginfo = {"P0152",0x0152,">s",1}, }, { reginfo = {"P0153",0x0153,">s",1}, }, { reginfo = {"P0154",0x0154,">s",1}, }, { reginfo = {"P0155",0x0155,">s",0.1}, }, { reginfo = {"P0156",0x0156,">s",0.1}, }, { reginfo = {"P0157",0x0157,">s",0.1}, }, { reginfo = {"P0158",0x0158,">s",1}, }, { reginfo = {"P0159",0x0159,">s",1}, }, { reginfo = {"P015A",0x015A,">s",1}, }, { reginfo = {"P015B",0x015B,">s",1}, }, { reginfo = {"P015C",0x015C,">s",1}, }, { reginfo = {"P015D",0x015D,">s",1}, }, { reginfo = {"P015E",0x015E,">s",1}, }, { reginfo = {"P015F",0x015F,">s",1}, }, { reginfo = {"P0160",0x0160,">s",0.1}, }, { reginfo = {"P0161",0x0161,">s",0.1}, }, { reginfo = {"P0162",0x0162,">s",0.1}, }, { reginfo = {"P0163",0x0163,">s",0.1}, }, { reginfo = {"P0164",0x0164,">s",0.1}, }, { reginfo = {"P0165",0x0165,">s",0.1}, }, { reginfo = {"P0166",0x0166,">s",0.1}, }, { reginfo = {"P0167",0x0167,">s",0.1}, }, { reginfo = {"P0168",0x0168,">s",0.1}, }, { reginfo = {"P0169",0x0169,">s",0.1}, }, { reginfo = {"P016A",0x016A,">s",0.1}, }, { reginfo = {"P016B",0x016B,">s",0.1}, }, { reginfo = {"P016C",0x016C,">s",0.1}, }, { reginfo = {"P016D",0x016D,">s",0.1}, }, { reginfo = {"P016E",0x016E,">s",0.1}, }, { reginfo = {"P016F",0x016F,">s",0.1}, }, { reginfo = {"P0170",0x0170,">s",0.1}, }, { reginfo = {"P0171",0x0171,">s",0.1}, }, { reginfo = {"P0172",0x0172,">s",0.1}, }, { reginfo = {"P0172",0x0173,">s",0.1}, }, { reginfo = {"P0173",0x0174,">s",0.1}, }, { reginfo = {"P0174",0x0175,">s",0.1}, }, { reginfo = {"P0175",0x0176,">s",0.1}, }, { reginfo = {"P0176",0x0177,">s",0.1}, }, { reginfo = {"P0177",0x0178,">s",0.1}, }, { reginfo = {"P0178",0x0179,">s",0.1}, }, { reginfo = {"P0179",0x017A,">s",0.1}, }, { reginfo = {"P017A",0x017B,">s",0.1}, }, { reginfo = {"P017B",0x017C,">s",0.1}, }, { reginfo = {"P017C",0x017D,">s",0.1}, }, { reginfo = {"P017D",0x017E,">s",0.1}, }, } }, { identifier = "RackThresholdPush", read_write = "W", frames = {"recover"}, regs = { { reginfo = {"P0180",0x0180,">s",0.1}, }, { reginfo = {"P0181",0x0181,">s",0.1}, }, { reginfo = {"P0182",0x0182,">s",0.1}, }, { reginfo = {"P0183",0x0183,">s",0.1}, }, { reginfo = {"P0184",0x0184,">s",0.1}, }, { reginfo = {"P0185",0x0185,">s",0.1}, }, { reginfo = {"P0186",0x0186,">s",0.1}, }, { reginfo = {"P0187",0x0187,">s",0.1}, }, { reginfo = {"P0188",0x0188,">s",0.1}, }, { reginfo = {"P0189",0x0189,">s",1}, }, { reginfo = {"P018A",0x018A,">s",1}, }, { reginfo = {"P018B",0x018B,">s",1}, }, { reginfo = {"P018C",0x018C,">s",1}, }, { reginfo = {"P018D",0x018D,">s",1}, }, { reginfo = {"P018E",0x018E,">s",1}, }, { reginfo = {"P018F",0x018F,">s",1}, }, { reginfo = {"P0190",0x0190,">s",1}, }, { reginfo = {"P0191",0x0191,">s",1}, }, { reginfo = {"P0192",0x0192,">s",1}, }, { reginfo = {"P0193",0x0193,">s",1}, }, { reginfo = {"P0194",0x0194,">s",1}, }, { reginfo = {"P0195",0x0195,">s",0.1}, }, { reginfo = {"P0196",0x0196,">s",0.1}, }, { reginfo = {"P0197",0x0197,">s",0.1}, }, { reginfo = {"P0198",0x0198,">s",1}, }, { reginfo = {"P0199",0x0199,">s",1}, }, { reginfo = {"P019A",0x019A,">s",1}, }, { reginfo = {"P019B",0x019B,">s",1}, }, { reginfo = {"P019C",0x019C,">s",1}, }, { reginfo = {"P019D",0x019D,">s",1}, }, { reginfo = {"P019E",0x019E,">s",1}, }, { reginfo = {"P019F",0x019F,">s",1}, }, { reginfo = {"P01A0",0x01A0,">s",0.1}, }, { reginfo = {"P01A1",0x01A1,">s",0.1}, }, { reginfo = {"P01A2",0x01A2,">s",0.1}, }, { reginfo = {"P01A3",0x01A3,">s",0.1}, }, { reginfo = {"P01A4",0x01A4,">s",0.1}, }, { reginfo = {"P01A5",0x01A5,">s",0.1}, }, { reginfo = {"P01A6",0x01A6,">s",0.1}, }, { reginfo = {"P01A7",0x01A7,">s",0.1}, }, { reginfo = {"P01A8",0x01A8,">s",0.1}, }, { reginfo = {"P01A9",0x01A9,">s",0.1}, }, { reginfo = {"P01AA",0x01AA,">s",0.1}, }, { reginfo = {"P01AB",0x01AB,">s",0.1}, }, { reginfo = {"P01AC",0x01AC,">s",0.1}, }, { reginfo = {"P01AD",0x01AD,">s",0.1}, }, { reginfo = {"P01AE",0x01AE,">s",0.1}, }, { reginfo = {"P01AF",0x01AF,">s",0.1}, }, { reginfo = {"P01B0",0x01B0,">s",0.1}, }, { reginfo = {"P01B1",0x01B1,">s",0.1}, }, { reginfo = {"P01B2",0x01B2,">s",0.1}, }, { reginfo = {"P01B3",0x01B3,">s",0.1}, }, { reginfo = {"P01B4",0x01B4,">s",0.1}, }, { reginfo = {"P01B5",0x01B5,">s",0.1}, }, { reginfo = {"P01B6",0x01B6,">s",0.1}, }, { reginfo = {"P01B7",0x01B7,">s",0.1}, }, { reginfo = {"P01B8",0x01B8,">s",0.1}, }, { reginfo = {"P01B9",0x01B9,">s",0.1}, }, { reginfo = {"P01BA",0x01BA,">s",0.1}, }, { reginfo = {"P01BB",0x01BB,">s",0.1}, }, { reginfo = {"P01BC",0x01BC,">s",0.1}, }, { reginfo = {"P01BD",0x01BD,">s",0.1}, }, } }, { identifier = "RackThresholdQuery", read_write = "R", frames = {"trigger"}, regs = { { reginfo = {"P0140",0x0140,">s",0.1}, }, { reginfo = {"P0141",0x0141,">s",0.1}, }, { reginfo = {"P0142",0x0142,">s",0.1}, }, { reginfo = {"P0143",0x0143,">s",0.1}, }, { reginfo = {"P0144",0x0144,">s",0.1}, }, { reginfo = {"P0145",0x0145,">s",0.1}, }, { reginfo = {"P0146",0x0146,">s",0.1}, }, { reginfo = {"P0147",0x0147,">s",0.1}, }, { reginfo = {"P0148",0x0148,">s",0.1}, }, { reginfo = {"P0149",0x0149,">s",1}, }, { reginfo = {"P014A",0x014A,">s",1}, }, { reginfo = {"P014B",0x014B,">s",1}, }, { reginfo = {"P014C",0x014C,">s",1}, }, { reginfo = {"P014D",0x014D,">s",1}, }, { reginfo = {"P014E",0x014E,">s",1}, }, { reginfo = {"P014F",0x014F,">s",1}, }, { reginfo = {"P0150",0x0150,">s",1}, }, { reginfo = {"P0151",0x0151,">s",1}, }, { reginfo = {"P0152",0x0152,">s",1}, }, { reginfo = {"P0153",0x0153,">s",1}, }, { reginfo = {"P0154",0x0154,">s",1}, }, { reginfo = {"P0155",0x0155,">s",0.1}, }, { reginfo = {"P0156",0x0156,">s",0.1}, }, { reginfo = {"P0157",0x0157,">s",0.1}, }, { reginfo = {"P0158",0x0158,">s",1}, }, { reginfo = {"P0159",0x0159,">s",1}, }, { reginfo = {"P015A",0x015A,">s",1}, }, { reginfo = {"P015B",0x015B,">s",1}, }, { reginfo = {"P015C",0x015C,">s",1}, }, { reginfo = {"P015D",0x015D,">s",1}, }, { reginfo = {"P015E",0x015E,">s",1}, }, { reginfo = {"P015F",0x015F,">s",1}, }, { reginfo = {"P0160",0x0160,">s",1}, }, { reginfo = {"P0161",0x0161,">s",1}, }, { reginfo = {"P0162",0x0162,">s",1}, }, { reginfo = {"P0163",0x0163,">s",0.1}, }, { reginfo = {"P0164",0x0164,">s",0.1}, }, { reginfo = {"P0165",0x0165,">s",0.1}, }, { reginfo = {"P0166",0x0166,">s",0.1}, }, { reginfo = {"P0167",0x0167,">s",0.1}, }, { reginfo = {"P0168",0x0168,">s",0.1}, }, { reginfo = {"P0169",0x0169,">s",0.1}, }, { reginfo = {"P016A",0x016A,">s",0.1}, }, { reginfo = {"P016B",0x016B,">s",0.1}, }, { reginfo = {"P016C",0x016C,">s",0.1}, }, { reginfo = {"P016D",0x016D,">s",0.1}, }, { reginfo = {"P016E",0x016E,">s",0.1}, }, { reginfo = {"P016F",0x016F,">s",0.1}, }, { reginfo = {"P0170",0x0170,">s",0.1}, }, { reginfo = {"P0171",0x0171,">s",0.1}, }, { reginfo = {"P0172",0x0172,">s",0.1}, }, { reginfo = {"P0173",0x0173,">s",0.1}, }, { reginfo = {"P0174",0x0174,">s",0.1}, }, { reginfo = {"P0175",0x0175,">s",0.1}, }, { reginfo = {"P0176",0x0176,">s",0.1}, }, { reginfo = {"P0177",0x0177,">s",0.1}, }, { reginfo = {"P0178",0x0178,">s",0.1}, }, { reginfo = {"P0179",0x0179,">s",0.1}, }, { reginfo = {"P017A",0x017A,">s",0.1}, }, { reginfo = {"P017B",0x017B,">s",0.1}, }, { reginfo = {"P017C",0x017C,">s",0.1}, }, { reginfo = {"P017D",0x017D,">s",0.1}, }, } }, { identifier = "RackThresholdQuery", read_write = "R", frames = {"recover"}, regs = { { reginfo = {"P0180",0x0180,">s",0.1}, }, { reginfo = {"P0181",0x0181,">s",0.1}, }, { reginfo = {"P0182",0x0182,">s",0.1}, }, { reginfo = {"P0183",0x0183,">s",0.1}, }, { reginfo = {"P0184",0x0184,">s",0.1}, }, { reginfo = {"P0185",0x0185,">s",0.1}, }, { reginfo = {"P0186",0x0186,">s",0.1}, }, { reginfo = {"P0187",0x0187,">s",0.1}, }, { reginfo = {"P0188",0x0188,">s",0.1}, }, { reginfo = {"P0189",0x0189,">s",1}, }, { reginfo = {"P018A",0x018A,">s",1}, }, { reginfo = {"P018B",0x018B,">s",1}, }, { reginfo = {"P018C",0x018C,">s",1}, }, { reginfo = {"P018D",0x018D,">s",1}, }, { reginfo = {"P018E",0x018E,">s",1}, }, { reginfo = {"P018F",0x018F,">s",1}, }, { reginfo = {"P0190",0x0190,">s",1}, }, { reginfo = {"P0191",0x0191,">s",1}, }, { reginfo = {"P0192",0x0192,">s",1}, }, { reginfo = {"P0193",0x0193,">s",1}, }, { reginfo = {"P0194",0x0194,">s",1}, }, { reginfo = {"P0195",0x0195,">s",0.1}, }, { reginfo = {"P0196",0x0196,">s",0.1}, }, { reginfo = {"P0197",0x0197,">s",0.1}, }, { reginfo = {"P0198",0x0198,">s",1}, }, { reginfo = {"P0199",0x0199,">s",1}, }, { reginfo = {"P019A",0x019A,">s",1}, }, { reginfo = {"P019B",0x019B,">s",1}, }, { reginfo = {"P019C",0x019C,">s",1}, }, { reginfo = {"P019D",0x019D,">s",1}, }, { reginfo = {"P019E",0x019E,">s",1}, }, { reginfo = {"P019F",0x019F,">s",1}, }, { reginfo = {"P01A0",0x01A0,">s",1}, }, { reginfo = {"P01A1",0x01A1,">s",1}, }, { reginfo = {"P01A2",0x01A2,">s",1}, }, { reginfo = {"P01A3",0x01A3,">s",0.1}, }, { reginfo = {"P01A4",0x01A4,">s",0.1}, }, { reginfo = {"P01A5",0x01A5,">s",0.1}, }, { reginfo = {"P01A6",0x01A6,">s",0.1}, }, { reginfo = {"P01A7",0x01A7,">s",0.1}, }, { reginfo = {"P01A8",0x01A8,">s",0.1}, }, { reginfo = {"P01A9",0x01A9,">s",0.1}, }, { reginfo = {"P01AA",0x01AA,">s",0.1}, }, { reginfo = {"P01AB",0x01AB,">s",0.1}, }, { reginfo = {"P01AC",0x01AC,">s",0.1}, }, { reginfo = {"P01AD",0x01AD,">s",0.1}, }, { reginfo = {"P01AE",0x01AE,">s",0.1}, }, { reginfo = {"P01AF",0x01AF,">s",0.1}, }, { reginfo = {"P01B0",0x01B0,">s",0.1}, }, { reginfo = {"P01B1",0x01B1,">s",0.1}, }, { reginfo = {"P01B2",0x01B2,">s",0.1}, }, { reginfo = {"P01B3",0x01B3,">s",0.1}, }, { reginfo = {"P01B4",0x01B4,">s",0.1}, }, { reginfo = {"P01B5",0x01B5,">s",0.1}, }, { reginfo = {"P01B6",0x01B6,">s",0.1}, }, { reginfo = {"P01B7",0x01B7,">s",0.1}, }, { reginfo = {"P01B8",0x01B8,">s",0.1}, }, { reginfo = {"P01B9",0x01B9,">s",0.1}, }, { reginfo = {"P01BA",0x01BA,">s",0.1}, }, { reginfo = {"P01BB",0x01BB,">s",0.1}, }, { reginfo = {"P01BC",0x01BC,">s",0.1}, }, { reginfo = {"P01BD",0x01BD,">s",0.1}, }, } }, { identifier = "RackInformationRequest", read_write = "R", frames = {"basic"}, regs = { { reginfo = {"RackRunState",0x0081,">S",nil,"{Normal=0,StopCharge=1,StopDischarge=2,Standby=3,Stop=4}"}, }, { reginfo = {"KmState",0x0105,">S",nil,"{Unknown=0,Close=1,Break=2}"}, --接触器KM状态 }, { reginfo = {"K_State",0x0107,">S",nil,"{Unknown=0,Close=1,Break=2}"}, --接触器K_状态 }, { reginfo = {"RackTotalVoltage",0x00C0,">S",0.1}, }, { reginfo = {"RackTotalCurrent",0x00C8,">s",0.1}, }, { reginfo = {"RackAmbientTemp",0x009B,">s"},--环境温度 }, { reginfo = {"RackSoc",0x00A0,">S",0.1}, }, { reginfo = {"RackSoh",0x00A1,">S",0.1}, }, { reginfo = {"RackInsulation",0x00CB,">S"}, }, { reginfo = {"RackTotalCap",0x00B2,">S"}, }, { reginfo = {"RackAvailableChgCap",0x00B3,">S"},--可充电量 }, { reginfo = {"RackAvailableDischgCap",0x00B4,">S"},--可放电量 }, { reginfo = {"RackSingleChgCap",0x00B5,">S"}, }, { reginfo = {"RackSingleDisChgCap",0x00B6,">S"}, }, } }, { identifier = "RackInformationRequest", read_write = "R", frames = {"detaildata"}, regs = { { reginfo = {"RackMaxVol",'format("%d-%03d",&0x0089,&0x008A)'}, }, { reginfo = {"RackMinVol",'format("%d-%03d",&0x008D,&0x008E)'}, }, { reginfo = {"RackAveVol",0x0092,">S",1}, }, { reginfo = {"RackMaxTemp",'format("%d-%03d",((&0x0093)/10),&0x0094)'}, }, { reginfo = {"RackMinTemp",'format("%d-%03d",((&0x0097)/10),&0x0098)'}, }, { reginfo = {"RackMaxTempIndex", 0x0094, ">S"}, }, { reginfo = {"RackMinTemp", 0x0097, ">S" , 0.1}, }, { reginfo = {"RackMinTempIndex", 0x0098, ">S"}, }, { reginfo = {"RackAveVol",0x0092,">S",1}, }, { reginfo = {"RackAveTemp",0x009B,">s",0.1}, }, { reginfo = {"RackChgCurLmt",0x0074,">S",0.1},--充电限流门限 }, { reginfo = {"RackDisChgCurLmt",0x0075,">S",0.1},--放电限流门限 }, { reginfo = {"RackPosIns",0x00CC,">s"},--正绝缘 }, { reginfo = {"RackNegIns",0x00CD,">s"},--负绝缘 }, { reginfo = {"RackPrechg",0x0088,">s"},--预充电压 }, { reginfo = {"RackPreStep",0x0080,">S",nil,"{init=0,waiting_1=1,waiting_2=2,success=3,fail=4}"},--预上电阶段 }, } }, { identifier = "RackAlarmRequest", read_write = "R", frames = {"alarm"}, regs = { { level = 3, reginfo ={ { "P0100.0","P0100.1", "P0100.2","P0100.3", "P0100.4","P0100.5", "P0100.6","P0100.7", "P0100.8","P0100.9", "P0100.10","P0100.11", "P0100.12","P0100.13", },0x0100,">S" }, extrainfo = { {"P0100.0","format('最高电压:%dmV #%d', &0x01D0, &0x01CF)"}, {"P0100.1","format('最低电压:%dmV #%d', &0x01D4, &0x01D3)"}, {"P0100.2","format('最大压差:%dmV', &0x01F0)"}, {"P0100.3","format('最高温度:%.1f℃ #%d', (&0x01E0/10), &0x01DF)"}, {"P0100.4","format('最低温度:%.1f℃ #%d', (&0x01E4/10), &0x01E3)"}, {"P0100.5","format('最高温度:%.1f℃ #%d', (&0x01E0/10), &0x01DF)"}, {"P0100.6","format('最低温度:%.1f℃ #%d', (&0x01E4/10), &0x01E3)"}, {"P0100.7","format('最大温差:%.1f℃', (&0x01F6/10))"}, {"P0100.8","format('报警升温:%.1f℃ #%d', (&0x01EA/10), &0x01E9)"}, {"P0100.9","format('最高温度:%.1f℃ #%d', (&0x01EE/10), &0x01ED)"}, {"P0100.10","format('报警电流:%.1fA', (&0x01DC/10))"}, {"P0100.11","format('报警电流:%.1fA', (&0x01DA/10))"}, {"P0100.12","format('最大电压:%dmV 模组编号:%d', &0x01FA, &0x01F9)"}, {"P0100.13","format('最小电压:%dmV 模组编号:%d', &0x01FE, &0x01FD)"}, }, }, { level = 2, reginfo = { { "P0101.0","P0101.1", "P0101.2","P0101.3", "P0101.4","P0101.5", "P0101.6","P0101.7", "P0101.8","P0101.9", "P0101.10","P0101.11", "P0101.12","P0101.13", },0x0101,">S" }, extrainfo = { {"P0101.0","format('最高电压:%dmV #%d', &0x01CE, &0x01CD)"}, {"P0101.1","format('最低电压:%dmV #%d', &0x01D2, &0x01D1)"}, {"P0101.2","format('最大压差:%dmV', &0x01EF)"}, {"P0101.3","format('最高温度:%.1f℃ #%d', (&0x01DE/10), &0x01DD)"}, {"P0101.4","format('最低温度:%.1f℃ #%d', (&0x01E2/10), &0x01E1)"}, {"P0101.5","format('最高温度:%.1f℃ #%d', (&0x01DE/10), &0x01DD)"}, {"P0101.6","format('最低温度:%.1f℃ #%d', (&0x01E2/10), &0x01E1)"}, {"P0101.7","format('最大温差:%.1f℃', (&0x01F5/10))"}, {"P0101.8","format('报警升温:%.1f℃ #%d', (&0x01E8/10), &0x01E7)"}, {"P0101.9","format('最高温度:%.1f℃ #%d', (&0x01EC/10), &0x01EB)"}, {"P0101.10","format('报警电流:%.1fA', (&0x01DB/10))"}, {"P0101.11","format('报警电流:%.1fA', (&0x01D9/10))"}, {"P0101.12","format('报大电压:%dmV 模组编号:%d', &0x01F8, &0x01F7)"}, {"P0101.13","format('报小电压:%dmV 模组编号:%d', &0x01FC, &0x01FB)"}, }, }, { level = 1, reginfo = { { "P0102.0","P0102.1", "P0102.2","P0102.3", "P0102.4","P0102.5", "P0102.6","P0102.7", "P0102.8","P0102.9", "P0102.10","P0102.11", },0x0102,">S" }, extrainfo = { {"P0102.0","format('最高电压:%dmV #%d', &0x01CE, &0x01CD)"}, {"P0102.1","format('最低电压:%dmV #%d', &0x01D2, &0x01D1)"}, {"P0102.2","format('最大压差:%dmV', &0x01EF)"}, {"P0102.3","format('最高温度:%.1f℃ #%d', (&0x01DE/10), &0x01DD)"}, {"P0102.4","format('最低温度:%.1f℃ #%d', (&0x01E2/10), &0x01E1)"}, {"P0102.5","format('最高温度:%.1f℃ #%d', (&0x01DE/10), &0x01DD)"}, {"P0102.6","format('最低温度:%.1f℃ #%d', (&0x01E2/10), &0x01E1)"}, {"P0102.7","format('最大温差:%.1f℃', (&0x01F5/10))"}, {"P0102.8","format('报警升温:%.1f℃ #%d', (&0x01E8/10), &0x01E7)"}, {"P0102.9","format('最高温度:%.1f℃ #%d', (&0x01EC/10), &0x01EB)"}, {"P0102.10","format('报警电流:%.1fA', (&0x01DB/10))"}, {"P0102.11","format('报警电流:%.1fA', (&0x01D9/10))"}, {"P0102.12","format('报大电压:%dmV 模组编号:%d', &0x01F8, &0x01F7)"}, {"P0102.13","format('报小电压:%dmV 模组编号:%d', &0x01FC, &0x01FB)"}, }, }, { level = 3, reginfo = { { "P0124.0","P0124.1", "P0124.2","P0124.3", "P0124.4","P0124.5", "P0124.6","P0124.7", "P0124.8","P0124.9", "P0124.10","P0124.11", },0x0124,">S" }, extrainfo = { {"P0124.0","format('最大总压:%.1fV', (&0x01D6/10))"}, {"P0124.1","format('最小总压:%.1fV', (&0x01D8/10))"}, {"P0124.2","format('报警压差:%.1fV', (&0x01F4/10))"}, {"P0124.3","format('报警绝缘:%dΩ/V', &0x01F2)"}, {"P0124.9","format('报警温度:%.1f℃', (&0x01E6/10))"}, }, }, { level = 2, reginfo = { { "P0125.0","P0125.1", "P0125.2","P0125.3", "P0125.4","P0125.5", "P0125.6","P0125.7", "P0125.8","P0125.9", "P0125.10","P0125.11", },0x0125,">S" }, extrainfo = { {"P0125.0","format('最大总压:%.1fV', (&0x01D5/10))"}, {"P0125.1","format('最小总压:%.1fV', (&0x01D7/10))"}, {"P0125.2","format('报警压差:%.1fV', (&0x01F3/10))"}, {"P0125.3","format('报警绝缘:%dΩ/V', &0x01F1)"}, {"P0125.9","format('报警温度:%.1f℃', (&0x01E5/10))"}, }, }, { level = 1, reginfo = { { "P0126.0","P0126.1", "P0126.2","P0126.3", "P0126.4","P0126.5", "P0126.6","P0126.7", "P0126.8","P0126.9", "P0126.10","P0126.11", },0x0126,">S" }, extrainfo = { {"P0126.0","format('最大总压:%.1fV', (&0x01D5/10))"}, {"P0126.1","format('最小总压:%.1fV', (&0x01D7/10))"}, {"P0126.2","format('报警压差:%.1fV', (&0x01F3/10))"}, {"P0126.3","format('报警绝缘:%dΩ/V', &0x01F1)"}, {"P0126.9","format('报警温度:%.1f℃', (&0x01E5/10))"}, }, } } }, { identifier = "RackCellVolQuery", read_write = "R", frames = {"cellvol"}, regs = { { reginfo = {"P0400",0x0400,">S",0.001}, batch = {512,1} } } }, { identifier = "RackCellTempQuery", read_write = "R", frames = {"celltemp"}, regs = { { reginfo = {"P0200",0x0200,">s",0.1}, batch = {512,1} } } }, { identifier = "RackPoleTempQuery", read_write = "R", frames = {"anodetemp"}, regs = { { reginfo = {"P0900",0x0900,">s",0.1}, batch = {128,1} } } }, { identifier = "RackPoleTempQuery", read_write = "R", frames = {"cathodetemp"}, regs = { { reginfo = {"P0980",0x0980,">s",0.1}, batch = {128,1} } } } } reg_config.nodes = { { term_addr = 0, dev_lev = 3, scan_regs = reg_config.BAU_register_table, dev_point = reg_config.BAU_point_table, }, { term_addr = 1, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 2, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 3, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 4, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 5, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 6, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 7, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 8, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 9, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 10, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 11, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 12, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 13, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 14, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 15, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 16, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 17, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 18, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 19, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 20, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 21, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 22, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 23, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 24, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 25, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 26, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 27, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 28, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 29, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 30, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 31, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, { term_addr = 32, dev_lev = 2, scan_regs = reg_config.BCU_register_table, dev_point = reg_config.BCU_point_table, }, } return reg_config