modbus rtu
This commit is contained in:
36
config/device_profiles.json
Normal file
36
config/device_profiles.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
28
config/metadata_dictionary.json
Normal file
28
config/metadata_dictionary.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user