View Single Post
  #4   Spotlight this post!  
Unread 12-06-2015, 11:52
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,795
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 programming help needed

I'd look at the wiring and tubing first as those could easily have changed since your last competition, while the code at face value seems okay.
  • I assume the False case's are completely empty? Any reference at all to the solenoid in the False cases would break the code. There are safer ways to structure this, but leave that for future improvements.
  • Divide and conquer - If the code is working correctly then the PCM will show a red led on the solenoid 0 or solenoid 1 outputs. If these toggle when the buttons are pushed then your code is fine. If they do not toggle then the code is the problem.
  • If the code seems to be the problem also check the PCM to see that the status light on it is not blinking red. Red means the CAN wires are not properly connecting it to the roboRIO. It receives the code commands over CAN.
  • If the PCM LEDs are changing from Solenoid 0 to Solenoid 1 and vice versa when the buttons are pushed, then look next at your double solenoid where it also generally has indicator lights when one side or the other is activated to see that they are working correctly. If the PCM LEDs are glowing but the double solenoids are not then check the wiring between the PCM and solenoid.
  • If the double solenoid lights are changing, but the pressure is not, then check the voltage required by the solenoid and make sure the PCM jumper is set for 12v or 24v as necessary.
  • If the PCM jumper is set correctly, then check that the solenoid wires are in the correct red/black orientation connected to the PCM outputs.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-06-2015 at 12:04.
Reply With Quote