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

Login:
Pass:
 
 

Topic:
Programming question
This thread has 10 replies. Displaying all posts.
Post 1 made on Friday March 25, 2016 at 20:33
mullsey
Long Time Member
Joined:
Posts:
January 2009
111
I program my own system and have a question which I hope someone can help with.

I have a relay operating a swimming pool valve. When I open this valve I want to set a flag high I. If the button gets pressed again I want to check to see if the valve is already open. Can anyone please help with on how to do this and what symbols to use.

Many thanks
Post 2 made on Saturday March 26, 2016 at 11:38
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
Is the relay held open or just need to be pulsed? You basically want to create a toggle based on feedback?

What processor?

Can easily be done with a buffer and a not symbol.

Last edited by kgossen on March 26, 2016 11:57.
"Quality isn't expensive, it's Priceless!"
OP | Post 3 made on Sunday March 27, 2016 at 04:16
mullsey
Long Time Member
Joined:
Posts:
January 2009
111
I have two relays, one is being pulsed, this slightly opens a valve to water feature and the other is held open with a toggle, this is power for the pump.

I am using a 2 series processor.

Any other guidance would be much appreciated.
Post 4 made on Monday March 28, 2016 at 16:16
SWOInstaller
Select Member
Joined:
Posts:
October 2010
1,596
On March 27, 2016 at 04:16, mullsey said...
I have two relays, one is being pulsed, this slightly opens a valve to water feature and the other is held open with a toggle, this is power for the pump.

I am using a 2 series processor.

Any other guidance would be much appreciated.

For the one that is pulsed, can you pulse it multiple times to adjust the amount of water that is able to flow through the valve, or is it a pulse to open and pulse to close?

The other one is easy and just send the output of your toggle to the feedback of your interface.
You can't fix stupid
OP | Post 5 made on Monday March 28, 2016 at 22:41
mullsey
Long Time Member
Joined:
Posts:
January 2009
111
The relay that is pulsed can be pulsed multiple times to adjust the amount of water.

I am hoping someone might be able to send a couple of screen shots with an example of how to get this to work.

Many thanks...
Post 6 made on Tuesday March 29, 2016 at 09:26
SWOInstaller
Select Member
Joined:
Posts:
October 2010
1,596
For the one that is pulsed is there a second relay to close the valve?

Can you provide a bit more detail how this waterfall relay is working? That will help with trying to come up with a solution for this.

I would use max 5 presets for the waterfall (0%, 25%, 50%, 75%, 100% water flow) From there you will have 5 buttons on your interface (Off, 25%, 50%, 75%, 100%) Using an interlock for your button press the output of the interlock will go into a truth table. You will need to have a second set of inputs and these come from the current position of your valve which will also come from an interlock.

Within the Truth table you will need to compare each possible option and on the output you will need to connect them to a one shot for each possibility. You will also need 5 Or's, one for each preset. Your output of the Or goes into the input of your second interlock (the one being used for current valve position).
You can't fix stupid
OP | Post 7 made on Tuesday March 29, 2016 at 18:20
mullsey
Long Time Member
Joined:
Posts:
January 2009
111
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
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.)
Post 9 made on Wednesday March 30, 2016 at 10:53
SWOInstaller
Select Member
Joined:
Posts:
October 2010
1,596
On March 30, 2016 at 10:14, weddellkw said...
  - A VERY basic implementation.  The off logic will trigger at system startup btw.  (out* evaluates high at startup.)

From what I have gathered from mullsey, he has both an ON and OFF button on his interface and doesn't want the logic to run if someone accidently hits the button a second time. For this he would want to use a SR (to hold the pump relay ON) but to also feed the Enable of two buffers which would stop that second button press from happening. He can also send the outputs of the latch to the feedback on his buttons to know the current status of the system.

Your logic does work if he only has one button for ON and OFF but in this case I don't think he has that.
You can't fix stupid
Post 10 made on Wednesday March 30, 2016 at 11:12
SWOInstaller
Select Member
Joined:
Posts:
October 2010
1,596
For what Mullsey has provided I think that this will work better for him.
You can't fix stupid
Post 11 made on Wednesday March 30, 2016 at 13:06
weddellkw
Long Time Member
Joined:
Posts:
January 2013
186
On March 30, 2016 at 11:12, SWOInstaller said...
For what Mullsey has provided I think that this will work better for him.

Thanks, you're correct.


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse