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
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.
*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.
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.
i was wondering where you would input the code?
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.