/JOB //NAME Force_Search_Example_Job //POS ///NPOS 2,0,0,0,0,0 ///TOOL 0 ///POSTYPE PULSE ///PULSE C00000=0,88,5458,0,-149435,0 C00001=0,88,-6669,0,-149435,0 //INST ///DATE 2021/10/28 12:15 ///ATTR SC,RW ///GROUP1 RB1 NOP DOUT OT#(3993) ON ' Approach part/surface MOVL C00000 V=100.0 ' Move towards part/surface MOVL C00001 V=10.0 UNTIL IN#(3993)=ON IFTHENEXP IN#(3993)=ON ' Part/surface has been found! ' Now do something about it! ' ie. Go pick the part PAUSE ELSE ' Part/surface not found! PAUSE ENDIF DOUT OT#(3993) OFF END