;
; G - Code edited to suite Thermwood configuration file 
;
; History
;
; Who When     What
; === ======== ========================================
; TM  13/05/99 Written
; BEM 20/05/99 Removed line numbers
; bem 21/03/00 Added DESCRIPTION and FILE_EXTENSION fields
; SP  05/01/01 Edited to run Thermwood in TX.
; SP  09/03/01 Edited to add smooth arc moves and other various commands requested by Peacocks.
; CBL 20FEB02  Edited start code to include spindle speed, corrected tool change, added spindle stop at endcode.
;
DESCRIPTION = "Thermwood TC super (inch) (*.nc)"
;
FILE_EXTENSION = "nc"
;
UNITS = INCH
;
; 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 formating for variables
;
; Line numbering
FORMAT = [N|@|N|1.0]
; Spindle Speed
FORMAT = [S|@|S|1.0]
; Feed Rate
FORMAT = [F|#|F|1.1]
; Tool moves in x,y and z
FORMAT = [X|#|X|1.4]
FORMAT = [Y|#|Y|1.4]
FORMAT = [Z|#|Z|1.4]
; Home tool positions 
FORMAT = [XH|@|X|1.4]
FORMAT = [YH|@|Y|1.4]
FORMAT = [ZH|@|Z|1.4]
;
; Set up program header
;
START = "(Program Name-[FILENAME])"
START = "M98PSTRTTIME.SUBL1"
START = "M999"
START = "G90"
START = "G52L1"
START = "T[T] M3"
START = "[S]"
START = "([TOOLDESC])"
START = "G00 [ZH]"
START = "G0 [XH] [YH]"
START = "M31"
;
; Program moves
;
RAPID_RATE_MOVE        = "G00 [X] [Y] [Z]"
FIRST_FEED_RATE_MOVE   = "G01 [X] [Y] [Z] [F]"
FEED_RATE_MOVE         = "G01 [X] [Y] [Z]"
;
; Setup Toolchange commands
;
TOOLCHANGE = "G00 [ZH]"
TOOLCHANGE = "M5"
TOOLCHANGE = "T[T] M3"
TOOLCHANGE = "[S]"
TOOLCHANGE = "([TOOLDESC])"
TOOLCHANGE = "M31"
;
; End of file
;
END = "G00 [ZH]"
END = "G990"
END = "G90 G0 Z0"
END = "X0. Y0."
END = "M5"
END = "M98PENDTIME.SUBL1"
END = "M02"
