|
It should be pretty easy....
We plan to put the compressor spike on RLY 7 output and wire the pressure switch to rc_sw1 (pins 1 & 3) of the RC digital input. Then we just use the following code:
relay7_fwd = rc_sw1
relay7_rev = 0
in place of the current relay 7 code. This will have the compressor relay state follow the state of the pressure switch. (Low pressure = closed, high pressure = open). You could use this same scheme with any of the relay outputs and switch inputs.
It works OK with the emulator. Hopefully today or Monday we'll check it against the hardware (I never really trust that software stuff. My favorite programming language is solder.)
Bruce C.
|