|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Programming issues
I'm having a very weird programming issue. We're trying to add a compressor to the robot.
http://i.imgur.com/caAmo2B.png http://i.imgur.com/yWJXS5Z.png The spike is connected to the digital sidecar on relay 1, and I confirm the relay is working (because I wrote a very simple test program and all it does is open relay 1 and set it to run forward). Additionally, we have the pressure switch that is supposed to open at 115 psi connected to Digital I/O 1 on the digital sidecar. The two outer pins of the DIO is connected to the two terminals of the pressure switch. The problem is when the pressure rises to 125psi (beyond 115) the pump keeps running. To diagnose the problem I tried to read the DIO directly and send it to the dashboard but adding the DIO to the code stops the code from working. Simply adding the DIO stops the compressor from running. http://i.imgur.com/Qd153yO.png Additionally sometimes when teleop is started, the motors will sometime randomly jitter, turning the wheel a tiny amount. Very weird. The drive system seems to respond correctly though. The rangefinder attached to the analog module seems to work correctly through all this. Any idea what could have gone wrong? I can't figure out what could possibly be wrong. Could this be a bad sidecar? I remember one year we had a problem like this because the cable was incorrectly assembled, but the cable seems ok this time. Has anyone had this problem before? |
|
#2
|
||||||
|
||||||
|
Re: Programming issues
Quote:
Quote:
|
|
#3
|
|||||
|
|||||
|
Re: Programming issues
If you want to read the state of the pressure switch, you can use Test mode.
If you unplug the pressure switch from the DIO pins, does the compressor stop? |
|
#4
|
||||
|
||||
|
Re: Programming issues
I would make sure you have the correct DIO Switches and Pressure switches wired in both labview and on the robot.
|
|
#5
|
|||
|
|||
|
Re: Programming issues
I will check today. Is disconnecting the switch supposed to stop the pump? I thought the switch closes when the pressure is high.
Last edited by jeremy5561 : 05-02-2014 at 14:34. |
|
#6
|
|||||
|
|||||
|
Re: Programming issues
Quote:
If connecting the switch makes the compressor run even when the pressure is 120 psi or greater, and disconnecting it makes the compressor stop running, then there's very likely something wrong with the switch (or with the wiring between the switch and its connector). On the other hand, if the compressor still runs when the switch is disconnected, there is definitely something else wrong. |
|
#7
|
|||
|
|||
|
Re: Programming issues
In the periodic tasks you may want to put the compressor in an enable/disable structure.
|
|
#8
|
|||
|
|||
|
Re: Programming issues
It turns out it was because I opened DIO 1 after it was already assigned to the compressor.
Also I forgot to do Compressor Start during Begin.VI. I also discovered that the DIO returns True when the switch is open (e.g. when the switch is completely unplugged). We have the regulator and rest of the pneumatics line working. We have the low pressure side running at 60 PSI. We have one of the Festo VPLE18 single solenoid valve, but when we try to activate it the LED turns yellow, but the valve doesn't seem to do anything. We have the solenoid output connected to 1 and 2, SIG being connected to 2. We already tried 1 and 3 and that makes it worse (the LED doesn't turn on at all). The solenoid activates with the manual override. In labview, we tried Solenoid Set and we tried On, Forward, and Reverse. I'm a bit confused because I thought solenoids could only go one way, and double solenoids can only go 2 ways. What does the On setting do? Why isn't the solenoid moving? |
|
#9
|
|||
|
|||
|
Re: Programming issues
On a single solenoid you use on and off. On a double solenoid you use forward and reverse.
|
|
#10
|
|||||
|
|||||
|
Re: Programming issues
Quote:
You also can use Off on a double solenoid. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|