|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Working Pump Code
I need a working pump code, fast. Can anyone post a real working copy? Thanks in advance.
-Dan |
|
#2
|
|||
|
|||
|
'Place this in the main loop
gosub Comp_Switch: 'Place this below the main loop Comp_Switch: if rc_sw2 = 0 then low_pres: 'Compressor switch comp_on = 0 'counter variable relay1_fwd=1 relay1_rev=0 return low_pres: 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 relay1_fwd=1 relay1_rev=0 comp_on = comp_on + 1 return compress_off: 'Deactivate Compressor relay1_fwd=0 relay1_rev=0 return Hope it helps. This assumes that you are going into digital inputs 2 and 6. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is your most prefered programming language? | Hailfire | Programming | 156 | 19-01-2005 21:42 |
| pneumatic wiring | nick_champ_2 | Electrical | 3 | 23-02-2003 01:21 |
| Does your team use the Default code. | Jeff McCune | General Forum | 2 | 09-01-2003 14:46 |
| Auto Air Pump Code | zorro | Programming | 25 | 05-01-2003 16:50 |
| Error found in programming for the pump and pressure switch | sjharobotics | Programming | 4 | 06-02-2002 17:46 |