View Single Post
  #4   Spotlight this post!  
Unread 03-02-2002, 16:10
MrB's Avatar
MrB MrB is offline
871 Team Leader
AKA: Brian Buonomo
FRC #0871 (WI RoboTechs)
Team Role: Teacher
 
Join Date: Feb 2002
Rookie Year: 2002
Location: West Islip, NY
Posts: 145
MrB is a jewel in the roughMrB is a jewel in the roughMrB is a jewel in the roughMrB is a jewel in the rough
Thanks for the help. Our programmer actually figured out his own code, works in a similar fashion:


'In Varibles section
'====== Compressor hold command variable====
HOLD VAR byte

'in "---------- Initialize Inputs & Outputs ---"
'====== COMPRESSOR RUN CODE============
HOLD = 1

'====================================
'====== COMPRESSOR LIMIT RUN CODE========
'====================================
'
'

if rc_sw1 =0 then relayoff:

if rc_sw2 =1 then relayON:
if HOLD =1 then relayON:
goto endloop:


RelayON:
relay7_fwd = 1
hold =1
goto endloop:


RelayOFF:
relay7_fwd = 0
hold =0
Goto endloop:

EndLoop:

It may be a bit lengthy, but he figured it out :-) Logic tables and all. :-)

Thanks again...