|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Compressor Coding Question
Ok. I tried this compressor code however it doesn't seem to work. The only error is a watchdog error that only works when I enter this in. The Compressor Enable i put for debugging purposes if any one can help that would be great.
The error when running is : I/O Unit not detected or installed properly ps. this in a newly created project. When it was being run the labview wanted me to save changes to some vision code that I did't even touch Last edited by team3329 : 06-04-2010 at 10:47. |
|
#2
|
|||||
|
|||||
|
Re: Compressor Coding Question
Code looks fine.
Do you see the relay 2 status lights on the Digital Sidecar? How's the wiring?
|
|
#3
|
|||||
|
|||||
|
Re: Compressor Coding Question
Instead of "it doesn't seem to work", can you tell us what you expect it to do, and what it does instead?
I assume this is in the Begin.vi, and that you actually have a pressure switch connected to DIO 2 and a compressor on a Spike connected to Relay 2. Are all the Digital Sidecar power LEDs lit? Is the Relay 2 status light coming on? Have you replaced the Spike's fuse with a 20A breaker? Reading the status bits before the Compressor Start won't give you useful information, and those front panel indicators will not change after Begin has run. If you want to see the compressor enable status while the program is running, put the function in one of the loops in Periodic Tasks. |
|
#4
|
||||
|
||||
|
Re: Compressor Coding Question
Make sure you keep the compressor code you have where it is. The function you put in the periodic tasks should be a get refnum of the compressor and then read the state from there.
|
|
#5
|
|||
|
|||
|
Re: Compressor Coding Question
Everything is wired correctly. The pressure switch is connect in the digital side car in DIO 2 and the relay is on the digital side car Relay 2. We replaced the entire spike relay just to make sure that it wasn't that kind of error. In the Begin.vi I want the compressor to start up and run. I tried it in the periodic tasks (the Compressor Start), however everyone said that it needs to go in the begin.vi and let alone. Everytime I run the code I expect the compressor to come on but it doesn't.
Oddly before it worked when I created a seprate vi that had Open>>Start in the 100ms periodic tasks - the problem was the allocation error. I fixed it by moving it to begin like it was supposed to and now nothing works ps. thnks |
|
#6
|
|||||
|
|||||
|
Re: Compressor Coding Question
Have you verified that the pressure switch is closed? Did you enable the robot? Are there any diagnostic messages on the Driver Station? Is the Relay 2 Fwd status light on the Digital Sidecar coming on? What color is the LED on the Spike itself? Have you replaced the Spike's fuse with a 20A breaker?
|
|
#7
|
||||||
|
||||||
|
Re: Compressor Coding Question
What is the state of DIO 2 on the dashboard. If it is off (dark), the pressure switch is wired and working correctly. If it is on (green), there is a problem with the pressure switch or wiring.
Also look at the state of relay 2 on the dashboard. If it is green, but the corresponding LED on the digital sidecar isn't green, then you likely have a problem with the digital sidecar wiring. What is the color of the LED on the compressor spike? |
|
#8
|
|||
|
|||
|
Re: Compressor Coding Question
Here is my spike and dio. No lights are on on the dashboard for the relay. The Diognostic error is: Watchdog Expiration System12, User 3 No Change to Network Configuration: "Local Area Connection" I/O unit not detected or installed correctly. The amp breaker is 20 and is working. The light on the spike is orange (kinda hard to see in picture) the robot is enabled in Teleop Ps I can still drive |
|
#9
|
|||||
|
|||||
|
Re: Compressor Coding Question
Your picture of the Spike shows its fuse still in place. Remove it and replace it with a 20A circuit breaker. The startup current for the compressor is high enough that you will blow a fuse eventually.
You haven't confirmed that the pressure switch is actually calling for the compressor to run. What is the state of the DIO2 indicator on the Dashboard? As a test, connect a wire directly across the terminals on the pressure switch to force the DIO input active. |
|
#10
|
||||
|
||||
|
Re: Compressor Coding Question
I suspect the switch isn't working, either it is not working itself (maybe) or the wiring isn't right (more likely). If you short the pressure switch sensor wires together the compressor should run and stay on (Please don't do this for long, unless you have all the relief valve's installed) and the relay led should turn green.
|
|
#11
|
|||
|
|||
|
Re: Compressor Coding Question
The pressure switch isn't working when shortened. The relay light isn't on on the dashboard and I'm not sure if the GPIO State is the DIO indicator - if it is then the light isn't on.
Could you show me a pic of a 20A breaker just so i don't insert the wrong thing. Thanks |
|
#12
|
|||||
|
|||||
|
Re: Compressor Coding Question
Quote:
The switch is already closed when the pressure is low. That will put a low level on the GPIO input, and the light will be off. Shorting it will have no effect. The light should be on only if the switch is open, which will happen when the pressure has reached 115 PSI. Shorting the pressure switch in that situation will force the compressor to remain on (that's how the main 120 PSI pressure relief valve is tested during inspection). To further verify that the wiring is good, unplug the sensor from the DIO pin and make sure the light comes on (just like all the other lights associated with unconnected DIO pins should be). Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Coding Relay with Compressor | Poke2201 | NI LabVIEW | 24 | 19-02-2010 18:31 |
| Coding Question | ZP8892 | Programming | 1 | 18-01-2010 20:04 |
| Major compressor question | star_lancer | NI LabVIEW | 3 | 16-02-2009 22:48 |
| Air Compressor Question | Jrocklz | Pneumatics | 4 | 17-01-2008 21:36 |
| compressor and light question... | archiver | 2001 | 5 | 24-06-2002 00:47 |