|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#4
|
|||
|
|||
|
Re: NEED HELP with Delay loop for compressor relay switch
Posted by Mike Gray at 03/12/2001 2:20 PM EST
Engineer on team HOT from Huron Valley Schools sponsored by GM Milford Proving Ground. In Reply to: NEED HELP with Delay loop for compressor relay switch Posted by Erik on 03/12/2001 11:54 AM EST: Here's one way to do it. Simple, and uses only one byte. First declare a new variable and initialize it: compdelay var byte compdelay=1 Set the upper limit constant complimit con 30 Increment or decrement the variable as a function of rc_sw1 (or whatever input you use). compdelay=compdelay+rc_sw1 - (1-rc_sw1) min 1 max complimit Then add a LOOKDOWN table to the main loop: lookdown compdelay, |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Actual execution time measurement | Dan | Technical Discussion | 5 | 24-03-2003 11:36 |
| spike for pressure switch? | Rob Colatutto | Rules/Strategy | 4 | 23-02-2003 15:42 |
| Using a switch before autonomous operation | KZos550 | Programming | 11 | 04-02-2003 19:12 |
| 1 or 2 phase switch | archiver | 2001 | 0 | 24-06-2002 00:48 |
| Need help with 255 Variable | Joseph F | Programming | 18 | 26-02-2002 14:49 |