|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
||||||
|
||||||
|
Quote:
|
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
thanks
i was wondering where you would input the code?
|
|
#6
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with compressor | Nick R. | Pneumatics | 3 | 21-02-2003 10:51 |
| Air compressor never shuts off | Carl Owenby | Pneumatics | 4 | 08-02-2003 23:34 |
| compressor questions | Greg Needel | Pneumatics | 2 | 29-01-2003 16:58 |
| compressor? | BBFIRSTCHICK | Pneumatics | 11 | 22-01-2003 07:12 |
| programming the compressor | archiver | 2001 | 4 | 23-06-2002 23:19 |