View Single Post
  #5   Spotlight this post!  
Unread 10-02-2005, 16:02
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: basic pneumatic help needed

Quote:
Originally Posted by Anton
I've been to there but I haven;t found anything about programming. are you sure there is something useful for me? or maybe I have just missed it?
The "programming" consists of a single line of code. In the Buttons to Relays section of the default code, well-camouflaged among all the other copying of input switches to output relays, lies this small nugget:
Code:
  relay8_fwd = !rc_dig_in18;  /* Power pump only if pressure switch is off. */
With this line in Default_Routine(), the pressure switch wired between ground and digital input 18, and the compressor wired between ground and the FWD output of a Spike connected to the relay 8 output, you're golden.