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.

Mod_bus problem
#1
Hi, I'm trying to add a device with modbus but result is not as expected.

Problem 1:
value_custom is not added to objects.

Code:
{
 "manufacturer": "xxx",
 "description": "xxx",
 "mapping":[
 
   { "name": "320000 - SV - Varme System Anleggs modus", "bus_datatype": "int16", "type": "register", "address": 1651, "datatype": "int16",
     "bus_address": "32/0/40", "value_custom": { "0": "Stoppet", "1": "Startet" } }

 ]
}


Problem 2:

When trying to get value_bitmask i get 1 on all objects. The hexvalue is 0003 and should give value 1 in first 2 objects. 

Code:
{
 "manufacturer": "xxx",
 "description": "xxx",
 "mapping":[
   { "name": "370000.JP401 Start", "bus_datatype": "bool", "type": "register", "address": 1530, "datatype":"int16", "bus_address": "32/0/0",
      "value_bitmask": "0x00"},
   { "name": "370000.JP401 Drift", "bus_datatype": "bool", "type": "register", "address": 1530, "datatype":"int16", "bus_address": "32/0/1",
      "value_bitmask": "0x01"},
   { "name": "370000.JP401 Feil", "bus_datatype": "bool", "type": "register", "address": 1530, "datatype":"int16", "bus_address": "32/0/2",
      "value_bitmask": "0x02"},
   { "name": "370000.JP401 Kritisk alarm", "bus_datatype": "bool", "type": "register", "address": 1530, "datatype":"int16", "bus_address": "32/0/3",
      "value_bitmask": "0x03"}
  ]
}
Reply


Messages In This Thread
Mod_bus problem - by tormod@hoyemweb.no - 23.01.2018, 09:25
RE: Mod_bus problem - by admin - 23.01.2018, 10:48
RE: Mod_bus problem - by tormod@hoyemweb.no - 23.01.2018, 13:01
RE: Mod_bus problem - by tormod@hoyemweb.no - 23.01.2018, 14:24
RE: Mod_bus problem - by admin - 24.01.2018, 07:13

Forum Jump: