;
; Heidenhain configuration file Metric version
;
; History
;
; Who When     What
; === ======== ========================================
; BEM 01/04/94 Written
; TM  01/08/97 Edited for Auto Toolchange options
; bem 21/03/00 Added DESCRIPTION and FILE_EXTENSION fields
; AR  29/11/01 Added stock size record, extension edited to hnc
; AR  30/11/01 Added circular moves
; AR  30/11/01 100% Tested and debuged
; BEM 19/03/02 Always output circular arc centres, output Z in toolchange TOOLCALL

;
DESCRIPTION = "Heidenhain (*.hnc)"
;
FILE_EXTENSION = "hnc"
;
UNITS = MM
;
; Cariage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"
;
; Block numbering 
;
LINE_NUM_START     = 0
LINE_NUM_INCREMENT = 1
LINE_NUM_MAXIMUM   = 999999
LINE_NUM_INC_ON_USE = 1
;
; Set up default formating for variables
;
; Spindle Speed
FORMAT = [S|@|S|1,0]
; Feed Rate
FORMAT = [F|#||1.0]
; Tool moves in x,y and z
FORMAT = [X|#| X|+1,3]
FORMAT = [Y|#| Y|+1,3]
FORMAT = [Z|#| Z|+1,3]
; Home tool positions 
FORMAT = [XH|@|X|+1,3]
FORMAT = [YH|@|Y|+1,3]
FORMAT = [ZH|@|Z|+1,3]
; Circular tool moves
FORMAT = [IA|@| X|+1,3]
FORMAT = [JA|@| Y|+1,3]
; Block size format
FORMAT = [XMIN|#| X|+1,3]
FORMAT = [YMIN|#| Y|+1,3]
FORMAT = [ZMIN|#| Z|+1,3]
FORMAT = [XMAX|#| X|+1,3]
FORMAT = [YMAX|#| Y|+1,3]
FORMAT = [ZMAX|#| Z|+1,3]
;
; Set up program header
;
;START = "[N] BEGIN PGM [FILENAME] MM"
START = "[N] BEGIN PGM 1234 MM"
START = "[N] BLK FORM 0.1 Z [XMIN] [YMIN] [ZMIN]"
START = "[N] BLK FORM 0.2 [XMAX] [YMAX] [ZMAX]"
START = "[N] TOOL DEF [T] L+0,000 R+0,000"
START = "[N] TOOL CALL [T] Z [S]"
START = "[N] L [ZH] F9999 M03"
START = "[N] L [XH] [YH] [ZH] F9999 M03"
;
; Program moves
;
RAPID_FEED_RATE = 9999
FEED_RATE_MOVE  = "[N] L [X][Y][Z] F[F] M"
;
; Setup Toolchange commands
;
TOOLCHANGE = "[N] L [ZH]"
TOOLCHANGE = "[N] M6"
TOOLCHANGE = "[N] TOOL DEF [T] L+0,000 R+0,000"
TOOLCHANGE = "[N] TOOL CALL [T] Z [S]"
TOOLCHANGE = "[N] L [X][Y][Z] M03"
;
;
; Setup Circular moves
;
CW_ARC_MOVE = "[N] CC [IA] [JA][13][10][N] C [X] [Y] [Z] DR- R0 F M"
;
;
CCW_ARC_MOVE = "[N] CC [IA] [JA][13][10][N] C [X] [Y] [Z] DR+ R0 F M"
;
;
; End of file
;
END = "[N] STOP M02"
;END = "[N] END PGM [FILENAME] MM"
END = "[N] END PGM 1234 MM"
