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 profile generator
#21
Yes, just create new sheet, name it and use in the custom_value field. You can add as many you want.
------------------------------
Ctrl+F5
Reply
#22
Nice work thank !
Just a precision for others, I used office 13 and doesn't work.
I upgrade to 2016 and perfect working !
-----------
FRANCE SMARTHOME & SMARTBUILDING INTEGRATION
SE ECO EXPERT
Reply
#23
I created a profile with modbus profile generator,but I'm not sure that i did it correctly would you guys check it for me please ?
Code:
{
  "manufacturer": "YORK",
  "description": "HA-MA164AD",
  "mapping": [
    {
      "name": "Indoor Unit Setpoint Temperature C\u00B0",
      "address": 1,
      "bus_datatype": "uint32",
      "datatype": "uint32",
      "type": "register",
      "units": "A",
      "writable": "true"
    },
    {
      "name": "Indoor Unit Mode Selection",
      "address": 2,
      "bus_datatype": "uint32",
      "datatype": "uint32",
      "type": "register",
      "units": "A",
      "writable": "true"
    },
    {
      "name": "Indoor Unit Fan Speed",
      "address": 3,
      "bus_datatype": "uint32",
      "datatype": "uint32",
      "type": "register",
      "units": "A",
      "writable": "true"
    },
    {
      "name": "Indoor Unit Control Mode",
      "address": 4,
      "bus_datatype": "uint32",
      "datatype": "uint32",
      "type": "register",
      "units": "A",
      "writable": "true"
    },
    {
      "name": "Indoor Unit On/OFF",
      "address": 1,
      "bus_datatype": "bool",
      "datatype": "uint32",
      "type": "coil",
      "units": "A",
      "writable": "true"
    }
  ]
}

Attached Files
.pdf   libble-eu.pdf (Size: 76.56 KB / Downloads: 20)
Reply
#24
The datatype and bus_datatype for your registers are uint16. For Coil you can delete datatype.
Use Read test tool to check it if all is correct. It is possible that you will have to shift registers by 1 as we starting to count from 0.
------------------------------
Ctrl+F5
Reply
#25
Also writable value should be true without quotes otherwise newer firmware won't accept the profile. Addressing starts with 0 and for mode/speed registers you can use 1 byte (uint8) data type.
Code:
{
  "manufacturer": "YORK",
  "description": "HA-MA164AD",
  "mapping": [
    {
      "name": "Indoor Unit Setpoint Temperature",
      "address": 0,
      "bus_datatype": "uint16",
      "datatype": "uint16",
      "type": "register",
      "writable": true
    },
    {
      "name": "Indoor Unit Mode Selection",
      "address": 1,
      "bus_datatype": "uint8",
      "datatype": "uint16",
      "type": "register",
      "writable": true
    },
    {
      "name": "Indoor Unit Fan Speed",
      "address": 2,
      "bus_datatype": "uint8",
      "datatype": "uint16",
      "type": "register",
      "writable": true
    },
    {
      "name": "Indoor Unit Control Mode",
      "address": 3,
      "bus_datatype": "uint8",
      "datatype": "uint16",
      "type": "register",
      "writable": true
    },
    {
      "name": "Indoor Unit On/Off",
      "address": 0,
      "bus_datatype": "bool",
      "type": "coil",
      "writable": true
    }
  ]
}
Reply
#26
Hello again;

When try to upload new profile i got this error message.

Attached Files Thumbnail(s)
   
Reply
#27
Attach your profile file. Seems like a copy/paste error.
Reply
#28
Here it is.

Attached Files
.json   HA-MA164AD.json (Size: 1.17 KB / Downloads: 9)
Reply
#29
Try the attached profile. Copied profile had different space characters which are not allowed. Also there were some errors in the profile definition.

Attached Files
.json   HA-MA164AD.json (Size: 1008 bytes / Downloads: 19)
Reply
#30
HI I HAVE AN ISSUE WITH PROFILE GENRATOR WHEN I TRY TO GENERATE JSON FILE I GET ERROR
'9'. please how can i solve it.

Attached Files
.xlsm   Generator.xlsm (Size: 128.51 KB / Downloads: 4)
Reply
#31
(03.10.2023, 12:16)mellotron Wrote: HI I HAVE AN ISSUE WITH PROFILE GENRATOR WHEN I TRY TO GENERATE JSON FILE I GET ERROR
'9'. please how can i solve it.

value_custom must be null if empty
------------------------------
Ctrl+F5
Reply
#32
(03.10.2023, 12:21)Daniel Wrote:
(03.10.2023, 12:16)mellotron Wrote: Bonjour, j'ai un problème avec le générateur de profil lorsque j'essaye de générer un fichier JSON, j'obtiens l'erreur
« 9 ». s'il vous plaît, comment puis-je le résoudre.

value_custom doit être nul s'il est vide

je have fill the empty custom value but get the same issue
Reply
#33
I just set all your custom_value to null and it worked, you probably did some typo in name.
------------------------------
Ctrl+F5
Reply


Forum Jump: