; Mach3 PostP file w/ g2&g3 arc moves in MM
;
; === ======== ========================================
;GW 1/21/08 created for MM (metric) users
; For tool changer via macro use ATC PostP
;  
DESCRIPTION = "Mach3gb-Arcs(MM)(*.TAP)"
;
FILE_EXTENSION = "TAP"
;
UNITS = MM
;
; Cariage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"
;
; Spindle Speed
FORMAT = [S|@|S|1.0]
; Feed Rate
FORMAT = [F|#|F|1.0]
; Tool moves in x,y and z
FORMAT = [X|#|X|1.4]
FORMAT = [Y|#|Y|1.4]
FORMAT = [Z|#|Z|1.4]
; Arc Center Coords
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 = "([FILENAME])"
START = "G90"
; G90 = Set ABSOLUTE mode
START = "G21"
; G21 = Use Millimeter as unit value
START = "G49"
; G49 = Cancel tool length offset
START = "G0[ZH]"
; G0 {ZH} = rapid to safe Z height
START = "M3 [S]"
; M3{S} = rotate spindle clockwise
;
; Program moves
;
FIRST_RAPID_RATE_MOVE  = "G0 [X] [Y] [Z]"
;
FIRST_FEED_RATE_MOVE   = "G1 [X] [Y] [Z] [F]"
FEED_RATE_MOVE         = "[X] [Y] [Z]"
;
FIRST_CW_ARC_MOVE      = "G2 [X] [Y] [I] [J] [F]"
CW_ARC_MOVE            = "G2 [X] [Y] [I] [J]"
;
FIRST_CCW_ARC_MOVE     = "G3 [X] [Y] [I] [J] [F]"
CCW_ARC_MOVE           = "G3 [X] [Y] [I] [J]"
;
; End of file
;
END = "G0[ZH]"
END = "G0[XH][YH]"
END = "M5"
; M5 = stop spindle
END = "M30"
; M30 = program end and rewind
