SmartSwarm 300 Series
:
131
16.2 JSON
The alternative import-map format is JSON format.
This section will show some examples of appropriate JSON formatted input maps.
The JSON map below is a minimal example of a slave map with no registers defined.
{
"id": "",
"model": {
"meta": {
"address": {
"DEVID": "7000000",
"PORTID": 1,
"SLAVEID": 1,
"SWMID": 0
},
"description": "",
"installation_date": "",
"location": "",
"manufacturer": "",
"name": "",
"product_code": "",
"value_byte_order": "SNo",
"version": ""
},
"state": {
"CS": [],
"HR": [],
"IR": [],
"IS": []
}
},
"type": "ModbusSlave"
}
To add a Holding register to the map insert the following under the HR section. To add another register, repeat the
section separated by a comma.
"HR": [
{
"address": "500",
"address_offset": "0",
"name": "Motor Frequency",
"datatype": "UINT16",
"length": "16",
"zero_value": "0",
"scaling": "10",
"units": "Hz",
"state": "VALIDATED"