/JOB
//NAME SWEEP-TO-B
//POS
///NPOS 0,0,0,0,0,0
//INST
///DATE 2016/01/21 14:03
///COMM Sweeps B side to Robot
///ATTR SC,RO
NOP
' controls I/O and motion to
' sweep B side fixture to robots
WAIT IN#(4002)=ON
' Wrong job if Input 4002 = off
' Restart from top of master
' 
DOUT OT#(1810) OFF
DOUT OT#(1809) ON
PSTART JOB:JOYSTICK-STATION-3 SUB6 IF IN#(1)=OFF
' 
PSTART JOB:CLEAN SUB5 IF I000>4
' Clean torch after I000># cycles
PWAIT SUB5
' 
' Ready to sweep
WAIT IN#(1)=ON
' 
DOUT OT#(1809) OFF
' Send command to end joystick
PWAIT SUB6
' Wait for joystick complete
' 
PSTART JOB:S1S2S3-B-TO-ROBOT SUB6
PWAIT SUB6
' Positioner swept
' 
PWAIT SUB5
' Wait on clean job to finish
' 
CALL JOB:ROBOT(S)-WORK-B IF IN#(2)=ON
END
