193 lines
7.0 KiB
JSON
193 lines
7.0 KiB
JSON
{
|
|
"modbus":
|
|
{
|
|
"type":"rs485",
|
|
"port":"COM1",
|
|
"baudrate":9600,
|
|
"parity":"N",
|
|
"stopbits":1,
|
|
"data":8,
|
|
"ip":"127.0.0.1",
|
|
"ip_port":502
|
|
},
|
|
"slaves":[
|
|
{
|
|
"id":1,
|
|
"function_code":3,
|
|
"address":[
|
|
{
|
|
"start_addr":40000,
|
|
"quantity":9,
|
|
"bytes_per_register":2,
|
|
"language":"En",
|
|
"device_name_chn":"温湿度",
|
|
"device_name_eng":"Temperature",
|
|
"device_type":1,
|
|
"data": [
|
|
{
|
|
"comment":"在线状态",
|
|
"order":0,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"在线状态",
|
|
"title_eng":"Online",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"温度",
|
|
"order":1,
|
|
"precision":10,
|
|
"unit":"℃",
|
|
"title_chn":"温度",
|
|
"title_eng":"T (℃) ",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"湿度",
|
|
"order":2,
|
|
"precision":10,
|
|
"unit":"%",
|
|
"title_chn":"湿度",
|
|
"title_eng":"RH (%)",
|
|
"display":1 ,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"露点",
|
|
"order":3,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"露点",
|
|
"title_eng":"DewPoint",
|
|
"display":2,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"跳过",
|
|
"order":4,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"",
|
|
"title_eng":"",
|
|
"display":0,
|
|
"skip":1
|
|
},
|
|
{
|
|
"comment":"跳过",
|
|
"order":5,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"",
|
|
"title_eng":"",
|
|
"display":0,
|
|
"skip":1
|
|
},
|
|
{
|
|
"comment":"DO",
|
|
"order":6,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"DO",
|
|
"title_eng":"DO",
|
|
"display":2,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"DI1",
|
|
"order":7,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"DI1",
|
|
"title_eng":"DI1",
|
|
"display":2,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"DI2",
|
|
"order":8,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"DI2",
|
|
"title_eng":"DI2",
|
|
"display":2,
|
|
"skip":0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"start_addr":40009,
|
|
"quantity":6,
|
|
"bytes_per_register":2,
|
|
"language":"en",
|
|
"device_name_chn":"温湿度告警",
|
|
"device_name_eng":"Alarm",
|
|
"device_type":6,
|
|
"data": [
|
|
{
|
|
"comment":"温度阈值",
|
|
"order":0,
|
|
"precision":10,
|
|
"unit":"",
|
|
"title_chn":"温度阈值",
|
|
"title_eng":"Temp_threshold",
|
|
"display":0,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"温度偏移",
|
|
"order":1,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"温度偏移",
|
|
"title_eng":"Temp_offset",
|
|
"display":0,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"跳过",
|
|
"order":2,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"",
|
|
"title_eng":"",
|
|
"display":0,
|
|
"skip":1
|
|
},
|
|
{
|
|
"comment":"高温告警",
|
|
"order":3,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"高温告警",
|
|
"title_eng":"High Temp.",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"高湿告警",
|
|
"order":4,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"高湿告警",
|
|
"title_eng":"High Humidity",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"低温告警",
|
|
"order":5,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"低温告警",
|
|
"title_eng":"Low Temp.",
|
|
"display":1,
|
|
"skip":0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |