;
; Modelmaster 3 Axis flat machining configuration file for machines
; with an Automatic Toolchanger (ATC). This file supports being able
; to rotate (index) the workpiece to a specified angle
;
; History
;
; Who When     What
; === ======== ========================================
; MA 22/09/94 Feed rate variable edited to enable both F and E to be used.
; bem 21/03/00 Added DESCRIPTION and FILE_EXTENSION fields
; TM  16/07/04 Added ATC command for Mike
; ejp 12/08/04 Added Rotary Indexing moves
; bem 29/08/04 Added toolchange command in start block
; bem 15/09/04 rotate job back to zero degrees at end so known position when
;              3 sided machining etc
;
DESCRIPTION = "Model Master ATC Indexer (*.mmg)"
;
FILE_EXTENSION = "mmg"
;
UNITS = MM
;
; Cariage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"
;
;
; Set up default formating for variables
;
; Spindle Speed
FORMAT = [S|@|S|1.0]
; Feed Rate
FORMAT = [F|@||1.1]
; Tool moves in x,y and z
FORMAT = [X|@||1.4]
FORMAT = [Y|@||1.4]
FORMAT = [Z|@||1.4]
; Home tool positions 
FORMAT = [XH|@||1.4]
FORMAT = [YH|@||1.4]
FORMAT = [ZH|@||1.4]
;
; Set up program header
;
START = "G00 X [XH] Y [YH] Z [ZH]"
START = "G00 Y-40"
START = "G00 A[AH]"
START = "G00 Y[YH]"
START = "M06 T[T]"
START = "M03"
;
; Commands output when a rotary index takes place
;
; The tool is moved back in Y to ensure sufficient clearance while 
; the workpiece is rotated to the requested angle
;
ROTARY_A_INDEX = "G00 Z[ZH]"
ROTARY_A_INDEX = "G00 Y-40"
ROTARY_A_INDEX = "G00 A[AH]"
ROTARY_A_INDEX = "G00 Y[YH]"
;
;
; Program moves
;
FIRST_RAPID_RATE_MOVE  = "G00 X [X] Y [Y] Z [Z]"
RAPID_RATE_MOVE        = "G00 X [X] Y [Y] Z [Z]"
FIRST_FEED_RATE_MOVE   = "G01 X [X] Y [Y] Z [Z] F [F]"
FEED_RATE_MOVE         = "G01 X [X] Y [Y] Z [Z]"
;
; Toolchange commands
;
TOOLCHANGE = "M06 T[T]"
TOOLCHANGE = "M03"
;
;
; End of file - return workpiece to zero degrees
;                          
END = "G0 Z [ZH]"
END = "G00 Y-40"
END = "G00 A0"
END = "G00 Y[YH]"
END = "M05"
