Log in

View Full Version : Varification Required


Mark Reynolds
31-01-2004, 14:44
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

Rickertsen2
31-01-2004, 17:01
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.