Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Varification Required (http://www.chiefdelphi.com/forums/showthread.php?t=24602)

Mark Reynolds 31-01-2004 14:44

Varification Required
 
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

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.


All times are GMT -5. The time now is 04:22.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi