Logic Machine Forum
Modbus profile generator - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Modbus profile generator (/showthread.php?tid=3053)

Pages: 1 2


RE: Modbus profile generator - Daniel - 21.01.2022

Yes, just create new sheet, name it and use in the custom_value field. You can add as many you want.


RE: Modbus profile generator - domotiqa - 30.03.2022

Nice work thank !
Just a precision for others, I used office 13 and doesn't work.
I upgrade to 2016 and perfect working !


RE: Modbus profile generator - mkaymak - 22.06.2022

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"
    }
  ]
}



RE: Modbus profile generator - Daniel - 22.06.2022

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.


RE: Modbus profile generator - admin - 22.06.2022

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
    }
  ]
}



RE: Modbus profile generator - mkaymak - 30.06.2022

Hello again;

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


RE: Modbus profile generator - admin - 30.06.2022

Attach your profile file. Seems like a copy/paste error.


RE: Modbus profile generator - mkaymak - 30.06.2022

Here it is.


RE: Modbus profile generator - admin - 30.06.2022

Try the attached profile. Copied profile had different space characters which are not allowed. Also there were some errors in the profile definition.


RE: Modbus profile generator - mellotron - 03.10.2023

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.


RE: Modbus profile generator - Daniel - 03.10.2023

(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


RE: Modbus profile generator - mellotron - 03.10.2023

(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


RE: Modbus profile generator - Daniel - 03.10.2023

I just set all your custom_value to null and it worked, you probably did some typo in name.