25.06.2019, 20:00
AAA my brains
Anyway I am wrong somewhere..
part of my .json file:
{
"product_code": "Gavazzi EM-340",
"mapping": [
{
"bus_datatype": 14,
"address": 0,
"type": "register",
"units": "V",
"value_multiplier": 0.1,
"name": "Voltage L1-N",
"datatype": "int32"
},
{
"bus_datatype": 14,
"address": 2,
"type": "register",
"units": "V",
"value_multiplier": 0.1,
"name": "Voltage L2-N",
"datatype": "int32"
},
{
"bus_datatype": 14,
"address": 4,
"type": "register",
"units": "V",
"value_multiplier": 0.1,
"name": "Voltage L3-N",
"datatype": "int32"
},
{
"bus_datatype": 14,
"address": 6,
"type": "register",
"units": "V",
"value_multiplier": 0.1,
"name": "Voltage L1-L2",
"datatype": "int32"
},
but at modbus mapper again formats not correct.. Maybe because from register 0 I need read 2 words by length??
Alex