;
; Denford configuration file 
;
; History
;
; Who When     What
; === ======== ========================================
; TPB 13/05/99 Written
; JEB 03/03/00 Removed the M05 at the program header  
; NOTES
; -----
; There are two commented lines containing the TOOLDESC
; variable. This variable contains generic tool
; information if wanted, but it's unfortunately not in
; your specific format.
;
; There is one commented line containing an example of
; the use of the COMMENT variable. This contains the 
; name of the material.
;
; SP 07/11/00 Added DESCRIPTION and FILE_EXTENSION fields
;
DESCRIPTION = "Denford_mm (*.fnc)"
;
FILE_EXTENSION = "fnc"
;
UNITS = MM
;
;
; Cariage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"

;
; 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.3]
FORMAT = [Y|#| Y|1.3]
FORMAT = [Z|#| Z|1.3]

; Home tool positions 
FORMAT = [XH|@|X|1.3]
FORMAT = [YH|@|Y|1.3]
FORMAT = [ZH|@|Z|1.3]

;
; Set up program header
;
START = "G21"
START = "[91]BILLET X[XSIZE] Y[YSIZE] Z[ZMATERIAL]"
START = "G91 G28 X0 Y0 Z0"
START = "G90 M6 T[T]"
START = "M03 [S]"

;
; Program moves
;
RAPID_RATE_MOVE        = "G0[X][Y][Z]"
FIRST_FEED_RATE_MOVE   = "G1[X][Y][Z][F]"
FEED_RATE_MOVE         = "[X][Y][Z]"

;
; Toolchange moves
;
;TOOLCHANGE = "[91]TOOLDEF T[T] [TOOLDESC]"
TOOLCHANGE = "G00 [ZH]"
TOOLCHANGE = "G91 G28 X0 Y0 Z0 M05"
TOOLCHANGE = "G90 M6 T[T]"
TOOLCHANGE = "M03 [S]"

;
; End of file
;
END = "G00 [ZH]"
END = "G91 G28 X0 Y0 Z0 M05"
END = "G90"
END = "M30"
