'----------------------------------------------------------------
'SHOPBOT ROUTER FILE IN MM
'GENERATED BY PARTWorks
'Minimum extent in X = 0.000 Minimum extent in Y = 0.000 Minimum extent in Z = -15.000
'Maximum extent in X = 900.000 Maximum extent in Y = 450.000 Maximum extent in Z = 0.000
'Length of material in X = 900.000
'Length of material in Y = 450.000
'Depth of material in Z = 15.000
'Home Position Information = Bottom Left Corner, Material Surface 
'Home X = 0.000000 Home Y = 0.000000 Home Z = 20.320000
'Rapid clearance gap or Safe Z = 5.080
'UNITS:MM
'
IF %(25)=0 THEN GOTO UNIT_ERROR	'check to see software is set to standard
SA                             	'Set program to absolute coordinate mode
CN, 90
'New Path
'Toolpath Name = Drill 1
'Tool Name   = 1/4inch Downcut Endmill

&PWSafeZ = 5.080
&PWZorigin = Material Surface
&PWMaterial = 15.000
'&ToolName = "1/4inch Downcut Endmill"
&Tool =2           'Tool number to change to
C9                   'Change tool
TR,12000               'Set spindle RPM
C6                   'Spindle on
PAUSE 2
'
MS,75.9,25.3
JZ,20.320000
J2,0.000000,0.000000
J3,15.379568,14.945033,5.080000
M3,15.379568,14.945033,-3.000000
J3,15.379568,14.945033,5.080000
J3,215.210617,17.733374,5.080000
M3,215.210617,17.733374,-3.000000
J3,215.210617,17.733374,5.080000
J3,210.563385,225.000000,5.080000
M3,210.563385,225.000000,-3.000000
J3,210.563385,225.000000,5.080000
J3,16.309015,225.000000,5.080000
M3,16.309015,225.000000,-3.000000
J3,16.309015,225.000000,5.080000
J3,20.026802,424.831055,5.080000
M3,20.026802,424.831055,-3.000000
J3,20.026802,424.831055,5.080000
J3,220.787308,423.901611,5.080000
M3,220.787308,423.901611,-3.000000
J3,220.787308,423.901611,5.080000
JZ,20.320000
J2,0.000000,0.000000
'
'Turning router OFF
C7
END
'
'
UNIT_ERROR:
CN, 91                            'Run file explaining unit error
END