View Full Version : Working Pump Code
02-02-2002, 09:47 AM
I need a working pump code, fast. Can anyone post a real working copy? Thanks in advance.
02-02-2002, 11:30 AM
'Place this in the main loop
'Place this below the main loop
if rc_sw2 = 0 then low_pres: 'Compressor switch
comp_on = 0 'counter variable
if(comp_on = comp_off) then compress_off: 'comp_off is set
'to 120. try other
'values to see which you like.
'Still not sure whcih value we'll use
comp_on = comp_on + 1
compress_off: 'Deactivate Compressor
Hope it helps. This assumes that you are going into digital inputs 2 and 6.
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.