"Connect" modbus devices - 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: "Connect" modbus devices (/showthread.php?tid=5190) |
"Connect" modbus devices - Stieges - 05.01.2024 Hey together, i finally made it and can read values from my modbus devices (thank you Daniel). I thought that if i connect both devices with one object that the value will be written to the other modbus device. In particular i am talking about a PV inverter and a heat pump. I want to send the values of the current DC production and und current DC Export to the heat pump. But somehow it does not work. Unfortunately i didn't find any information in the forum. The steps: i read the values of the inverter and write it to an object 12/1/1 and 12/1/2 (write on bus enabled) I added the heatpump and connected the datafields to 12/1/1 and 12/1/2 Below i send you the Profil for the heatpump. Code: { Can somebody help me out with this? i have seen several threads about connection the idm heatpump with iobroker but i didn't see a difference to my parameters. thx in advance RE: "Connect" modbus devices - Daniel - 05.01.2024 1000 is read only so you cannot write to it. 74 and 78 can be written. Can you read them correctly? By looking on the gap between registers I'm guessing it maybe int64 with a multiplier. Did you try writing to it manually? RE: "Connect" modbus devices - admin - 05.01.2024 Also try a different read_swap mode (w). Check that the read value of register 1000 is correct. RE: "Connect" modbus devices - Stieges - 05.01.2024 (05.01.2024, 11:56)admin Wrote: Also try a different read_swap mode (w). Check that the read value of register 1000 is correct. I can read the temperatur vom register 1000 with this settings. My problem is to write to 78 and 74. So in general the things i have done is right? RE: "Connect" modbus devices - Daniel - 05.01.2024 In general yes but the DPT might be different for 74/78 can you read it correctly? RE: "Connect" modbus devices - Stieges - 05.01.2024 (05.01.2024, 12:41)Daniel Wrote: In general yes but the DPT might be different for 74/78 can you read it correctly? The heat pump has no internal value for PV production. If i read it the value is always 0 which is probably right. i can read 4122 with input register, float32 and read swap n. And i somewhere have read that 74 and 78 need holding register. which makes sense since you can not write to inputregister right? RE: "Connect" modbus devices - Daniel - 05.01.2024 Based on the standard yes you should not write to inputregisters but manufactures not always fallow the standard I don't know DE but seems the description below the table says it is float32. Try different settings and if nothing helps contact manufacture to clearly describe which modbus function you should use for reading and writing and the format. RE: "Connect" modbus devices - Stieges - 26.01.2024 Hey guys. Unfortunatlly i couldn't reach anybody at the manufacturer at the moment. I tried several settings but with noch luck. But i found something at the loxone library for that heat pump and they say this should work. I post you a snippet maybe you guys recognize the mistake i made. Code: <?xml version="1.0" encoding="UTF-8"?> Code: { |