![]() |
|
GCHV Modbus to LM5 - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: GCHV Modbus to LM5 (/showthread.php?tid=5110) |
GCHV Modbus to LM5 - Samer - 24.11.2023 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
}
]
}RE: GCHV Modbus to LM5 - admin - 24.11.2023 To get real holding register address subtract 40001 from the documented address. Set bus_datatype for On/Off to uint8 instead of float32. RE: GCHV Modbus to LM5 - Samer - 24.11.2023 Sorry, I didn't get it Admin, what do you meant by "subtract 40001 from the documented address" RE: GCHV Modbus to LM5 - admin - 24.11.2023 If documented starting address is 40001 then in reality it is 0. All other registers addresses = ADDRESS - 40001. RE: GCHV Modbus to LM5 - Samer - 24.11.2023 Updated, you can see the excel attached. can you show me an example please ?? RE: GCHV Modbus to LM5 - admin - 24.11.2023 First indoor unit holding register addresses are 0 and 1, second - 2 and 3, and so on. RE: GCHV Modbus to LM5 - Samer - 24.11.2023 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
}
]
}RE: GCHV Modbus to LM5 - admin - 24.11.2023 Change all datatype entries to uint16, keep bus_datatype unchanged. |