Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Pneumatics (http://www.chiefdelphi.com/forums/forumdisplay.php?f=54)
-   -   Compressor (http://www.chiefdelphi.com/forums/showthread.php?t=16959)

TwoEdge47 25-01-2003 16:46

Compressor
 
need help with programming the compressor, used code that ive found here before but for some reason the compressor wont turn on. yes i have checked the program and the connections but still no go any help will be much appreciated thanks

Jferrante 25-01-2003 17:36

What relay # are you using? Are you using one or two pressure switches? What port(s) are they connected to?

If you had the compressor hooked up to relay1 and the pressure switch to rc_sw1 you're code could be as simple as:

relay1_fwd = 1 - rc_sw1

Of course you would need to add in some sort of timer to keep your compressor from cycling once the system filled up.

rbayer 25-01-2003 20:45

Quote:

Originally posted by Jferrante
What relay # are you using? Are you using one or two pressure switches? What port(s) are they connected to?

If you had the compressor hooked up to relay1 and the pressure switch to rc_sw1 you're code could be as simple as:

relay1_fwd = 1 - rc_sw1

Of course you would need to add in some sort of timer to keep your compressor from cycling once the system filled up.

You probably want to use relay1_fwd=rc_sw1 instead since the pressure switch is normally close (1) and only opens (0) when the pressure gets high enough. Also, due to the way this year's switch works (opens at 115, but doesn't close again until 95psi), you don't need any special code to avoid cycling.

Jferrante 26-01-2003 00:50

Thanks for correcting me. I've been doing alot of codes with the output needing to be opposite of the input. Guess answering posts after being up 36 hours straight really isnt such a great idea.

I didn't know about the delay on the pressure switches. Thats new to this year right? Oh well, you can still save power by putting a longer delay if you don't really use pneumatics much. Then just add in a line that checks if you've fired the pneumatics and if you have automatically start the compressor right away. Ill stop now, I think i'm starting to ramble.

TwoEdge47 27-01-2003 17:57

thanks
 
i was wondering where you would input the code?

jon virgi 04-02-2003 22:41

u can just put this :

relayX_fwd = rc_swY
relayX_rev = 0

where X is the relay used for compressor and Y is the switch of the pressure sensor, i assume u know which one corresponds to the pin u soldered the wires on.

and put this in the PERFORM OPERATIONS section of the program instead of the

relay2_fwd = p2_sw_trig &~ rc_sw3
relay2_rev = p2_sw_top &~ rc_sw4

or whichever relay you are using.


All times are GMT -5. The time now is 17:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi