+================================================ + + Mach4 - Vectric machine output configuration file + Wraps Y values around the X axis, values are output as C + Lathe: x moves converted to Z, Z moves converted to X, Y moves converted to C + + This post processor is suitable for Aspire =>2.1 / VCarve Pro =>5.1 + +================================================ + + History + + Who When What + ======== =========== =========================== + Mark 06/05/2009 Written + Mark 30/11/2009 Added TOOLPATHS_OUTPUT. + Brian 15/12/2009 Remove M05 from NEW_SEGMENT + R Tuttle 20/09/2018 Mach4 Lathe, Y to C, double x(z) values for diameter mode, Inverse time mode + Mark 26/09/2018 Added Inverse Time variable. +================================================ POST_NAME = "Mach4_Lathe-WrapY2C ATC(inch)(*.txt)" FILE_EXTENSION = "txt" UNITS = "INCHES" ROTARY_WRAP_Y = "-C" INVERSE_TIME_MODE = YES SUBSTITUTE = "({)}" +------------------------------------------------ + Line terminating characters +------------------------------------------------ LINE_ENDING = "[13][10]" +------------------------------------------------ + Block numbering +------------------------------------------------ LINE_NUMBER_START = 0 LINE_NUMBER_INCREMENT = 10 LINE_NUMBER_MAXIMUM = 999999 +================================================ + + Formating for variables + +================================================ + ---for lathe X is Z and Z is X*2 for Diameter mode Y is C, feed rate is always VAR LINE_NUMBER = [N|A|N|1.0] VAR SPINDLE_SPEED = [S|A|S|1.0] VAR FEED_RATE = [F|C|F|1.1] VAR INVERSE_TIME = [FI|A|F|1.1] VAR X_POSITION = [X|A|Z|1.4] VAR Y_POSITION = [Y|A|Y|1.4] VAR Z_POSITION = [Z|A|X|1.4|2] VAR X_HOME_POSITION = [XH|A|Z|1.4] VAR Y_HOME_POSITION = [YH|A|Y|1.4] VAR Z_HOME_POSITION = [ZH|A|X|1.4|2] VAR SAFE_Z_HEIGHT = [SAFEZ|A|X|1.4|2] VAR WRAP_DIAMETER = [WRAP_DIA|A||1.4] +================================================ + + Block definitions for toolpath output + +================================================ +--------------------------------------------------- + Commands output at the start of the file +--------------------------------------------------- begin HEADER "( [TP_FILENAME] )" "( File created: [DATE] - [TIME])" "( for Mach4 Lathe from Vectric/Tuttle )" "( Material Size)" "( X= [ZLENGTH], Z= [XLENGTH])" "( Diameter = [WRAP_DIA] Inches)" "( Y Values are wrapped around the X axis )" "( Y Values are output as C )" "([FILE_NOTES])" "(Toolpaths used in this file:)" "([TOOLPATHS_OUTPUT])" "(Tools used in this file: )" "([TOOLS_USED])" "[N] G00G20G17G90.1G40G80" "[N] G70G91.1" "[N] T[T]M06" "[N] G00G43[ZH]H[T]" "[N] [S]M03" "[N](Toolpath:- [TOOLPATH_NAME])" "[N]([TOOLPATH_NOTES])" "[N] G93" "[N] [YH] [XH] [ZH] [F]" +--------------------------------------------------- + Commands output for rapid moves +--------------------------------------------------- begin RAPID_MOVE "[N] G00 [Z]" "[N] G00 [X]" +--------------------------------------------------- + Commands output for feed rate moves +--------------------------------------------------- begin FEED_MOVE "[N] G1 [X] [Y] [Z] [FI]" +--------------------------------------------------- + Commands output at toolchange +--------------------------------------------------- begin TOOLCHANGE "[N] T[T]M6" "[N] ([TOOLNAME])" "[N] G43H[T]" +--------------------------------------------------- + Commands output for a new segment - toolpath + with same toolnumber but maybe different feedrates +--------------------------------------------------- begin NEW_SEGMENT "[N] [S]M03" "([TOOLPATH_NAME])" "([TOOLPATH_NOTES])" +--------------------------------------------------- + Commands output at the end of the file +--------------------------------------------------- begin FOOTER "[N] G00 [ZH]" "[N] G00 [YH] [XH]" "[N] M09" "[N] M30" %