
{
    "info":{
        "protocol":["modbus_tcp","modbus_rtu"],
		"type":"TMS",
		"vendor":"佰睿安",
        "model":"BRA-S-TMS-DL-A220NN-C8H3",
		"version":"0.0.0-alpha",
		"compatible":"5.312.0000",
        "url":"https://drive.weixin.qq.com/s?k=AIMAewc7AAgfG9ja8Q"
        
    },
    "adapter":[
        {
            "function": "set_heat",
            "tagname": "TargetWaterTemp"
        },
        {
            "function": "set_cool",
            "tagname": "TargetWaterTemp"
        },
        {
            "function": "set_mode",
            "value_maps":[
                {"map_in": 0,"tagname": "WorkMode","map_out": 0},
                {"map_in": 1,"tagname": "WorkMode","map_out": 1},
                {"map_in": 2,"tagname": "WorkMode","map_out": 2},
                {"map_in": 3,"tagname": "WorkMode","map_out": 3}
            ]
        }
    ],    
    "poll_list":[
        {"scan_rate":2000,"prot":[4,	"1",	20]},
		{"scan_rate":2000,"prot":[3,	"201",	6]}
    ],
    "read_reg":[
        {"tag":"Pump",				"name":"水泵状态",			"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"1",	"uint",	"AB",	0,	1,	0],"desc":"0:停止;1:运行"},
        {"tag":"CompressorSta",		"name":"压缩机状态",		"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"2",	"uint",	"AB",	0,	1,	0],"desc":"0:停止;1:运行"},
        {"tag":"HeaterSta",			"name":"电加热状态",		"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"4",	"uint",	"AB",	0,	1,	0],"desc":"0:停止;1:运行"},
        {"tag":"CoolFanSta",		"name":"冷凝风机状态",		"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"5",	"uint",	"AB",	0,	1,	0],"desc":"0:停止;1:运行"},
        {"tag":"EffluentTemp",		"name":"出水温度(℃)",		"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"6",	"uint",	"AB",	0,	1,	0],"desc":""},
        {"tag":"InflowTemp",		"name":"回水温度(℃)",		"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"7",	"uint",	"AB",	0,	1,	0],"desc":""},
        {"tag":"CondHighPre",		"name":"冷凝高压压力(kpa)",	"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"8",	"uint",	"AB",	0,	1,	0],"desc":""},
        {"tag":"CondLowPre",		"name":"冷凝低压压力(kpa)",	"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"9",	"uint",	"AB",	0,	1,	0],"desc":""},
        {"tag":"OutdoorTemp",		"name":"环境温度(℃)",		"property":"realdata",	"history":"both",	"type":"float",	"offset":0,	"scale":0.1,	"prot":[4,	"10",	"uint",	"AB",	0,	1,	0],"desc":""},
        {"tag":"UnrWaterPumpSta",	"name":"补液水泵状态",		"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"11",	"uint",	"AB",	0,	1,	0],"desc":"0:关;1:开"},
        {"tag":"FaultAlarmCode",	"name":"故障告警",			"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"12",	"uint",	"AB",	0,	1,	0],"desc":""},
        {"tag":"FaultCode",			"name":"故障码",			"property":"alarm",		"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"12",	"bits",	"AB",	0,	6,	0],"desc":"48:BMS通讯异常;19:压缩机2级故障;20:压缩机通讯故障;21:风扇2级故障;22:高压传感器2级故障;23:低压传感器2级故障;24:机组回水温感2级故障;25:机组出水温感2级故障;27:水泵故障;30:液位传感器2级故障;46:DCDC2级故障;34:DCDC通讯故障"},
        {"tag":"FaultLevel",		"name":"故障码等级",		"property":"alarm",		"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"12",	"bits",	"AB",	6,	2,	0],"desc":"0:无效;1:1级故障;2:2级故障;3:3级故障"},
        {"tag":"CompressorSpeed",	"name":"压缩机转速(rpm)",	"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"15",	"uint",	"AB",	0,	1,	0],"desc":""},
        {"tag":"PumpSpeed",			"name":"水泵转速(%)",		"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"17",	"uint",	"AB",	0,	1,	0],"desc":""},
        {"tag":"FanSpeed",			"name":"风扇转速(%)",		"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"18",	"uint",	"AB",	0,	1,	0],"desc":""},
        {"tag":"UnitSta",			"name":"工作状态",			"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"19",	"uint",	"AB",	0,	1,	0],"desc":"0:待机;1:制冷;2:制热;3:水循环"},
        {"tag":"HighVolRelaySta",	"name":"高压继电器状态",	"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"prot":[4,	"20",	"uint",	"AB",	0,	1,	0],"desc":"0:断开;1:闭合"}
	],
    "write_reg":[
        {"tag":"WorkMmode",			"name":"控制模式",			"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"no_fetch":0,	"prot":[3,	"201",	"uint",	"AB",	0,	1,	0],"desc":"0:待机;1:制冷;2:制热;3:水循环"},
        {"tag":"HighVolRelay",		"name":"高压电继电器",		"property":"realdata",	"history":"both",	"type":"int",	"offset":0,	"scale":1,		"no_fetch":0,	"prot":[3,	"202",	"uint",	"AB",	0,	1,	0],"desc":"0:关机;1:开机"},
        {"tag":"TargetWaterTemp",	"name":"设定水温(℃)",		"property":"realdata",	"history":"both",	"type":"float",	"offset":0,	"scale":0.1,	"no_fetch":0,	"prot":[3,	"206",	"uint",	"AB",	0,	1,	0],"desc":""}
	]
}
