Your Universal Remote Control Center
RemoteCentral.com
Crestron Control Systems Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 8 made on Wednesday March 30, 2016 at 10:14
weddellkw
Long Time Member
Joined:
Posts:
January 2013
186
On March 29, 2016 at 18:20, mullsey said...
Thank you SWOInstaller.

Yes, there is a second relay to close the valve.

At present I have an on button, this activates a stepper that pulses the open valve relay for 3 seconds to open the valve. Once the valve is opened another relay is set to high to turn on the pump. What has happened due to my basic programming skills is that if the on button is pressed again by mistake it is opening the valve for another 3 seconds but then turning the pump off.

Ideally what I want to happen is if the on button is pressed again by mistake to check to see if the valve is already open and the pump is running before the button press gets to the stepper.

I hope this makes sense.

Thanks again

[Link: i.imgur.com]; - A VERY basic implementation.  The off logic will trigger at system startup btw.  (out* evaluates high at startup.)


Hosting Services by ipHouse