alanmcw
06-18-2015, 10:05 AM
I've been running a pretty ordinary file and using the FP command to reload it self and loop till I tell it to quit. I am randomly getting a error at the point/line the file trys to reload the machine stops and throws a missing com error. At this point the shopbot software quits and I need to rezero all three axis. Any body have an idea why this is happening?
I've included the run file so you can see what I am doing.
Any suggestions will be appreciated.
cheers
al
Run File
'----------------------------------------------------------------
'SHOPBOT ROUTER FILE IN INCHES
'GENERATED BY PARTWorks
'Minimum extent in X = 0.000 Minimum extent in Y = 0.000 Minimum extent in Z = 0.000
'Maximum extent in X = 36.000 Maximum extent in Y = 6.000 Maximum extent in Z = 1.500
'Length of material in X = 36.000
'Length of material in Y = 6.000
'Depth of material in Z = 1.500
'Home Position Information = Bottom Left Corner, Table Surface (move to 2.5" offset from default 0,0)
'Home X = 0.000000 Home Y = 0.000000 Home Z = 2.5
'Rapid clearance gap or Safe Z = 2.000
'UNITS:Inches
'
IF %(25)=1 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 for inserts (5-32 mill)
'Tool Name = 5/32" Up-cut (13729)
&PWSafeZ = 2.000
&PWZorigin = Table Surface
&PWMaterial = 1.500
'&ToolName = "5/23" Up-cut (13729)"
&Tool =5 'Tool number to change to
SO,1,1 'Turning router ON
'Go? (&ToolName)
Pause
'
MS,1.5,1.0
JZ,2.5
J3,3.249947,0.812577,2.000000
J3,3.249947,0.812577,1.700000
M3,3.249947,0.812577,1.500000
M3,3.250073,0.815385,1.498210
M3,3.250468,0.818263,1.496359
M3,3.251153,0.821175,1.494454
----Snip----
J3,0.046900,1.415996,2.500000
C7 'Turning router OFF
JZ,2.50000
J3,0.000000,-2.000000,2.500000 'Move router out of way
'
'Reload Jig, Click OK to continue.
Pause
J2,0.00,0.00
FP, Machine for inserts and Trim.sbp ,,,,,2 'reloads file till user quits at previous prompt
'
C7 'Turning router OFF
END
'
UNIT_ERROR:
CN, 91 'Run file explaining unit error
END
I've included the run file so you can see what I am doing.
Any suggestions will be appreciated.
cheers
al
Run File
'----------------------------------------------------------------
'SHOPBOT ROUTER FILE IN INCHES
'GENERATED BY PARTWorks
'Minimum extent in X = 0.000 Minimum extent in Y = 0.000 Minimum extent in Z = 0.000
'Maximum extent in X = 36.000 Maximum extent in Y = 6.000 Maximum extent in Z = 1.500
'Length of material in X = 36.000
'Length of material in Y = 6.000
'Depth of material in Z = 1.500
'Home Position Information = Bottom Left Corner, Table Surface (move to 2.5" offset from default 0,0)
'Home X = 0.000000 Home Y = 0.000000 Home Z = 2.5
'Rapid clearance gap or Safe Z = 2.000
'UNITS:Inches
'
IF %(25)=1 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 for inserts (5-32 mill)
'Tool Name = 5/32" Up-cut (13729)
&PWSafeZ = 2.000
&PWZorigin = Table Surface
&PWMaterial = 1.500
'&ToolName = "5/23" Up-cut (13729)"
&Tool =5 'Tool number to change to
SO,1,1 'Turning router ON
'Go? (&ToolName)
Pause
'
MS,1.5,1.0
JZ,2.5
J3,3.249947,0.812577,2.000000
J3,3.249947,0.812577,1.700000
M3,3.249947,0.812577,1.500000
M3,3.250073,0.815385,1.498210
M3,3.250468,0.818263,1.496359
M3,3.251153,0.821175,1.494454
----Snip----
J3,0.046900,1.415996,2.500000
C7 'Turning router OFF
JZ,2.50000
J3,0.000000,-2.000000,2.500000 'Move router out of way
'
'Reload Jig, Click OK to continue.
Pause
J2,0.00,0.00
FP, Machine for inserts and Trim.sbp ,,,,,2 'reloads file till user quits at previous prompt
'
C7 'Turning router OFF
END
'
UNIT_ERROR:
CN, 91 'Run file explaining unit error
END