' The following routine checks to see if a prox switch is hit within 500 ms
' If not then display a message
' Change time 500 ms and I/O relay # as needed
#83=1 ' Engage air cylinder to start move
TIME RESETMS ' set millisecond time counter to zero
LOOP:
TIME MS;\55 ' read how many milliseconds has elapsed
IF \55>500 THEN LABEL1 AIR TOO LOW;12:EXIT
IF #59=0 THEN GOTO :LOOP ' if switch not hit then re-check again
' If made it here then switch was hit within 500 ms


LinkBack URL
About LinkBacks




