;
; G - Code configuration file - with Arc Support
;
; History
;
; Who When     What
; === ======== ========================================
; TM  13/05/99 Written
; BEM 20/05/99 Removed line numbers
; BEM 21/03/00 Added DESCRIPTION and FILE_EXTENSION fields
; BEM 19/06/01 Added support for circular arc output 
;              move to home pos at end instead of 0,0,ZH
; bem 07/09/01 Added G17 to define plane for circular arcs
; tm  01/08/03 Configured for Biesse Rover 24 with TC
; bem 23/03/04 Added all sections and AUX_DLL call to fix up the
;              offsets to the sections 
; bem 28/05/04 Added support for seting correct PRF= value in biesse aux dll
;              we store SafeZ in PRF value and 'fix up' in aux dll 
; TLS 23/04/07 Renamed for Biesse Rover B4.40
;	       Adjusted TOOLDESC in program header to TOOLPATHNAME to fix callout issue bug
; 	       **Users will need to adjust their tool numbers and descriptions in the tool database 
; 		 so that the correct names and numbers are pulled from the post**
; GJM 26/04/07  The Tool Descritpion MUST BE IDENTICAL to the name on the control.  The Spindle Speeds
;               on the posted code & Tool Setup page on the control must NOT BE OVER the allowable machine
;               speeds or you will get errors and the machine will not run.
; TLS 17/08/07 Changed FILENAME to TOOLPATHNAME in TOOLCHANGE section 
;             
;                
DESCRIPTION = "Biesse Rover B4.40-4-24-07 (mm) (*.anc)"
;
FILE_EXTENSION = "anc"
;
UNITS = MM
;
; Cariage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"
;END_OF_LINE = "[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.0|0.001]
FORMAT = [FP|#||1.0|0.001]
FORMAT = [FC|#||1.0|0.001]
; Tool moves in x,y and z
FORMAT = [X|#|X|1.3]
FORMAT = [Y|#|Y|1.3|-1]
FORMAT = [Z|#|Z|1.3|-1]
;
;FORMAT = [ZI|#|Z|1.3|-1]
;
; Arc Centre Cordinates
FORMAT = [IA|@|I|1.3]
FORMAT = [JA|@|J|1.3]
; Home tool positions 
FORMAT = [XH|@|X|1.3]
FORMAT = [YH|@|Y|1.3|-1]
FORMAT = [ZH|@|Z|1.3|-1]

;
; First	line is removed by aux dll - it is only used to calculate the correct
; value for the PRF= section output at start and toolchanges
;
;
; 91 = ASCII for [
; 13 10 = ASCII for Carriage return
; 93 = ASCII for ]
; 34 = ASCII for "
;	 
START = "START"
START = "[91]COMMENTO[93]"
START = "[FILENAME]"
; START = ""
START = "[91]CENTRO01[93]"
START = ""
START = "PARAMETRI=000000000"
START = "UTENSILI=000000000"
START = "LABELF=000000000"
START = "LABELC=000000000"
START = "FORATURA=000000000"
START = "CONTORNATURA=000000000"
START = "TABELLEFORI=000000000"
START = "CONFASSIST=000000000"
START = "ATTREZZAGGIO=000000000"
;
; Setup Material parameters
;
START = "[91]PARAMETRI01[93]"
START = "N10 G71 HC=1 LY=[YSIZE] PLPZ=[ZMATERIAL] PDM=0 PUOS=0 FIL=0 BLO=0 ACC=0 RUO=1 PRS=1 PRL=1 PPWQ=0.000 KA=256.000 LZ=[ZMATERIAL] LX=[XSIZE] "
START = "%"
;
START = "[91]LABELF01[93]"
START = "%"
;
START = "[91]LABELC01[93]"
START = "%"
;
START = "[91]FORATURA01[93]"
START = "%"
;
START = "[91]TABELLEFORI01[93]"
START = "%"
;
START = "[91]CONFASSIST01[93]"
START = "%"
;
START = "[91]ATTREZZAGGIO01[93]"
START = "%"
;
; START = "[91]UTENSILI01[93]"
; START = "%"
;
START = "[91]CONTORNATURA01[93]"
;
; Set up program header
;
START = "[N] PAN=1 ST1=[34][TOOLPATHNAME][34] ST2=[34]NULL[34] ST3=[34]NULL[34] L=PCUA "
START = "[N] [XH] [YH] TP=1 PRF=[SZ] VF=[FP] F[FC] G40 L=PON M55"
;
; Program moves
;
RAPID_RATE_MOVE        = "[N] G0 [X] [Y] [Z]"
;
FIRST_FEED_RATE_MOVE   = "[N] G1 [X] [Y] [Z] [F]"
FEED_RATE_MOVE         = "[N] [X] [Y] [Z]"
;
FIRST_CW_ARC_MOVE      = "[N] G5 [X] [Y] R-[Radius] [F]"
CW_ARC_MOVE            = "[N] G5 [X] [Y] R-[Radius]"
;
FIRST_CCW_ARC_MOVE     = "[N] G4 [X] [Y] R[Radius] [F]"
CCW_ARC_MOVE           = "[N] G4 [X] [Y] R[Radius]"
;
; G4 CCW Radius + End point
; G5 CW Radius + End point
; G7 + G8 Elipse
;
TOOLCHANGE = "[N] L=POFF"
TOOLCHANGE = "[N] PAN=1 ST1=[34][TOOLPATHNAME][34] ST2=[34]NULL[34] ST3=[34]NULL[34] L=PCUA "
TOOLCHANGE = "[N] [XH] [YH] TP=1 PRF=[SZ] VF=[FP] F[FC] G40 L=PON M55 "
;
; End of file
;
END = "[N] L=POFF"
END = "%"
;
; We will write out the tool names in the AUX DLL here
;
END = "[91]UTENSILI01[93]"
;
; Aux DLL to run to fix up offsets for file sections ...
;
; Load an Auxiliary DLL to postprocess file after output ...
;
AUX_DLL = "aux_dlls\biesse.dll"
;AUX_DLL_DATA = "DEBUG OUTPUT_TOOLS"
AUX_DLL_DATA = "OUTPUT_TOOLS"
