Originally Posted by
srwtlc
The best way that I found when I was using SB3, was to use a momentary button hooked to one of the inputs and then use the following code. I used the same input as my tool touch off plate (input #1). When the code got to the "WAITHERE" line, I could change the part and then hit the button to repeat. Hit STOP when done.
' Header stuff...
'Turning router ON
SO,1,1
PAUSE,2
REPEAT:
'Body of working code here...
JZ,1.000000 'Location for Z to raise up to here.
J2,0.000000,0.000000 'Location for XY to wait at here.
WAITHERE:
&TEST=%(51) 'Or other input #
IF &TEST=1 THEN GOTO REPEAT
PAUSE .2
GOTO WAITHERE