;
; Fanuc G - Code 4-Axis rotary post processor
;
; Linear Y Axis is wrapped onto A rotary axis
;
; History
;
; Who When     What
; === ======== ========================================
; TM  04/07/95 Written
; BEM 06/08/96 Modified for Rotary Axis support
; BEM 19/06/00 Fixed 
; BEM 03/02/00 Added description
; SKL 04/11/02 Modified for Roland 650 rotary Axis support
; SKL 03/07/03 Mirror Y (output as X) to allow for rotation
; SKL 05/08/03 Remove space and fix code cannot execute error

DESCRIPTION = "Roland MDX 650 (Rotary Axis X->A)"
;
FILE_EXTENSION = "tap"
;
UNITS = MM
;
; Rotary axis control
;
ROTARY_AXIS = X
ROTARY_AXIS_SIGNED = NO
;
; Cariage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"
;
; Block numbering 
;
LINE_NUM_START     = 0
LINE_NUM_INCREMENT = 10
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|#|Y|1.3]
FORMAT = [Y|#|X|1.3|-1.0]
FORMAT = [Z|#|Z|1.3]
FORMAT = [R|#|A|1.2]
; Home tool positions 
FORMAT = [XH|@|Y|1.3]
FORMAT = [YH|@|X|1.3|-1.0]
FORMAT = [ZH|@|Z|1.3]
FORMAT = [RH|@|A|1.2]
;
; Set up program header
;
START="%"
START = "G90G00G59G40G17"
START = "[S]M03"
START = "G00[YH][ZH]"
START = "G00[XH]"
START = "G00[ZH][RH]"
;
; Program moves
;
FIRST_RAPID_RATE_MOVE  = "G00[Y][R][Z]"
FIRST_FEED_RATE_MOVE   = "G01[Y][R][Z][F]"
FEED_RATE_MOVE         = "[Y][R][Z]"
;
; End of file
;
END = "G40 G00 [ZH] M05"
END = "M30"


