-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrbl.opt
216 lines (184 loc) · 6.14 KB
/
grbl.opt
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
machine standard
define word GNM
address letter = "G"
end define
define word M3
address letter = "M"
end define
define word DWELL
address letter = "P"
end define
define format ( GNM M3 )
address width = 1
field width = 2
exponent width = 0
scale factor = 1
scale divisor = 1
tape position = 0
print position = 1
sign = none
not permanent
not modal
metric formats
leading zeros = false
trailing zeros = true
decimal point = false
decimal places = 0
imperial formats = metric formats
end define
define format ( DWELL )
tape position = 1
metric formats
decimal point = true
trailing zeros = true
decimal places = 1
imperial formats = metric formats
end define
define format ( G7 )
address letter = "G"
end define
define format ( N )
field width = 5
leading zeros = true
permanent
end define
define format ( F )
metric formats
decimal point = false
trailing zeros = true
decimal places = 0
imperial formats = metric formats
end define
define format ( GNM G1 G2 G3 G4 G5 G6 G7 M1 M2 M3 F S T X Y Z I J K MS EM P )
tape position = 1
end define
define format ( X Y Z I J K )
trailing zeros = true
end define
define format ( I J K )
scale factor = -1
end define
define format ( MS EM )
field width = 0
end define
word order = ( / N GNM G1 G2 G3 G4 )
word order = ( + G5 G6 G7 X Y Z I )
word order = ( + J K R R2 Q A B )
word order = ( + C U V W Z2 F S )
word order = ( + T M1 M2 M3 L P DWELL )
word order = ( + D E H O MS msg EM )
define keys
message start = MS
message end = EM
dwell = DWELL
cycle dwell not used
end define
define codes
rapid = G1 0
linear = G1 1
circle cw = G1 2
circle ccw = G1 3
dwell = GNM 4
xy plane = G2 17
xz plane = G2 18
zy plane = G2 19
compensation off = G7 40
imperial data = G6 20
metric data = G6 21
absolute data = G3 90
incremental data = G3 91
# from = GNM 92
from not used
feedrate per minute = G5 94
stop = M3 0
opt stop = M3 1
spindle on cw = M1 3
spindle on cc = M1 4
spindle off = M1 5
change tool = M3 6
coolant on mist = M2 8
coolant on = M2 8
coolant on flood = M2 8
coolant off = M2 9
end of tape = M3 2
end of prog = M3 30
end define
integer 6 = 2
integer 7 = 1
integer 10 = 2
integer 11 = 0
integer 12 = 1
# Don't link Coolant to spindle
integer 13 = 0
# Force out X and Y after tool change
integer 16 = 3
# Decimal output format
integer 51 = 2
# message output = false
define block tape start
"( GRBL DUCTpost by kfmut, 2022-08-27 )"
"( https://github.com/kfmut/grbl_3x_pmill_post )"
N ; xy plane
N ; G4 TapeUnits
N ; feedrate per minute
N ; G4 28 ; G5 91 ; Z 0 ; Z =C
N ; G5 TapeCoords ; G5 =C
""
end define
define block tape end
""
N ; spindle off
#; coolant off
N ; G4 28 ; G5 91 ; Z 0 ; G4 =C ; G5 =C ; Z =C
N ; G4 28 ; G5 91 ; X 0 ; Y 0 ; G4 =C ; G5 =C ; X =C ; Y =C
N ; end of prog
end define
define block tool change first
""
N ; rapid ; X FromX ; Y FromY
N ; rapid ; Z SafeZ
N ; T ToolNumber ; change tool
end define
define block tool change
""
N ; spindle off
N ; rapid ; Z SafeZ
N ; T ToolNumber ; change tool
end define
define block tool change clear
""
end define
define block tape split start
"(>>>>> tape split start)"
N ; end of tape
end define
define block tape split end
"(>>>>> tape split end)"
N ; end of tape
end define
define block cycle start
"(>>>>> cycle start)"
N ; end of tape
end define
define block cycle end
"(>>>>> cycle end)"
N ; end of tape
end define
define block tape split move
"(>>>>> split move)"
N ; end of tape
end define
define block move rapid
N ; rapid ; G2 ; x coord ; y coord ; z coord ; spindle ; M1 ; M2
end define
define block move linear
N ; linear ; G2 ; G7 ; x coord ; y coord ; z coord ; feedrate ; spindle ; M1 ; M2
end define
define block move circle
N ; G1 ; G2 ; x coord ; y coord ; z coord ; key i ; key j ; key k ; feedrate ; spindle ; M1 ; M2
end define
# G4 pause/dwell handler
define block cldat 1010
N ; GNM 4 ; DWELL =C
end define
end