;
; CAM Tech CMC4 inch configuration file 
;
; History
;
; Who When     What
; === ======== ========================================
; TM  12/04/97 Modified Fanuc file to suite
; SP  18/11/00 Properly Configured to suite machine as per GS example.
;              This post is for CMC3 series using inches.
; SP  22/12/00 Added DESCRIPTION and FILE_EXTENSION fields
; BEM 04/07/01 Added circular arc support
; GEB 16/09/05 Added Line Numbering
; GEB 31/01/06 Customized for STREAMLINE AUTOMATION
;
DESCRIPTION = "STREAMLINE MM (*.nc)"
;
FILE_EXTENSION = "nc"
;
UNITS = MM
;
; 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.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 = "[N][32][91]STREAMLINE AUTOMATION[93]"
START = "[N][32][91]Spindle Enabled[93]"
START = "[N][32]"
START = "[N][32][91]FILE SET TO RUN IN INCHES[93]"
START = "[N][32][91]FILE:[FILENAME][93]"
START = "[N][32]"
START = "[N][32][91]MATERIAL[93]"
START = "[N][32]"
START = "[N][32][91]X-SIZE =[32][XSIZE][32]Y-SIZE =[32][YSIZE][32]Z-SIZE =[32] [ZSIZE][93]"
START = "[N][32]"
START = "[N][32][91]TOOL:[32][TOOLDESC][93]"
START = "[N][32]"
START = "[N][32]G90[32][91]Absolute Mode[93]"
START = "[N][32]G9S10[32][91]Smoothing Factor[93]"
START = "[N][32]G20[32][91]Set Units to MM[93]"
START = "[N][32]M3[32][91]Spindle On[93]"
START = "[N][32]M8[32][91]Dust Collector On[93]"
START = "[N][32]G0[32][XH][32][YH][91]Go To X/Y Home[93]"
START = "[N][32]G0[32][ZH][32][91]Go To Z Home[93]"


;
; Program moves
;
RAPID_RATE_MOVE        = "[N][32]G0[32][X][32][Y][32][Z]"
FIRST_FEED_RATE_MOVE   = "[N][32]G1[32][X][32][Y][32][Z][32][F]"
FEED_RATE_MOVE         = "[N][32][X][32][Y][32][Z][32][F]"
;
FIRST_CW_ARC_MOVE      = "[N][32]G2[32][X][32][Y][32][I][32][J][32][F]"
CW_ARC_MOVE            = "[N][32]G2[32][X][32][Y][32][I][J]"
;
FIRST_CCW_ARC_MOVE     = "[N][32]G3[32][X][32][Y][32][I][32][J][32][F]"
CCW_ARC_MOVE           = "[N][32]G3[32][X][32][Y][32][I][32][J]"

;
; End of file
;
END = "[N][32]G53Z[32][91]Raise Head to Top[93]"
END = "[N][32]M9[32][91]Dust Collector Off[93]"
END = "[N][32]M5[32][91]Spindle Off[93]"
END = "[N][32]G0XY[32][91]Go Home[93]"
END = "[N][32]G23[32][91]Return to Units[93]"
END = "[N][32][91]End of File[93]"
