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.

GCHV Modbus to LM5
#1
           
Guys, I have problem with GCHV modBus Gateway I have write the script however I can't write
can you please check it . ??

Code:
{
  "manufacturer": "GCHV",
  "description": "test",
  "mapping": [
      {
      "name": "On Off",
      "address": 40003,
      "value_custom": {
        "1": "Off",
        "2": "On"
          },
      "bus_datatype": "float32",
      "datatype": "uint8",
      "type": "register",
  "value_bitmask": "0XC000",
  "writable": true,
      "write_bitmask": true
    },
      {
      "name": "Setting tempreture",
      "address": 40003,
      "bus_datatype": "temperature",
      "datatype": "uint8",
      "type": "register",
  "value_bitmask": "0X001F",
  "writable": true,
      "write_bitmask": true
    },
{
      "name": "Fan speed",
      "address": 40003,
      "value_custom": {
        "1": "low spped",
        "2": "middle spped",
        "4": "high speed",
        "8": "Auto speed(low speed for GEN3+)"
      },
      "bus_datatype": "uint8",
      "datatype": "uint8",
      "type": "register",
  "value_bitmask": "0X01E0",
  "writable": true,
      "write_bitmask": true
    },
{
      "name": "setting mode",
      "address": 40003,
      "value_custom": {
        "1": "cooling mode",
        "2": "dehumidification mode (cooling mode for GEN3+)",
        "4": "Ventilation mode",
        "8": "heating mode",
        "16": "AUTO mode(cooling mode for GEN3+)",
        "9": "floor heating",
        "10": "intelligent floor heating"
      },
      "bus_datatype": "uint8",
      "datatype": "uint16",
      "type": "register",
  "value_bitmask": "0X3E00",
  "writable": true,
      "write_bitmask": true
    }
  ]
}

Attached Files
.xlsx   NEW MODBUS TABLE.xlsx (Size: 40.33 KB / Downloads: 3)
Reply
#2
To get real holding register address subtract 40001 from the documented address. Set bus_datatype for On/Off to uint8 instead of float32.
Reply
#3
Sorry, I didn't get it Admin,
what do you meant by "subtract 40001 from the documented address"
Reply
#4
If documented starting address is 40001 then in reality it is 0. All other registers addresses = ADDRESS - 40001.
Reply
#5
Updated,
you can see the excel attached.
can you show me an example please ??
Reply
#6
First indoor unit holding register addresses are 0 and 1, second - 2 and 3, and so on.
Reply
#7
Should this works ??

Code:
{
  "manufacturer": "GCHV",
  "description": "test",
  "mapping": [
      {
      "name": "On Off",
      "address": 0,
      "value_custom": {
        "1": "Off",
        "2": "On"
          },
      "bus_datatype": "uint8",
      "datatype": "uint8",
      "type": "register",
  "value_bitmask": "0XC000",
  "writable": true,
      "write_bitmask": true
    },
      {
      "name": "Setting tempreture",
      "address": 0,
      "bus_datatype": "temperature",
      "datatype": "uint8",
      "type": "register",
  "value_bitmask": "0X001F",
  "writable": true,
      "write_bitmask": true
    },
{
      "name": "Fan speed",
      "address": 0,
      "value_custom": {
        "1": "low spped",
        "2": "middle spped",
        "4": "high speed",
        "8": "Auto speed(low speed for GEN3+)"
      },
      "bus_datatype": "uint8",
      "datatype": "uint8",
      "type": "register",
  "value_bitmask": "0X01E0",
  "writable": true,
      "write_bitmask": true
    },
{
      "name": "setting mode",
      "address": 0,
      "value_custom": {
        "1": "cooling mode",
        "2": "dehumidification mode (cooling mode for GEN3+)",
        "4": "Ventilation mode",
        "8": "heating mode",
        "16": "AUTO mode(cooling mode for GEN3+)",
        "9": "floor heating",
        "10": "intelligent floor heating"
      },
      "bus_datatype": "uint8",
      "datatype": "unit8",
      "type": "register",
  "value_bitmask": "0X3E00",
  "writable": true,
      "write_bitmask": true
    }
  ]
}
Reply
#8
Change all datatype entries to uint16, keep bus_datatype unchanged.
Reply


Forum Jump: