modbus rtu

This commit is contained in:
flower_linux
2026-04-03 16:23:56 +08:00
parent 1da5fe12c3
commit 28b5082742
32 changed files with 3231 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
{
"profiles": [
{
"deviceId": "*",
"protocol": "modbus_rtu",
"mappings": [
{
"pointId": "temperature",
"metadataId": "MD_TEMP_001",
"registerAddress": 40001,
"byteOffset": 0,
"byteLength": 4,
"bitOffset": -1,
"endianness": "BIG_ENDIAN",
"rawType": "INT32",
"scaleFactor": 1.0,
"offsetFactor": 0.0,
"expression": "x * 0.1"
},
{
"pointId": "pressure",
"metadataId": "MD_PRESS_001",
"registerAddress": 40003,
"byteOffset": 4,
"byteLength": 4,
"bitOffset": -1,
"endianness": "BIG_ENDIAN",
"rawType": "INT32",
"scaleFactor": 1.0,
"offsetFactor": 0.0,
"expression": "x * 0.001"
}
]
}
]
}

View File

@@ -0,0 +1,28 @@
{
"metadatas": [
{
"metadataId": "MD_TEMP_001",
"name": "主管道温度",
"description": "由两个寄存器组合得到温度",
"domain": "PROCESS_PARAM",
"semanticType": "FLOAT64",
"unit": "C",
"minValue": -40.0,
"maxValue": 180.0,
"deadband": 0.1,
"isWriteable": false
},
{
"metadataId": "MD_PRESS_001",
"name": "主管道压力",
"description": "由两个寄存器组合得到压力",
"domain": "PROCESS_PARAM",
"semanticType": "FLOAT64",
"unit": "MPa",
"minValue": 0.0,
"maxValue": 25.0,
"deadband": 0.01,
"isWriteable": false
}
]
}