Modbus - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: Modbus (/showthread.php?tid=5521) |
Modbus - joaodaniel.pereira - 18.07.2024 Hi, 1. I have a suggestion, if we change 1 modbus profile, I need to remote everything related with modbus to update.. is't possible to create a automatic profile refresh or something ? 2. I have one device that send temperature with UINT16 -> 333 ... this it 33.3ºC ... How can I convert the value to have 33.3 ºC in knx? Example: the value in the bus is 333 (33.3ºC) { "name": "Temperature AQS", "bus_datatype": "int16", "datatype": "int16", "type": "inputregister", "address": 1, "writable": false, "value_multiplier": 0.1, "units": "°C" } return 33 ºC why ? I convert the value to 33.3 but in the display is an integer value and ignore the decimal part... I dont have any "float" with 1 byte.. to show the correct value.. If I try to multiply with 10, I get 3330 ... but this is not a 2Bytes value to convert to 9.0001.. any solution ? RE: Modbus - Daniel - 18.07.2024 Change bus_datatype to float16 RE: Modbus - joaodaniel.pereira - 19.07.2024 (18.07.2024, 16:55)Daniel Wrote: Change bus_datatype to float16 And the value for datatype ? RE: Modbus - admin - 19.07.2024 datatype should stays as is - int16 RE: Modbus - joaodaniel.pereira - 19.07.2024 Thanks, Fixed. Here: https://kb.logicmachine.net/misc/modbus-profile/#bus_address bus_datatype is not clear.. " bus_datatype Mapped object data type, key from dt table string/number, required Example: uint8, scale or float32 " what datatypes support ? |