View Single Post
  #5   Spotlight this post!  
Unread 11-01-2003, 14:45
Bruce C.'s Avatar
Bruce C. Bruce C. is offline
Registered User
#0647 (The Cyber Wolf Corps)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Killeen, Texas
Posts: 65
Bruce C. will become famous soon enough
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.
Reply With Quote