|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Auto off air compressior code
Hello I was just wondering where to find the code that automatically. turns off the air compressor. Thank you
|
|
#2
|
|||||
|
|||||
|
Re: Auto off air compressior code
WPIlib in LabVIEW has a set of blocks to open, start, stop, and close the Compressor. When you open a compressor, you set the slot and port of the compressor AND the pressure switch. The set of blocks for the compressor will automatically handle the pressure switch for you. If you aren't using LabVIEW, the code associated for the compressor will automatically handle the pressure switch.
|
|
#3
|
||||
|
||||
|
Re: Auto off air compressior code
Is there a C++ lib for this also?
|
|
#4
|
||||
|
||||
|
Re: Auto off air compressior code
It should automatically handle the switch I guess.
|
|
#5
|
|||
|
|||
|
Re: Auto off air compressior code
In C++ and Java, after you create a compressor object and call its start method it will automatically turn the compressor on and off as needed.
You need to make sure you have the pressure switch wired up to a digital input correctly and that you specify the correct spike relay and digital input for the pressure switch when you create the object. |
|
#6
|
||||
|
||||
|
Re: Auto off air compressior code
Thank you for your post and I found it is the 2005 code
relay8_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */ relay8_rev = 0; Thank you for your support Last edited by Dark element : 24-01-2010 at 19:03. Reason: found what I was looking for |
|
#7
|
|||||
|
|||||
|
Re: Auto off air compressior code
In 2005 the code needed a single line of code:
Code:
relay8_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */ The Spike for the compressor is controlled by Relay 8 |
|
#8
|
||||
|
||||
|
Re: Auto off air compressior code
Ok now how can I change when the pump turns on and off
|
|
#9
|
|||||
|
|||||
|
Re: Auto off air compressior code
Whatever you want to do:
relay8_rev = 0; /* stays this way and doesn't change */ relay8_fwd = 1 /* Turns the compressor on */ relay8_fwd = 0 /* Turns the compressor off */ |
|
#10
|
||||
|
||||
|
Re: Auto off air compressior code
This is all very useful stuff. Thanks!
|
|
#11
|
|||
|
|||
|
Re: Auto off air compressior code
word of warning: 2005 code WONT work on your cRIOs. it was written under a MUCH different system, with completely different interfacing to the relays (Spikes) and motor controllers (jaguar/victor)
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Auto Code | ERROR 401 | Programming | 1 | 19-02-2009 00:53 |
| Off robot air compressor | sanddrag | Rules/Strategy | 52 | 11-01-2007 15:11 |
| Air compressor never shuts off | Carl Owenby | Pneumatics | 4 | 08-02-2003 23:34 |
| Auto Air Pump Code | zorro | Programming | 25 | 05-01-2003 16:50 |
| [white paper] Auto-Balance Gyro Code | Brandon Martus | Technical Discussion | 3 | 21-06-2001 10:36 |