View Single Post
  #2   Spotlight this post!  
Unread 31-01-2008, 14:16
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Pneumatics?????????

Wire the pressure switch to one of the digital inputs.
Make sure that the digital input you'd like to use is enabled as an input in the "Controller Configuration" under Project.
Hook a Spike relay for the compressor and Spikes for each solenoid valve to RC Relay ports.

In the "Initialize" block add:
From "Function Blocks" -- "Pressure Switch" under "Outputs"
This will run the compressor when the pressure is low.

In the "OperatorControl" block add logic to activate each solenoid via a joystick button, etc. then add:
"Relay Output" under "Outputs"
For each of your solenoid Spike relays to actually work the solenoid.

A single action solenoid has two positions:
1) Forward=1,Reverse=0
2) Forward=0, Reverse=0

A double action solenoid is handled differently. If you wire them according to the diagram in the Spike Guide:
1) Forward=1, Reverse=0
2) Forward=1, Reverse=1
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle