4/8/2021 11:24 PM | |
Joined: 2/15/2021 Last visit: 4/14/2022 Posts: 14 Rating:
|
Hi, I have searched the forums and read the manuals the last weeks and is getting close to finish my first Logo! project. It´s a simple controller for my home built hot tube. At the moment I have an Arduino-based controller that I now will replace with a Logo!-system. I have the 12/24v Logo! with the AM2 RTD module and 2 PT1000 sensors attached. I measure the water temp with one of the sensors, I adjust the water temp with a "Analog Threshold trigger" through the LWE-page. I also count the number of times the heater (Q1) has been starting and also measure the time it has been on. This is reseted every 24 hours. Actually everything works fine except one thing. I can't get the actual water temp to show the correct value with 1 decimal on the LWE-page. I Changed the resolution to x0.1 and all looks good in the simulation. The counter is working and Q1 is triggered. But in real life it does not work. I adjust the temp but the Q1 is never triggered. When I change the resolution to x1 it works fine but I can´t show the decimal on the page that I really want. Can someone help me and explain how this works and also how I can solves my little issue. Other input on my program is also welcome of course :) Thanks in advance. Attachmentpool.zip (298 Downloads) |
4/9/2021 4:39 AM | |
Joined: 12/18/2014 Last visit: 8/22/2024 Posts: 33603 Rating:
|
I've changed your program a little. For the correct display of the temperatures with one decimal place when using PT100/1000, the following setting applies to the analog amplifier: Sensor type: PT100/1000 Minimum: -500 Maximum: 2000 Gain: 2.5 Offset: -500 Resolution: x0.1 Decimal places in the message text: 1 I swapped the two analog threshold value switches and the RS element for an analog differential threshold value switch to control the heating. With these you can simply set a fixed hysteresis (delta). Then negate the output. Example: Desired water temperature: 20.0 °C (is the ON value). Set delta: -1.5 °C. If the water temperature now falls below 18.5 °C (20.0 -1.5 = 18.5), the heating is switched on. If the water temperature rises above 20.0 °C due to heating, the heating is switched off again. I have also replaced the flags with open terminals, this saves you the flags.
AttachmentPoolstyrning_V2.zip (350 Downloads) |
This contribution was helpful to
1 thankful Users |
Follow us on