-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathOpenBuilds_inch.pp
115 lines (95 loc) · 3.41 KB
/
OpenBuilds_inch.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
+================================================
+
+ Grbl - Vectric machine output configuration file
+
+================================================
+
+ History
+
+ Who When What
+ ======== ========== ===========================
+ EdwardP 28/11/2014 Written from GCode_mm.pp
+ Added arc move support
+ EdwardP 11/02/2015 Commented out arcs as these
+ slow GRBL performance appear
+ interpolated anyway
+ EdwardP 18/06/2015 Explicitly set absolute mode (G90)
+ Mark 24/11/2015 Updated for interim 0.9 spec.
+ Renaming to be machine specific.
+ Removing M30 from Footer.
+ EdwardP 01/02/2018 Updated according to 1.1 spec
+ Changed to 1.3 precision
+ Spindle off (M5) in footer
+ Added VTransfer Direct Output
+ EdwardP 07/12/2018 Added grbl laser 1.1 support.
+ - Power variable (0-1000 range)
+ - Power on change only
+ - [P] added to feedrate records
+ - New laser record types:
+ o JET_TOOL_ON
+ o JET_TOOL_OFF
+ o JET_TOOL_POWER
+ MohamedM 13/12/2018 Move M3 and [S] from the header
+ to a new SPINDLE_ON section which
+ is not output in laser toolpaths
+ or when the spindle speed is invalid (negative).
+ EdwardP 20/12/2018 Re-enabled arcs in response to
+ customer feedback ZD105327
+ CharlotteP 26/03/2020 Updated to open builds from base
+ grbl with ZD141201
+ PetervdWalt 11/6/2020 Updated Header to include G20/G90 Modals
+ for OpenBuilds BlackBox
+ PetervdWalt 11/07/2023 Updated to use MIN_ARC_RADIUS
+ ======== ========== ===========================
POST_NAME = "OpenBuilds GRBL (Inches) (*.GCODE)"
POST_BASE = "Grbl_inch.pp"
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
+================================================
+
+ 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.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]
VAR MIN_ARC_RADIUS = 0.04
+================================================
+
+ Block definitions for toolpath output
+
+================================================
+---------------------------------------------------
+ Commands output at the start of the file
+---------------------------------------------------
begin HEADER
"T1"
"G17"
"G20"
"G90"
"G0[ZH]"
"G0[XH][YH]"
+---------------------------------------------------
+ Command output after the header to switch spindle on
+---------------------------------------------------
begin SPINDLE_ON
"M3[S]"
"G4 P1.8"