;
; G - Code configuration file - with Arc Support
;
; 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
; BEM 19/06/01 Added support for circular arc output 
;              move to home pos at end instead of 0,0,ZH
; bem 07/09/01 Added G17 to define plane for circular arcs
; bem 23/04/04 Modified for axxiom
; GOB 23/09/04 Added "S" to toolchange spindle speed setting
;	       Changed M30 in footer to M05
;	       Added "START" to header
; GOB 28/09/04 Reversed M30 and M05 commands in footer
;	       Enabled toolchanging
; GOB 30/09/04 Added tool height definition to toolchange
;
DESCRIPTION = "Axxiom Toolchanger (arcs) (inch) (*.anc)"
;
FILE_EXTENSION = "anc"
;
UNITS = INCH
;
; Carriage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"
;
; Block numbering 
;
LINE_NUM_START     = 5
LINE_NUM_INCREMENT = 5
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]
; Arc Centre Cordinates
FORMAT = [I|@|I|1.4]
FORMAT = [J|@|J|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 = "START"
START = "%"
START = "O10 ([TOOLPATHNAME])"
START = "(CREATED BY ARTCAM)"
START = "[N] M98 P8000 (SAFETY-SUB)"
START = "[N] M60 (VACUUM ON)"
START = "[N] M50 (AUTO ON)"
START = "[N] [S]"
START = "[N] T[T]"
START = "[N] M5"
START = "[N] M6"
START = "[N] M3"
START = "[N] G0 G90 G54 [XH] [YH]"
START = "[N] G43 H[T] [ZH]"
;
; Set up toolchange
;
TOOLCHANGE = "[N] G0 G90 G49 Z0"
TOOLCHANGE = "[N] M05"
TOOLCHANGE = "[N] [S]"
TOOLCHANGE = "[N] T[T]"
TOOLCHANGE = "[N] M5"
TOOLCHANGE = "[N] M6"
TOOLCHANGE = "[N] M3"
TOOLCHANGE = "[N] G0 G90 G54 [XH] [YH]"
TOOLCHANGE = "[N] G43 H[T] [ZH]"
;
; Set up program moves
;
RAPID_RATE_MOVE        = "[N] G0[X][Y][Z]"
;
FIRST_FEED_RATE_MOVE   = "[N] G1[X][Y][Z] [F]"
FEED_RATE_MOVE         = "[N] [X][Y][Z]"
;
FIRST_CW_ARC_MOVE      = "[N] G2[X][Y] R[Radius] [F]"
CW_ARC_MOVE            = "[N] G2[X][Y] R[Radius]"
;
FIRST_CCW_ARC_MOVE     = "[N] G3 [X] [Y] R[Radius] [F]"
CCW_ARC_MOVE           = "[N] G3 [X] [Y] R[Radius]"
;
; End of file
;
END = "G0[ZH]"
END = "G0[XH][YH]"
END = "M05"
END ="[N] M98 P8001 (SAFETY-SUB)"
END ="[N] M51 (AUTO OFF)"
END ="[N] M30"
