View Single Post
  #2   Spotlight this post!  
Unread 31-01-2004, 17:01
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Varification Required

Quote:
Originally Posted by Mark Reynolds
Can someone please varify the following code function?

In the file: users_routines.c
Under the section: "Buttons to Relays"

relay8_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */

Please varify that we are indeed setting relay8 to Pin18 which is set as an output? We are confussed because this is the first year we have seen this. Thank you
It sets relay 8 to the opposite of pin 18 which is set as an[b]INPUT[/]. Hence the "!" operator. This means that when the pressure is to high( switch is closed circuit) the compressor is shut off. When the pressure is too low( switch is open circuit) thne compressor turns on.
__________________
1139 Alumni