Thread: FESTO question
View Single Post
  #2   Spotlight this post!  
Unread 29-03-2005, 20:46
Pat Fairbank's Avatar
Pat Fairbank Pat Fairbank is offline
Circuit Breaker
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2001
Location: San Jose, CA
Posts: 2,132
Pat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond repute
Send a message via MSN to Pat Fairbank
Re: FESTO question

Hi Chris,

The single solenoid will only stay on as long as the button is depressed, if you're setting the relay controlling it directly equal to the button. To control it sort of like a double solenoid (it'll still act like a single when the power is off), try something like this:

Code:
if (p1_sw_trig == 1) relay1_fwd = 1;
if (p1_sw_top == 1) relay1_fwd = 0;
This would make a single solenoid hooked up to relay1 turn on when p1_sw_trig is pressed, and stay on until p1_sw_top is pressed.
__________________
Patrick Fairbank
Team 254 | Mentor (2012-)
Team 1503 | Mentor (2007-2011)
Team 296 | Alumnus (2001-2004) | Mentor (2005-2006)

patfairbank.com

Last edited by Pat Fairbank : 29-03-2005 at 20:53.