PDA

View Full Version : Eding cnc



Ben-bee
17-05-2016, 08:48 PM
Hi guys, ive been looking for the correct post processor to use in vcarve , but sadly ive not been able to source it. I decided to write one. Below is the post processor, as this is the first time ive ever done this, could you please glance your eye over it to see if I made any errors.. I'm not sure ive correctly done the manual tool change part..

Kind regards Bee...

+================================================
+
+ Eding CNC - Vectric machine output configuration file
+
+================================================
+
+ History
+
+ Who When What
+ ======== ========== ===========================
+ Ben 16/05/2016 Created
+================================================


POST_NAME = "Eding cnc (mm) (*.nc)"


FILE_EXTENSION = "nc"


UNITS = "MM"


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
+
+================================================


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 X_POSITION = [X|C|X|1.3]
VAR Y_POSITION = [Y|C|Y|1.3]
VAR Z_POSITION = [Z|C|Z|1.3]
VAR ARC_CENTRE_I_INC_POSITION = [I|A|I|1.3]
VAR ARC_CENTRE_J_INC_POSITION = [J|A|J|1.3]
VAR X_HOME_POSITION = [XH|A|X|1.3]
VAR Y_HOME_POSITION = [YH|A|Y|1.3]
VAR Z_HOME_POSITION = [ZH|A|Z|1.3]
VAR SAFE_Z_HEIGHT = [SAFEZ|A|Z|1.3]
+================================================
+
+ Block definitions for toolpath output
+
+================================================


+---------------------------------------------------
+ Commands output at the start of the file
+---------------------------------------------------


begin HEADER


"( [TP_FILENAME] )"
"( File created: [DATE] - [TIME])"
"( Eding CNC Postprocessor )"
"( Material Size)"
"( X= [XLENGTH], Y= [YLENGTH], Z= [ZLENGTH])"
"([FILE_NOTES])"
"(Toolpaths used in this file:)"
"([TOOLPATHS_OUTPUT])"
"(Tools used in this file: )"
"([TOOLS_USED])"
"[N]G00G21G17G90G40G49"
"[N]G80"
"[N] ([TOOLNAME])"
"[N]G00G43[ZH]H[T]"
"[N][S]M03"
"[N](Toolpath:- [TOOLPATH_NAME])"
"[N]([TOOLPATH_NOTES])"
"[N]G94"
"[N][XH][YH][F]"



+---------------------------------------------------
+ Commands output at Manual tool change
+---------------------------------------------------


begin TOOLCHANGE


"G28"
"[N]T[T]M6"
"[S]M03"
"( [TP_FILENAME] )"
"( File created: [DATE] - [TIME])"
"( Eding CNC Postprocessor )"
"( Material Size)"
"( X= [XLENGTH], Y= [YLENGTH], Z= [ZLENGTH])"
"([FILE_NOTES])"
"(Toolpaths used in this file:)"
"([TOOLPATHS_OUTPUT])"
"(Tools used in this file: )"
"([TOOLS_USED])"
"[N]G00G21G17G90G40G49"
"[N]G80"
"[N] ([TOOLNAME])"
"[N]G00G43[ZH]H[T]"
"[N][S]M03"
"[N](Toolpath:- [TOOLPATH_NAME])"
"[N]([TOOLPATH_NOTES])"
"[N]G94"
"[N][XH][YH][F]"






+---------------------------------------------------
+ Commands output for rapid moves
+---------------------------------------------------


begin RAPID_MOVE


"[N]G00[X][Y][Z]"



+---------------------------------------------------
+ Commands output for the first feed rate move
+---------------------------------------------------


begin FIRST_FEED_MOVE


"[N]G1[X][Y][Z][F]"



+---------------------------------------------------
+ Commands output for feed rate moves
+---------------------------------------------------


begin FEED_MOVE


"[N]G1[X][Y][Z]"


+---------------------------------------------------
+ Commands output for the first clockwise arc move
+---------------------------------------------------


begin FIRST_CW_ARC_MOVE


"[N]G2[X][Y][I][J][F]"


+---------------------------------------------------
+ Commands output for clockwise arc move
+---------------------------------------------------


begin CW_ARC_MOVE


"[N]G2[X][Y][I][J]"


+---------------------------------------------------
+ Commands output for the first counterclockwise arc move
+---------------------------------------------------


begin FIRST_CCW_ARC_MOVE


"[N]G3[X][Y][I][J][F]"


+---------------------------------------------------
+ Commands output for counterclockwise arc move
+---------------------------------------------------


begin CCW_ARC_MOVE


"[N]G3[X][Y][I][J]"


+---------------------------------------------------
+ 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[XH][YH]"
"[N]M09"
"[N]M30"
%