23.03.2022, 13:43
Hi,
When using a profile and reading blocs of parameters, "read_count" refers to number of 16bit modbus registers or number of registers defined on "datatype"?
I mean if I use something like this:
{"name": "Input_Register_1",
"bus_datatype": "float32",
"type": "inputregister",
"datatype": "float32",
"address": 4,
"read_offset": 0,
"read_count": 4,
"writable": 0,
"value_delta": 1,
"value_multiplier": 1,
"units": "%"
},
{"name": "Input_Register_2",
"bus_datatype": "float32",
"type": "inputregister",
"datatype": "float32",
"address": 4,
"read_offset": 2,
"read_count": 4,
"writable": 0,
"value_delta": 1,
"value_multiplier": 1,
"units": "%"
}
Is this reading input register 4 as 32bit float and register 6 as 32bit float using a single modbus read command? (count is 4 because we're reading registers 4,5,6 and 7)
Or should I define read_count as 2 because I'm reading 2 32bit registers?
Thanks.
When using a profile and reading blocs of parameters, "read_count" refers to number of 16bit modbus registers or number of registers defined on "datatype"?
I mean if I use something like this:
{"name": "Input_Register_1",
"bus_datatype": "float32",
"type": "inputregister",
"datatype": "float32",
"address": 4,
"read_offset": 0,
"read_count": 4,
"writable": 0,
"value_delta": 1,
"value_multiplier": 1,
"units": "%"
},
{"name": "Input_Register_2",
"bus_datatype": "float32",
"type": "inputregister",
"datatype": "float32",
"address": 4,
"read_offset": 2,
"read_count": 4,
"writable": 0,
"value_delta": 1,
"value_multiplier": 1,
"units": "%"
}
Is this reading input register 4 as 32bit float and register 6 as 32bit float using a single modbus read command? (count is 4 because we're reading registers 4,5,6 and 7)
Or should I define read_count as 2 because I'm reading 2 32bit registers?
Thanks.