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 integration
#1
Hi,

I have manage to read temperature values in LM, but I am struggling with these on my uploade image.
Not sure how to write these in my .json file.

I added my profile.

Attached Files Thumbnail(s)
   
.json   Varmeanlegg.json (Size: 1.38 KB / Downloads: 23)
Reply
#2
Did you try adding "writable": 1 to your profile?
------------------------------
Ctrl+F5
Reply
#3
Also check the maximum temperature register address. It should be 38 not 36.
Reply
#4
(21.12.2021, 09:41)admin Wrote: Also check the maximum temperature register address. It should be 38 not 36.

Where do I check that?

But how can I add this in my profile:

Attached Files Thumbnail(s)
   
Reply
#5
Maximum temperature:
   

For Hot water demand add this to the mapping array:
Code:
{
  "name": "Hot water demand",
  "bus_datatype": "uint8",
  "datatype": "uint16",
  "type": "register",
  "address": 56,
  "writable": true
}
Reply
#6
(22.12.2021, 07:50)admin Wrote: Maximum temperature:


For Hot water demand add this to the mapping array:
Code:
{
  "name": "Hot water demand",
  "bus_datatype": "uint8",
  "datatype": "uint16",
  "type": "register",
  "address": 56,
  "writable": true
}


Hi, thank you for that. 
How does I map this function. I've tried this:
{ "bus_address": "12/0/7", "name": "Kjøremodus", "bus_datatype": "7", "datatype": "u8", "type": "register", "address": 237 }, 
Butr this gives me value 1 all the time. Should get 0 for Auto, 1 for Manual and 2 for Ad.heat.

Attached Files Thumbnail(s)
   
Reply
#7
Try with "dataype":"uint16" as "u8" is not a valid datatype. See https://openrb.com/docs/modbus.htm
Reply


Forum Jump: