This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Modbus
#1
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 ?
Reply
#2
Change bus_datatype to float16
------------------------------
Ctrl+F5
Reply
#3
(18.07.2024, 16:55)Daniel Wrote: Change bus_datatype to float16

And the value for datatype ?
Reply
#4
datatype should stays as is - int16
Reply
#5
Thanks, Fixed.
Here:
https://kb.logicmachine.net/misc/modbus-...us_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 ?
Reply


Forum Jump: