Logic Machine Forum
Modbus integration - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2)
+--- Thread: Modbus integration (/showthread.php?tid=3761)



Modbus integration - Alexander - 20.12.2021

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.


RE: Modbus integration - Daniel - 21.12.2021

Did you try adding "writable": 1 to your profile?


RE: Modbus integration - admin - 21.12.2021

Also check the maximum temperature register address. It should be 38 not 36.


RE: Modbus integration - Alexander - 21.12.2021

(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:


RE: Modbus integration - admin - 22.12.2021

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
}



RE: Modbus integration - Alexander - 25.12.2021

(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.


RE: Modbus integration - Erwin van der Zwart - 25.12.2021

Try with "dataype":"uint16" as "u8" is not a valid datatype. See https://openrb.com/docs/modbus.htm