;
; ShopBot configuration file 
;
; History
;
; Who When     What
; === ======== ========================================
; BEM 01/04/94 Written
; bem 21/03/00 Added DESCRIPTION and FILE_EXTENSION fields
; JAB 15/08/00 Changed to make it run for Shopbot 
; JAB 07/11/01 Added support for arc moves
; GOB 03/17/04 Changed to make it run second head on ShopBot
; GOB 03/17/04 Compensate for distance between cutting heads
; GOB 03/18/04 Included VD command to switch to inch mode
; GOB 11/08/04 Changed offset variable name and added s_head2 file lookup
; GOB 11/08/04 Added SO command to header and footer for router switchon/off
; GOB 10/09/04 Added SA, VD and "SHOPBOT ROUTER" to header
; GOB 14/09/04 Added A axis mode switch and 4 axis display to VD command
; GOB 19/04/05 set up for air drill
; GOB 19/04/05 reconfigured for metric
; GOB 09/20/05 (American date) Added unit system checking 
; GOB 09/22/05 1) altered variables to work with my_variables system
; 	       2) added prevmode variable lookup to header and footer
; GOB 10/04/05 1) Revised my_variables lookup to be custom cut 90
;	       2) Revised unit error lookup to be custom cut 91  
;	       3) Removed &drill variable - no longer needed with my_variables system
; GOB 10/10/05 1) Added &drill variable - it IS needed with my_variables system
; GAB 11/01/06 Made formats consistent
;
DESCRIPTION = "Shopbot Drill mm(*.sbp)"
;
FILE_EXTENSION = "sbp"
;
UNITS = MM
;
; Cariage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"
;
; Block numbering 
;
LINE_NUM_START     = 0
LINE_NUM_INCREMENT = 10
LINE_NUM_MAXIMUM   = 999999
;
; Set up default formatting for variables
;
; Line numbering
FORMAT = [N|@|N|1.0]
; Spindle Speed
FORMAT = [S|@||1.0]
; Feed Rate
FORMAT = [FC|#||1.2|0.0166]
FORMAT = [FP|#||1.2|0.0166]
; Tool moves in x,y and z
FORMAT = [X|@||1.4]
FORMAT = [Y|@||1.4]
FORMAT = [Z|@||1.4]
; Home tool positions 
FORMAT = [XH|@||1.4]
FORMAT = [YH|@||1.4]
FORMAT = [ZH|@||1.4]
; Tool Number
FORMAT = [T|@||1.0]
;
; Set up program header
;
START = "'----------------------------------------------------------------"
START = "'SHOPBOT AIR DRILL FILE IN MILLIMETERS"
START = "'GENERATED BY PART WIZARD"
START = "'  UNITS = mm"
START = "IF %(25)=0 THEN GOTO UNIT_ERROR	'check to see software is set to metric"
START = "C#,90				 	'Lookup offset values"
START = "IF %(22)=1 THEN GOSUB PREVMODE		'check for move/cut mode, set offsets accordingly"
START = "SA					'Set program to absolute coordinate mode"
START = "&DRILL=[T]				'Show which drill is active"
START = "JZ,[ZH]				'Jog Z axis to safe height"
START = "'----------------------------------------------------------------"
;
; Program moves
;
RAPID_RATE_MOVE        = "J2,[X]-&my_XmmDrilloffset_T[T],[Y]&my_YmmDrilloffset_T[T]"
FIRST_FEED_RATE_MOVE   = "C8"
FEED_RATE_MOVE         = "C8"
;
; Toolchange
;
TOOLCHANGE = "&DRILL=[T]			 'Show which drill is active"
;
;
; End of file
;
END = "'----------------------------------------------------------------"
END = "END"
END = "'----------------------------------------------------------------"
END = "'"
END = "UNIT_ERROR:"				
END = "C#,91			'Run file explaining unit error"
END = "END"
END = "PREVMODE:"
END = "&my_XmmDrilloffset_T2=0	'These values must remain zero for the preview to display properly."	
END = "&my_YmmDrilloffset_T2=0"	
END = "&my_XmmDrilloffset_T3=0"	
END = "&my_YmmDrilloffset_T3=0"
END = "RETURN"




; Delcam Check Sum fa7a85f9f6d08244dfd8e8c9adfee0fd
;This file has been locked your ArtCAM product may not work if you edit this file


