Quote:
|
Originally Posted by RoboCoder
Code:
select rc_sw2
case 1
relay3_fwd = 1
relay3_rev = 0
case 0
relay3_fwd = 0
relay3_rev = 1
endselect
this is assuming that the pressure switch is normally closed (when 120 psi has NOT been reached). If the compressor doesnt turn on at all, swap the lines "case 1" and "case 0". hope this helps!
|
I don't think applying reverse polarity to a compressor will shut it off. The last line before the endselect should probably say relay3_rev = 0, setting both wires to the compressor to ground.