+================================================
+                                                
+  Thermwood  -  Vectric machine output configuration file   
+                                                
+================================================
+                                                
+ History                                        
+                                                
+ Who    When       What                         
+ ======== ========== ===========================
+ Tony     14/03/2006 Written                      
+================================================

POST_NAME = "Thermwood ATC 91000 Arcs G42 (inch) (*.nc)"

FILE_EXTENSION = "nc"

UNITS = "INCHES"

RAPID_PLUNGE_TO_STARTZ = NO

+------------------------------------------------
+    Line terminating characters                 
+------------------------------------------------

LINE_ENDING = "[13][10]"

+------------------------------------------------
+    Block numbering                             
+------------------------------------------------

LINE_NUMBER_START     = 0
LINE_NUMBER_INCREMENT = 10
LINE_NUMBER_MAXIMUM = 999999

+================================================
+                                                
+    Formating for variables                     
+                                                
+================================================

VAR LINE_NUMBER = [N|A|N|1.0]
VAR SPINDLE_SPEED = [S|A|S|1.0]
VAR FEED_RATE = [F|C|F|1.0]
VAR X_POSITION = [X|C|X|1.4]
VAR Y_POSITION = [Y|C|Y|1.4]
VAR Z_POSITION = [Z|C|Z|1.4]
VAR ARC_CENTRE_I_INC_POSITION = [I|A|I|1.4]
VAR ARC_CENTRE_J_INC_POSITION = [J|A|J|1.4]
VAR X_HOME_POSITION = [XH|A|X|1.4]
VAR Y_HOME_POSITION = [YH|A|Y|1.4]
VAR Z_HOME_POSITION = [ZH|A|Z|1.4]


+================================================
+                                                
+    Block definitions for toolpath output       
+                                                
+================================================

+---------------------------------------------------
+  Commands output at the start of the file
+---------------------------------------------------

begin HEADER

"(Program Name-[TP_FILENAME])"
"M98PSTRTTIME.SUBL1"
"M48"
"G90"
"G96"
"SET ZSHIFT = [ZLENGTH]"
"G52L5"
"G09F15"
"([TOOLNAME])"
"T[T] M3"
"[S]"



+---------------------------------------------------
+  Commands output at toolchange
+---------------------------------------------------

begin TOOLCHANGE

""
"G00 [ZH]"
"M5"
"([TOOLNAME])"
"T[T] M3"
"[S]"
"M31"

+---------------------------------------------------
+ Commands output for initial rapid moves
+---------------------------------------------------
begin INITIAL_RAPID_MOVE

""
"(START NEW FIGURE)"
"G00 [X] [Y] [Z]"
M31


+---------------------------------------------------
+  Commands output for rapid moves 
+---------------------------------------------------

begin RAPID_MOVE

""
"(START NEW FIGURE)"
"G00 [X] [Y] [Z]"


+---------------------------------------------------
+  Commands output for the first feed rate move
+---------------------------------------------------

begin FIRST_FEED_MOVE

"G01 [X] [Y] [Z] [F]"


+---------------------------------------------------
+  Commands output for feed rate moves
+---------------------------------------------------

begin FEED_MOVE

"G01 [X] [Y] [Z]"


+---------------------------------------------------
+  Commands output for the first clockwise arc move
+---------------------------------------------------

begin FIRST_CW_ARC_MOVE

"G02 [X] [Y] [I] [J] [F]"

+---------------------------------------------------
+  Commands output for clockwise arc  move
+---------------------------------------------------

begin CW_ARC_MOVE

"G02 [X] [Y] [I] [J]"

+---------------------------------------------------
+  Commands output for the first counterclockwise arc move
+---------------------------------------------------

begin FIRST_CCW_ARC_MOVE

"G03 [X] [Y] [I] [J] [F]"

+---------------------------------------------------
+  Commands output for counterclockwise arc  move
+---------------------------------------------------

begin CCW_ARC_MOVE

"G03 [X] [Y] [I] [J]"

+---------------------------------------------------
+  Commands output for a new segment - toolpath
+  with same toolnumber but maybe different feedrates
+---------------------------------------------------

begin NEW_SEGMENT

""
"([TOOLPATH_NAME])"
"([TOOLPATH_NOTES])"

+---------------------------------------------
+  Commands output for a dwell move
+---------------------------------------------

begin DWELL_MOVE

"G04 [DWELL]"

+---------------------------------------------------
+ Commands output for the First Plunge Move
+---------------------------------------------------
begin FIRST_PLUNGE_MOVE

G42
"G01 [X] [Y] [Z] [F]" 

+---------------------------------------------------
+ Commands output for Plunge Moves
+---------------------------------------------------

begin PLUNGE_MOVE

"G01 [X] [Y] [Z]"

+---------------------------------------------------
+ Commands output for Retract Moves
+---------------------------------------------------
begin RETRACT_MOVE

"G00 [X] [Y] [Z] "
G40

+---------------------------------------------------
+  Commands output at the end of the file
+---------------------------------------------------

begin FOOTER

""
"M5"
"G990"
"G90 G0 Z0"
"X0. Y0."
"M98PENDTIMELOG.SUBL1"
"M02"

