Posts: 5
Threads: 2
Joined: Nov 2023
Reputation:
0
24.11.2023, 10:25
(This post was last modified: 24.11.2023, 11:03 by Samer.)
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
}
]
}
Posts: 7761
Threads: 42
Joined: Jun 2015
Reputation:
447
To get real holding register address subtract 40001 from the documented address. Set bus_datatype for On/Off to uint8 instead of float32.
Posts: 5
Threads: 2
Joined: Nov 2023
Reputation:
0
Sorry, I didn't get it Admin,
what do you meant by "subtract 40001 from the documented address"
Posts: 7761
Threads: 42
Joined: Jun 2015
Reputation:
447
If documented starting address is 40001 then in reality it is 0. All other registers addresses = ADDRESS - 40001.
Posts: 5
Threads: 2
Joined: Nov 2023
Reputation:
0
Updated,
you can see the excel attached.
can you show me an example please ??
Posts: 7761
Threads: 42
Joined: Jun 2015
Reputation:
447
First indoor unit holding register addresses are 0 and 1, second - 2 and 3, and so on.
Posts: 5
Threads: 2
Joined: Nov 2023
Reputation:
0
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
}
]
}
Posts: 7761
Threads: 42
Joined: Jun 2015
Reputation:
447
Change all datatype entries to uint16, keep bus_datatype unchanged.
|