View Single Post
  #1   Spotlight this post!  
Unread 10-02-2008, 16:17
holty531 holty531 is offline
Registered User
FRC #2441
Team Role: Electrical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: hawaii
Posts: 15
holty531 is an unknown quantity at this point
solenoid programming

we have a festo single valve connected to an actuator.
once we turn on everything, the compressor goes on and then the actuator just goes out and stays out!
how do we program it so we can press a button to extend and retract?
can someone please post what their code looks like?

right now we have tried:

relay1_fwd = p2_sw_trig
relay1_rev = 0


and----


relay1_fwd = p2_sw_trig;
relay1_fwd = 0; relay1_rev=0;
relay1_fwd = 1; relay1_rev=0;