14.07.2017, 10:34
Hello
Does anyone have an working modbus-profile for Nibe Modbus 40?
I've managed to get all registers except the signed32 registers working.
The response from modbus40 to the LM5 always return an CRC-error.
When testet with the RTU read test it also return CRC error when reading int 32 or when reading 2 int16 registers.......
This code works for 16bit registers:
{ "name": "Degree Minutes 16 bit", "bus_datatype": "int16", "type": "register", "address": 43005 , "datatype": "int16", "value_multiplier": 0.1, "writable": false },
But when trying to read a 32 bit it return error:
Tried this:
{ "name": "Tot optime compr EP14_r1", "bus_datatype": "uint32", "address": 43420, "read_count":2, "read_offset":43420, "type": "register", "datatype": "int16" },
and this:
{ "name": "Tot optime compr EP14_r1", "bus_datatype": "uint32", "address": 43420, "type": "register", "datatype": "int32" },
and a lot of other combinations and everyone returns the same crc error.
When I only read the first register as a 16bit value it return the correct value, and tried to do a word swap and it then reurn the value 0.
The bus is terminated whit 120ohm resistors in both ends, and there is only this device on the bus.
Any ideas????
Help needed
Eirik
Does anyone have an working modbus-profile for Nibe Modbus 40?
I've managed to get all registers except the signed32 registers working.
The response from modbus40 to the LM5 always return an CRC-error.
When testet with the RTU read test it also return CRC error when reading int 32 or when reading 2 int16 registers.......
This code works for 16bit registers:
{ "name": "Degree Minutes 16 bit", "bus_datatype": "int16", "type": "register", "address": 43005 , "datatype": "int16", "value_multiplier": 0.1, "writable": false },
But when trying to read a 32 bit it return error:
Tried this:
{ "name": "Tot optime compr EP14_r1", "bus_datatype": "uint32", "address": 43420, "read_count":2, "read_offset":43420, "type": "register", "datatype": "int16" },
and this:
{ "name": "Tot optime compr EP14_r1", "bus_datatype": "uint32", "address": 43420, "type": "register", "datatype": "int32" },
and a lot of other combinations and everyone returns the same crc error.
When I only read the first register as a 16bit value it return the correct value, and tried to do a word swap and it then reurn the value 0.
The bus is terminated whit 120ohm resistors in both ends, and there is only this device on the bus.
Any ideas????
Help needed
Eirik