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.

Swegon Modbus VAV
#1
Hi, 
I'm trying to integrate 5 Modbus VAVs into the LM5.

So, the first thing I tried to  read the Modbus registers in the LM5 and I can read all of them, change the values in the VAV and go back to the LM5 and the values change, so far so good. 

After that, I wrote the JSON file  and imported it into the LM5 and mapped the objects, here none of the objects update their value all of them have Zeros 
In the attachment you can see the manual of the VAV 
Code:
{
    "manufacturer":"Swegon",
    "description":"VAV",
    "mapping": [


   

    { "name": "Min relative value",
      "bus_datatype": "uint16",
      "type": "inputregister",
      "address": 105,
      "writable": 1},

    { "name": "Max relative value",
      "bus_datatype": "uint16",
      "type": "inputregister",
      "address": 106,
      "writable": 1},


    { "name": "Min. absolute value",
      "bus_datatype": "scale",
      "type": "inputregister",
      "address": 120,
      "writable": 1},


    { "name": "Max. absolute value",
      "bus_datatype": "scale",
      "type": "inputregister",
      "address": 121,
      "writable": 1},

    { "name": "Max. absolute value",
      "bus_datatype": "scale",
      "type": "inputregister",
      "address": 121,
      "writable": 1},
     
    { "name": "Absolute Flow",
      "bus_datatype": "uint16",
      "type": "inputregister",
      "address": 7,
      "writable": 0},







      { "name": "Unit",
      "bus_datatype": "uint16",
      "type": "inputregister",
      "address": 201,
      "value_custom":  { "0": "l/s", "1": "m³/h]", "2": "Pa"},
      "writable": 1}




              ]


}
       

     
   
   

(06.09.2022, 09:52)Fahd Wrote: Hi, 
I'm trying to integrate 5 Modbus VAVs into the LM5.

So, the first thing I tried to  read the Modbus registers in the LM5 and I can read all of them, change the values in the VAV and go back to the LM5 and the values change, so far so good. 

After that, I wrote the JSON file  and imported it into the LM5 and mapped the objects, here none of the objects update their value all of them have Zeros 
In the attachment you can see the manual of the VAV 
Code:
{
    "manufacturer":"Swegon",
    "description":"VAV",
    "mapping": [


   

    { "name": "Min relative value",
      "bus_datatype": "uint16",
      "type": "inputregister",
      "address": 105,
      "writable": 1},

    { "name": "Max relative value",
      "bus_datatype": "uint16",
      "type": "inputregister",
      "address": 106,
      "writable": 1},


    { "name": "Min. absolute value",
      "bus_datatype": "scale",
      "type": "inputregister",
      "address": 120,
      "writable": 1},


    { "name": "Max. absolute value",
      "bus_datatype": "scale",
      "type": "inputregister",
      "address": 121,
      "writable": 1},

    { "name": "Max. absolute value",
      "bus_datatype": "scale",
      "type": "inputregister",
      "address": 121,
      "writable": 1},
     
    { "name": "Absolute Flow",
      "bus_datatype": "uint16",
      "type": "inputregister",
      "address": 7,
      "writable": 0},







      { "name": "Unit",
      "bus_datatype": "uint16",
      "type": "inputregister",
      "address": 201,
      "value_custom":  { "0": "l/s", "1": "m³/h]", "2": "Pa"},
      "writable": 1}




              ]


}
       

    
   
   
Error log

Attached Files Thumbnail(s)
   
.pdf   reacta_modbus-m.pdf (Size: 65.53 KB / Downloads: 8)
Reply
#2
Change all types to "register" and create the device again after uploading new profile.
Reply
#3
(06.09.2022, 09:56)admin Wrote: Change all types to "register" and create the device again after uploading new profile.

The best support in the world , thanks a lot
Reply


Forum Jump: