|
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...
|