![]() |
Double solenoid code
I've been trying to wrap my head around this code for two days now and I can't figure it out. I've got the declaration (DoubleSolenoid festo) and the port set ( festo(1, 2)) what is the code for teleop that gives me control of the solenoid, this is the only thing I can't get
|
Re: Double solenoid code
http://wpilib.screenstepslive.com/s/...ders-solenoids should tell you what you need to know. Briefly, use the Set() method of the DoubleSolenoid class, passing it one of the constant values kOff, kForward, and kReverse.
|
Re: Double solenoid code
My line of code for Set() looks like this
Code:
festo.Set(kForward);Code:
C:/windriver/workspace/SimpleTemplate/MyRobot.cpp: In member function `virtual void RobotDemo::OperatorControl()': |
Re: Double solenoid code
Quote:
|
Re: Double solenoid code
Quote:
|
Re: Double solenoid code
Quote:
|
Re: Double solenoid code
Quote:
|
Re: Double solenoid code
Okay, tested the program but I still have an issue.
The code seems to be working, I can see the lights on the FESTO changing as I hit the button on the joystick, however, it seems that the solenoid will not fire. Is this a wiring or more code problem? And how can we get this fixed? |
Re: Double solenoid code
Is it a 12 volt or a 24 volt solenoid? Are you providing it with the voltage it requires?
Do you have enough pneumatic pressure supplied to it for the pilot valve to activate? |
Re: Double solenoid code
Quote:
|
Re: Double solenoid code
Quote:
|
Re: Double solenoid code
Quote:
|
Quote:
|
Re: Double solenoid code
Quote:
The cRIO only uses the first two terminals of the four on the 24v output of the Power Distribution Board. Use the second two to feed the Solenoid Breakout. (The black connectors show a NC on the third terminal, but the PDB itself provides 24v there.) |
| All times are GMT -5. The time now is 12:12. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi