Posts: 187
Threads: 43
Joined: Jul 2015
Reputation:
2
Hi all,
Can someone please advice on how to write setpoint like the example below:
Function code:16
Register Address: 45004
Data Length: 2bytes
VRF unit - set temperature: bit0-bit6: 1–100 indicate 1–100°C / bit7: flag of half a degree (1 - Existence of 0.5°C, 0 - No 0.5°C)
Thank you in advance
George
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
Just write your value setpoint value to the register like 20, 22, 24 etc and if you want 20.5 you need to add 128 to the value (sets bit 7) so 20,5 = 20 + 128 = 148 to the register
You could create a small script to automate your calculation.
Posts: 16
Threads: 4
Joined: Nov 2021
Reputation:
0
Hi there,
I'm having some trouble enabling "active cooling" on my Iglu heat pump using Modbus. I've spent several hours trying to send commands through Modbus, but haven't been successful.
I should send 1 to 7th bit in the register 4005.
Here's the configuration I've been using:
{
"bus_address": "41/1/3",
"name": "Active Cooling enable",
"bus_datatype": "int16",
"datatype": "int16",
"type": "register",
"writable": true,
"write_multiple": true,
"address": 4005
}
I've also attempted using a bitmask configuration:
{
"bus_address": "41/1/3",
"name": "Active Cooling enable",
"bus_datatype": "int16",
"datatype": "int16",
"type": "register",
"writable": true,
"write_multiple": true,
"write_bitmask": true,
"value_bitmask": 128,
"address": 4005
}
However, neither approach has worked. I'm able to successfully send data to other registers that don't require a bitmask.
Is there anything I might be missing in my configuration?
Posts: 7758
Threads: 42
Joined: Jun 2015
Reputation:
447
Can you read this register value using read test? When using bitmask for a single bit in a register you can set bus_datatype to "bool".
Posts: 7758
Threads: 42
Joined: Jun 2015
Reputation:
447
Do you have any errors in the Modbus error log?
Posts: 4643
Threads: 24
Joined: Aug 2017
Reputation:
207
Drop documentation of this device
------------------------------
Ctrl+F5
Posts: 4643
Threads: 24
Joined: Aug 2017
Reputation:
207
Try removing write_multiple.
------------------------------
Ctrl+F5