2/12/2025 10:26 PM | |
Joined: 2/12/2025 Last visit: 3/24/2025 Posts: 3 Rating:
|
Hi, I have been running the attached program for a long time. Working just fine and I have used the Web server to check and change values. In short its a control for a hot tub. With sensor for air-temp and water-temp. Then there is a adjustable value for the desired water temperature. Now I have been playing with modbus. I have no problem at all to read the values from the analog inputs (VW), also the counting for number of heater switch on and also the timer that keep track of running time. But I want to read the status of Q1 but I can´t manage to do it. In Modscan I see that 8193 is switching on and off when triggering Q1 on and off. So far so good. Then I have tried a huge amount of different python-scripts to read this value but it never change. It just say its false/0/off all the time.. Any ideas why it does not work? I just want to read this value. All other values (VW) is no problem and works great. In the end i just tried to "convert" the Q1 info to a VW-value but I did not succeed. AttachmentPoolstyrning_3.0_20250213.zip (216 Downloads) |
Last edited by: AutoGen_6213332 at: 02/13/2025 19:26:13 |
|
2/13/2025 7:17 PM | |
Joined: 2/12/2025 Last visit: 3/24/2025 Posts: 3 Rating:
|
Oh, uploaded wrong file. Check the correct here. As mentioned, I can without problem read the analog inputs (vattentemp + lufttemp). I can also read the value that is the "set temp" that I choose from the site on the integrated webserver. But I do not get correct reading for Q1. When checking 8193 it says True all the time, no matter if the heater (värmare) is active or not. In Modscan the reading is correct and switches when the Q1 changes. Here is the code I try to use to read the values:
AttachmentPoolstyrning_3.0_20250213.zip (201 Downloads) |
2/13/2025 7:21 PM | |
Joined: 12/18/2014 Last visit: 9/12/2025 Posts: 35955 Rating:
|
Sorry, but for is here end. I have nothing to do with Python. |
2/13/2025 7:24 PM | |
Joined: 12/18/2014 Last visit: 9/12/2025 Posts: 35955 Rating:
|
Try this: Set the checkmark also by S7 access and by Modbus access. |
Follow us on