-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #448 from mhlong10/longm-post-processor
Adding inch versions of VCarve post processors.
- Loading branch information
Showing
5 changed files
with
828 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
+================================================ | ||
+ | ||
+ Vectric machine output configuration file for | ||
+ g2core. | ||
+ | ||
+================================================ | ||
+ | ||
+ History | ||
+ | ||
+ Who When What | ||
+ ======== ========== =========================== | ||
+ MattL 05/07/2019 Written from grbl_mm.pp | ||
+ added descriptive header | ||
+ MattL 01/25/2020 Inch version | ||
+ ======== ========== =========================== | ||
|
||
POST_NAME = "G2Core Arcs (inch) (*.gcode)" | ||
|
||
FILE_EXTENSION = "gcode" | ||
|
||
UNITS = "INCHES" | ||
|
||
+------------------------------------------------ | ||
+ Line terminating characters | ||
+------------------------------------------------ | ||
|
||
LINE_ENDING = "[13][10]" | ||
|
||
+------------------------------------------------ | ||
+ Block numbering | ||
+------------------------------------------------ | ||
|
||
LINE_NUMBER_START = 0 | ||
LINE_NUMBER_INCREMENT = 10 | ||
LINE_NUMBER_MAXIMUM = 999999 | ||
|
||
+================================================ | ||
+ | ||
+ Formatting for variables | ||
+ | ||
+================================================ | ||
|
||
VAR LINE_NUMBER = [N|A|N|1.0] | ||
VAR POWER = [P|C|S|1.0|10.0] | ||
VAR SPINDLE_SPEED = [S|A|S|1.0] | ||
VAR FEED_RATE = [F|C|F|1.1] | ||
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 | ||
|
||
"( [TP_FILENAME] )" | ||
"( File created: [DATE] - [TIME])" | ||
"( for g2core from Vectric )" | ||
"( Material Size)" | ||
"( X= [XLENGTH], Y= [YLENGTH], Z= [ZLENGTH])" | ||
"([FILE_NOTES])" | ||
"(Tools used in this file: )" | ||
"([TOOLS_USED])" | ||
"T1" | ||
"G17" | ||
"G20" | ||
"G90" | ||
"G0[ZH]" | ||
"G0[XH][YH]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Command output after the header to switch spindle on | ||
+--------------------------------------------------- | ||
|
||
begin SPINDLE_ON | ||
|
||
"[S]M3" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for rapid moves | ||
+--------------------------------------------------- | ||
|
||
begin RAPID_MOVE | ||
|
||
"G0[X][Y][Z]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for the first feed rate move | ||
+--------------------------------------------------- | ||
|
||
begin FIRST_FEED_MOVE | ||
|
||
"G1[X][Y][Z][P][F]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for feed rate moves | ||
+--------------------------------------------------- | ||
|
||
begin FEED_MOVE | ||
|
||
"G1[X][Y][Z][P]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for the first clockwise arc move | ||
+--------------------------------------------------- | ||
|
||
begin FIRST_CW_ARC_MOVE | ||
|
||
"G2[X][Y][I][J][F][P]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for clockwise arc move | ||
+--------------------------------------------------- | ||
|
||
begin CW_ARC_MOVE | ||
|
||
"G2[X][Y][I][J]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for the first counterclockwise arc move | ||
+--------------------------------------------------- | ||
|
||
begin FIRST_CCW_ARC_MOVE | ||
|
||
"G3[X][Y][I][J][F][P]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for counterclockwise arc move | ||
+--------------------------------------------------- | ||
|
||
begin CCW_ARC_MOVE | ||
|
||
"G3[X][Y][I][J]" | ||
|
||
+--------------------------------------------------- | ||
+ Commands output when the jet is turned on | ||
+--------------------------------------------------- | ||
|
||
begin JET_TOOL_ON | ||
|
||
"M4[P]" | ||
|
||
+--------------------------------------------------- | ||
+ Commands output when the jet is turned off | ||
+--------------------------------------------------- | ||
|
||
begin JET_TOOL_OFF | ||
|
||
"M5" | ||
|
||
+--------------------------------------------------- | ||
+ Commands output when the jet power is changed | ||
+--------------------------------------------------- | ||
|
||
begin JET_TOOL_POWER | ||
"[P]" | ||
|
||
+--------------------------------------------------- | ||
+ Commands output at the end of the file | ||
+--------------------------------------------------- | ||
|
||
begin FOOTER | ||
|
||
"M5" | ||
"G0[ZH]" | ||
"G0[XH][YH]" | ||
"M2" |
177 changes: 177 additions & 0 deletions
177
Resources/Post-Processors/VCarve/G2Core_Laser_Arcs_inch.pp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
+================================================ | ||
+ | ||
+ Vectric machine output configuration file for | ||
+ g2core. | ||
+ | ||
+================================================ | ||
+ | ||
+ History | ||
+ | ||
+ Who When What | ||
+ ======== ========== =========================== | ||
+ MattL 11/17/2019 Written from grbl_mm.pp | ||
+ added descriptive header | ||
+ MattL 11/24/2019 Modified to use dynamic | ||
+ laser mode (T32 + M4) | ||
+ MattL 01/25/2020 Inch version | ||
+ ======== ========== =========================== | ||
|
||
POST_NAME = "G2Core Laser Arcs (inch) (*.gcode)" | ||
|
||
FILE_EXTENSION = "gcode" | ||
|
||
UNITS = "INCHES" | ||
|
||
+------------------------------------------------ | ||
+ Line terminating characters | ||
+------------------------------------------------ | ||
|
||
LINE_ENDING = "[13][10]" | ||
|
||
+------------------------------------------------ | ||
+ Block numbering | ||
+------------------------------------------------ | ||
|
||
LINE_NUMBER_START = 0 | ||
LINE_NUMBER_INCREMENT = 10 | ||
LINE_NUMBER_MAXIMUM = 999999 | ||
|
||
+================================================ | ||
+ | ||
+ Formatting for variables | ||
+ | ||
+================================================ | ||
|
||
VAR LINE_NUMBER = [N|A|N|1.0] | ||
VAR POWER = [P|C|S|1.0|10.0] | ||
VAR SPINDLE_SPEED = [S|A|S|1.0] | ||
VAR FEED_RATE = [F|C|F|1.1] | ||
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 | ||
|
||
"( [TP_FILENAME] )" | ||
"( File created: [DATE] - [TIME])" | ||
"( for g2core from Vectric )" | ||
"( Material Size)" | ||
"( X= [XLENGTH], Y= [YLENGTH], Z= [ZLENGTH])" | ||
"([FILE_NOTES])" | ||
"(Tools used in this file: )" | ||
"([TOOLS_USED])" | ||
"T32" | ||
"M6" | ||
"G17" | ||
"G20" | ||
"G90" | ||
"S0M4" | ||
"G0[ZH]" | ||
"G0[XH][YH]" | ||
|
||
+--------------------------------------------------- | ||
+ Commands output for rapid moves | ||
+--------------------------------------------------- | ||
|
||
begin RAPID_MOVE | ||
|
||
"G0[X][Y][Z]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for the first feed rate move | ||
+--------------------------------------------------- | ||
|
||
begin FIRST_FEED_MOVE | ||
|
||
"G1[X][Y][Z][P][F]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for feed rate moves | ||
+--------------------------------------------------- | ||
|
||
begin FEED_MOVE | ||
|
||
"G1[X][Y][Z][P]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for the first clockwise arc move | ||
+--------------------------------------------------- | ||
|
||
begin FIRST_CW_ARC_MOVE | ||
|
||
"G2[X][Y][I][J][F][P]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for clockwise arc move | ||
+--------------------------------------------------- | ||
|
||
begin CW_ARC_MOVE | ||
|
||
"G2[X][Y][I][J]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for the first counterclockwise arc move | ||
+--------------------------------------------------- | ||
|
||
begin FIRST_CCW_ARC_MOVE | ||
|
||
"G3[X][Y][I][J][F][P]" | ||
|
||
|
||
+--------------------------------------------------- | ||
+ Commands output for counterclockwise arc move | ||
+--------------------------------------------------- | ||
|
||
begin CCW_ARC_MOVE | ||
|
||
"G3[X][Y][I][J]" | ||
|
||
+--------------------------------------------------- | ||
+ Commands output for Plunge Moves | ||
+--------------------------------------------------- | ||
|
||
begin PLUNGE_MOVE | ||
|
||
"G1[Z][F]" | ||
"[S]" | ||
|
||
+--------------------------------------------------- | ||
+ Commands output for Retract Moves | ||
+--------------------------------------------------- | ||
|
||
begin RETRACT_MOVE | ||
|
||
"S0" | ||
"G0[Z]" | ||
|
||
+--------------------------------------------------- | ||
+ Commands output at the end of the file | ||
+--------------------------------------------------- | ||
|
||
begin FOOTER | ||
|
||
"S0" | ||
"M5" | ||
"G0[ZH]" | ||
"G0[XH][YH]" | ||
"M2" |
Oops, something went wrong.