10-22-2024 12:35 AM - edited 10-22-2024 12:48 AM
Hello! I have a timer for start / stop heat pump and manual control for it. But i can not do it correct. Looking for same advice. I need high priority for manual control. Thanks!
Solved! Go to Solution.
10-22-2024 01:05 AM
Hi black,
@black1 wrote:
I have a timer for start / stop heat pump and manual control for it. But i can not do it correct.
@black1 wrote:
Looking for same advice. I need high priority for manual control.
Suggestion: you can easily give "high priority" to the manual input when you only trigger events on rising/falling edges of your boolean signals…
10-22-2024 01:16 AM - edited 10-22-2024 01:20 AM
wait 100ms for RS485 protocol of Heat Pump
When timer is On, i want at any time turn OFF heat pump
Thanks!
10-22-2024 01:27 AM
Hi black,
@black1 wrote:
When timer is On, i want at any time turn OFF heat pump
When you want to act "any time" then you should not use a 100ms wait in the loop!
Btw. for serial communication you should not use wait functions, most often there are better ways: video!
@black1 wrote:
why do you generate a value change event for "Boolean" IN EACH ITERATION of your loop? (This is the main problem here!) - i guess, what i must fix?
Please re-read my suggestion in the previous message…
10-22-2024 02:05 AM - edited 10-22-2024 02:06 AM
I agree that your code makes very little sense.
If you want to turn on the heat pump as long as the hours are 5..10 AND manual on/off=TRUE, here's all you probably need. (Yes, you definitely need more code, but this should give you a few basics)
10-22-2024 01:01 PM
Thanks everyone!
I still can't figure out how to do:
The first event triggered the timer. The manual control button is turned on. The timer is still running. Pressing the manual control button turns off the timer and the heat pump. The highest priority for manual control.
Value(Signaling) is always a value change event, regardless of whether the value actually changed or not?
Thanks!
10-22-2024 02:07 PM
Hi black,
@black1 wrote:
Value(Signaling) is always a value change event, regardless of whether the value actually changed or not?
Yes.
That's the reason for my suggestion in the previous posts…
10-23-2024 12:53 AM
Thanks for all!
Solved by '' Relay Logic ''
10-23-2024 02:06 AM - edited 10-23-2024 02:07 AM
10-23-2024 09:57 AM
Thank you GerdW!
your VI is more simple solutiom!