|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Compressor will not turn on.
Try this:
Compressor *airCompressor; airCompressor = new Compressor(1,1); airCompressor->Start(); The code you supplied has an inadvertant error, you have declared a "new" of your variable, not of the base Compressor class. This should have given you a compiler error. |
|
#2
|
|||
|
|||
|
Re: Compressor will not turn on.
I have that code in the program I just forgot to put the Compressor *airCompressor up in the post. Thanks for the reply though.
|
|
#3
|
||||
|
||||
|
Re: Compressor will not turn on.
Is the LED on the spike changing color? If so, the the problem is between the spike and the compressor.
Look at the DSC - is the LED next to the relay output lighting up when the compressor should turn on? If so, then the problem is between the DSC and the spike. Is the pressure switch plugged into the correct DIO port? Using the console to output the state of the DIO in that same slot to make sure it's working correctly (carefully and safely pressurize the system using a shop compressor, which has it's own feedback loop to ensure safe operation!). These are all leading questions to try and figure out where the problem is - there's a long chain of stuff that has to work (pressure switch, wire to the DSC, code, relay output on the DSC, spike, and finally compressor) to get the compressor to turn on/off at the right time. Your best bet is to start at the beginning of the chain and work your way down until you find where it stops working as expected. |
|
#4
|
||||
|
||||
|
Re: Compressor will not turn on.
Another point worth checking is whether or not the fuse in the spike has blown out. You can legally (and it is advised) to put a 20amp circuit breaker in its place.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|