View Single Post
  #2   Spotlight this post!  
Unread 31-01-2008, 22:21
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: programming pneumatics

With the switch connected to a digital INput (other side to ground), you write code like

If (Dig_In_x) equals 1
Set (Spike_Relay_X) to ON
ElseIf (Spike_Relay_X) is OFF

And check it every loop.

DO NOT SET THE COMPRESSOR TO ALWAYS ON, you'll exceed a safe pressure and pop the release valve. You MUST control the compressor, inspectors look for this.

(You need to write real code for this)
__________________

I am N2IRZ - What's your callsign?