;
; Fanuc configuration file edited to suite a Komo with Dual Spindle Heads 
; Fanuc controller_Mach3F_1
;
; History
;
; Who When     What
; === ======== ========================================
; BEM 01/04/94 Written
; JAB 19/11/98 Edited
; sp  05/02/02 Wrote post to suite a Komo router with Dual heads and fanuc controller.
;		   Also added in Toolchange support for 8 tools.
; SP  05/02/02 Added Description and file extension
; CBL 7FEB02   Added line numbers, configured post to match Komo Router 
; CBL 8FEB02   Configured second tool change to work with customer's control
;
DESCRIPTION = "Komo_MACH3F_TC (*.out)"
;
FILE_EXTENSION = "out"
;
UNITS = INCH
;
; Cariage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"
;
; Block numbering 
;
LINE_NUM_START     = 1
LINE_NUM_INCREMENT = 1
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.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 = "%"
START = ":([COMMENT])"
START = "[N]G00G17G20G28G40G80G91Z0"
START = "[N]G90"
START = "[N]M8"
START = "[N]G52X0Y0Z0M05"
START = "[N]G08P1"
START = "[N]([TOOLDESC])"
START = "[N]G28G91Z0M05"
START = "[N]G90T200[T]M06"
START = "[N]T102"
START = "[N]G00G17G55M03[S]"
START = "[N]G00G43H[T][ZH]"
;
; Program moves
;
RAPID_RATE_MOVE        = "[N]G00[X][Y][Z]"
FIRST_FEED_RATE_MOVE   = "[N]G01[X][Y][Z][F]"
FEED_RATE_MOVE         = "[N][X][Y][Z]"
;
; End of file
;
END = "[N]G08P0"
END = "[N]G49Z0M05"
END = "[N]G28G91X0Y0"
END = "[N]G52X0Y0Z0"
END = "[N]M30"
END = "[N]%"
;
; Tool Change
;
TOOLCHANGE = "[N]G28G91Z0M05"
TOOLCHANGE = "[N]G90T200[T]M06"
TOOLCHANGE = "[N]T102"
TOOLCHANGE = "[N]G17G55M03[S]"
TOOLCHANGE = "[N]G43H[T][ZH]"

