blob: 9bf737c72e5970712b15d2f2683fbe8b706fef2b [file] [log] [blame]
Luigi Santivetti69972f92019-11-12 22:55:40 +00001/*
2 defaults.h - defaults settings configuration file
3 Part of Grbl
4
5 Copyright (c) 2012-2016 Sungeun K. Jeon for Gnea Research LLC
6
7 Grbl is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 Grbl is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Grbl. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21/* The defaults.h file serves as a central default settings selector for different machine
22 types, from DIY CNC mills to CNC conversions of off-the-shelf machines. The settings
23 files listed here are supplied by users, so your results may vary. However, this should
24 give you a good starting point as you get to know your machine and tweak the settings for
25 your nefarious needs.
26 NOTE: Ensure one and only one of these DEFAULTS_XXX values is defined in config.h */
27
28#ifndef defaults_h
29
30#ifdef DEFAULTS_GENERIC
31 // Grbl generic default settings. Should work across different machines.
32 #define DEFAULT_X_STEPS_PER_MM 250.0
33 #define DEFAULT_Y_STEPS_PER_MM 250.0
34 #define DEFAULT_Z_STEPS_PER_MM 250.0
35 #define DEFAULT_X_MAX_RATE 500.0 // mm/min
36 #define DEFAULT_Y_MAX_RATE 500.0 // mm/min
37 #define DEFAULT_Z_MAX_RATE 500.0 // mm/min
38 #define DEFAULT_X_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
39 #define DEFAULT_Y_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
40 #define DEFAULT_Z_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
41 #define DEFAULT_X_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
42 #define DEFAULT_Y_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
43 #define DEFAULT_Z_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
44 #define DEFAULT_SPINDLE_RPM_MAX 1000.0 // rpm
45 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
46 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
47 #define DEFAULT_STEPPING_INVERT_MASK 0
48 #define DEFAULT_DIRECTION_INVERT_MASK 0
49 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 25 // msec (0-254, 255 keeps steppers enabled)
50 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
51 #define DEFAULT_JUNCTION_DEVIATION 0.01 // mm
52 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
53 #define DEFAULT_REPORT_INCHES 0 // false
54 #define DEFAULT_INVERT_ST_ENABLE 0 // false
55 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
56 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
57 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
58 #define DEFAULT_INVERT_PROBE_PIN 0 // false
59 #define DEFAULT_LASER_MODE 0 // false
60 #define DEFAULT_HOMING_ENABLE 0 // false
61 #define DEFAULT_HOMING_DIR_MASK 0 // move positive dir
62 #define DEFAULT_HOMING_FEED_RATE 25.0 // mm/min
63 #define DEFAULT_HOMING_SEEK_RATE 500.0 // mm/min
64 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
65 #define DEFAULT_HOMING_PULLOFF 1.0 // mm
Luigi Santivetti42a1b332019-11-17 22:31:46 +000066 #ifdef USE_ADC
67 #define DEFAULT_ENABLE_ADC 1 // Setting bit for marking ADC as on
68 #define DEFAULT_ADC_MODE ADC_CONFIG_MODE_SW_TRIGGER // Software triggering next conversion
69 #define DEFAULT_ADC_REFERENCE ADC_CONFIG_REFERENCE_INTERNAL_1VREF // AVcc reference input voltage
70 #define DEFAULT_ADC_READINGS 4 // Times each channel is to be read
71 #define DEFAULT_ADC_RESOLUTION 8 // Integer number of bits
72 #define DEFAULT_ADC_CLOCK 125 // Integer KHz value
73 #define DEFAULT_ADC_CHANNELS_MASK ADC_CONFIG_ENABLED_CHANNELS
74 #ifdef ADC_CONFIG_SYSTEM_ALARM
75 #define DEFAULT_ADC_RANGE_CHANNEL_8_MIN ADC_CONFIG_RANGE_CHANNEL_8_MIN // Celsius degrees
76 #define DEFAULT_ADC_RANGE_CHANNEL_8_MAX ADC_CONFIG_RANGE_CHANNEL_8_MAX // Celsius degrees
77 #endif
78 #endif
Luigi Santivetti69972f92019-11-12 22:55:40 +000079#endif
80
81#ifdef DEFAULTS_SHERLINE_5400
82 // Description: Sherline 5400 mill with three NEMA 23 Keling KL23H256-21-8B 185 oz-in stepper motors,
83 // driven by three Pololu A4988 stepper drivers with a 30V, 6A power supply at 1.5A per winding.
84 #define MICROSTEPS 2
85 #define STEPS_PER_REV 200.0
86 #define MM_PER_REV (0.050*MM_PER_INCH) // 0.050 inch/rev leadscrew
87 #define DEFAULT_X_STEPS_PER_MM (STEPS_PER_REV*MICROSTEPS/MM_PER_REV)
88 #define DEFAULT_Y_STEPS_PER_MM (STEPS_PER_REV*MICROSTEPS/MM_PER_REV)
89 #define DEFAULT_Z_STEPS_PER_MM (STEPS_PER_REV*MICROSTEPS/MM_PER_REV)
90 #define DEFAULT_X_MAX_RATE 635.0 // mm/min (25 ipm)
91 #define DEFAULT_Y_MAX_RATE 635.0 // mm/min
92 #define DEFAULT_Z_MAX_RATE 635.0 // mm/min
93 #define DEFAULT_X_ACCELERATION (50.0*60*60) // 50*60*60 mm/min^2 = 50 mm/sec^2
94 #define DEFAULT_Y_ACCELERATION (50.0*60*60) // 50*60*60 mm/min^2 = 50 mm/sec^2
95 #define DEFAULT_Z_ACCELERATION (50.0*60*60) // 50*60*60 mm/min^2 = 50 mm/sec^2
96 #define DEFAULT_X_MAX_TRAVEL 225.0 // mm NOTE: Must be a positive value.
97 #define DEFAULT_Y_MAX_TRAVEL 125.0 // mm NOTE: Must be a positive value.
98 #define DEFAULT_Z_MAX_TRAVEL 170.0 // mm NOTE: Must be a positive value.
99 #define DEFAULT_SPINDLE_RPM_MAX 2800.0 // rpm
100 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
101 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
102 #define DEFAULT_STEPPING_INVERT_MASK 0
103 #define DEFAULT_DIRECTION_INVERT_MASK ((1<<Y_AXIS)|(1<<Z_AXIS))
104 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 25 // msec (0-254, 255 keeps steppers enabled)
105 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
106 #define DEFAULT_JUNCTION_DEVIATION 0.01 // mm
107 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
108 #define DEFAULT_REPORT_INCHES 0 // true
109 #define DEFAULT_INVERT_ST_ENABLE 0 // false
110 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
111 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
112 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
113 #define DEFAULT_INVERT_PROBE_PIN 0 // false
114 #define DEFAULT_LASER_MODE 0 // false
115 #define DEFAULT_HOMING_ENABLE 0 // false
116 #define DEFAULT_HOMING_DIR_MASK 0 // move positive dir
117 #define DEFAULT_HOMING_FEED_RATE 50.0 // mm/min
118 #define DEFAULT_HOMING_SEEK_RATE 635.0 // mm/min
119 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
120 #define DEFAULT_HOMING_PULLOFF 1.0 // mm
121#endif
122
123#ifdef DEFAULTS_POCKETNC_FR4
124 // Description: Pocket NC FR4 CNC mill.
125 #define DEFAULT_X_STEPS_PER_MM 800.0
126 #define DEFAULT_Y_STEPS_PER_MM 800.0
127 #define DEFAULT_Z_STEPS_PER_MM 800.0
128 #define DEFAULT_X_MAX_RATE 300.0 // mm/min
129 #define DEFAULT_Y_MAX_RATE 300.0 // mm/min
130 #define DEFAULT_Z_MAX_RATE 300.0 // mm/min
131 #define DEFAULT_X_ACCELERATION (30.0*60*60) // 15*60*60 mm/min^2 = 15 mm/sec^2
132 #define DEFAULT_Y_ACCELERATION (30.0*60*60) // 15*60*60 mm/min^2 = 15 mm/sec^2
133 #define DEFAULT_Z_ACCELERATION (30.0*60*60) // 15*60*60 mm/min^2 = 15 mm/sec^2
134 #define DEFAULT_X_MAX_TRAVEL 225.0 // mm NOTE: Must be a positive value.
135 #define DEFAULT_Y_MAX_TRAVEL 125.0 // mm NOTE: Must be a positive value.
136 #define DEFAULT_Z_MAX_TRAVEL 170.0 // mm NOTE: Must be a positive value.
137 #define DEFAULT_SPINDLE_RPM_MAX 7000.0 // rpm
138 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
139 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
140 #define DEFAULT_STEPPING_INVERT_MASK 0
141 #define DEFAULT_DIRECTION_INVERT_MASK ((1<<Y_AXIS)|(1<<Z_AXIS))
142 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 250 // msec (0-254, 255 keeps steppers enabled)
143 #define DEFAULT_STATUS_REPORT_MASK 3 // WPos enabled
144 #define DEFAULT_JUNCTION_DEVIATION 0.01 // mm
145 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
146 #define DEFAULT_REPORT_INCHES 0 // false
147 #define DEFAULT_INVERT_ST_ENABLE 1 // false
148 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
149 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
150 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
151 #define DEFAULT_INVERT_PROBE_PIN 0 // false
152 #define DEFAULT_LASER_MODE 0 // false
153 #define DEFAULT_HOMING_ENABLE 1 // false
154 #define DEFAULT_HOMING_DIR_MASK 1 // move positive dir
155 #define DEFAULT_HOMING_FEED_RATE 100.0 // mm/min
156 #define DEFAULT_HOMING_SEEK_RATE 300.0 // mm/min
157 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
158 #define DEFAULT_HOMING_PULLOFF 3.0 // mm
159#endif
160
161#ifdef DEFAULTS_SHAPEOKO
162 // Description: Shapeoko CNC mill with three NEMA 17 stepper motors, driven by Synthetos
163 // grblShield with a 24V, 4.2A power supply.
164 #define MICROSTEPS_XY 8
165 #define STEP_REVS_XY 400
166 #define MM_PER_REV_XY (0.08*18*MM_PER_INCH) // 0.08 in belt pitch, 18 pulley teeth
167 #define MICROSTEPS_Z 2
168 #define STEP_REVS_Z 400
169 #define MM_PER_REV_Z 1.250 // 1.25 mm/rev leadscrew
170 #define DEFAULT_X_STEPS_PER_MM (MICROSTEPS_XY*STEP_REVS_XY/MM_PER_REV_XY)
171 #define DEFAULT_Y_STEPS_PER_MM (MICROSTEPS_XY*STEP_REVS_XY/MM_PER_REV_XY)
172 #define DEFAULT_Z_STEPS_PER_MM (MICROSTEPS_Z*STEP_REVS_Z/MM_PER_REV_Z)
173 #define DEFAULT_X_MAX_RATE 1000.0 // mm/min
174 #define DEFAULT_Y_MAX_RATE 1000.0 // mm/min
175 #define DEFAULT_Z_MAX_RATE 1000.0 // mm/min
176 #define DEFAULT_X_ACCELERATION (15.0*60*60) // 15*60*60 mm/min^2 = 15 mm/sec^2
177 #define DEFAULT_Y_ACCELERATION (15.0*60*60) // 15*60*60 mm/min^2 = 15 mm/sec^2
178 #define DEFAULT_Z_ACCELERATION (15.0*60*60) // 15*60*60 mm/min^2 = 15 mm/sec^2
179 #define DEFAULT_X_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
180 #define DEFAULT_Y_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
181 #define DEFAULT_Z_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
182 #define DEFAULT_SPINDLE_RPM_MAX 10000.0 // rpm
183 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
184 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
185 #define DEFAULT_STEPPING_INVERT_MASK 0
186 #define DEFAULT_DIRECTION_INVERT_MASK ((1<<Y_AXIS)|(1<<Z_AXIS))
187 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 255 // msec (0-254, 255 keeps steppers enabled)
188 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
189 #define DEFAULT_JUNCTION_DEVIATION 0.02 // mm
190 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
191 #define DEFAULT_REPORT_INCHES 0 // false
192 #define DEFAULT_INVERT_ST_ENABLE 0 // false
193 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
194 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
195 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
196 #define DEFAULT_INVERT_PROBE_PIN 0 // false
197 #define DEFAULT_LASER_MODE 0 // false
198 #define DEFAULT_HOMING_ENABLE 0 // false
199 #define DEFAULT_HOMING_DIR_MASK 0 // move positive dir
200 #define DEFAULT_HOMING_FEED_RATE 25.0 // mm/min
201 #define DEFAULT_HOMING_SEEK_RATE 250.0 // mm/min
202 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
203 #define DEFAULT_HOMING_PULLOFF 1.0 // mm
204#endif
205
206#ifdef DEFAULTS_SHAPEOKO_2
207 // Description: Shapeoko CNC mill with three NEMA 17 stepper motors, driven by Synthetos
208 // grblShield at 28V.
209 #define MICROSTEPS_XY 8
210 #define STEP_REVS_XY 200
211 #define MM_PER_REV_XY (2.0*20) // 2mm belt pitch, 20 pulley teeth
212 #define MICROSTEPS_Z 2
213 #define STEP_REVS_Z 200
214 #define MM_PER_REV_Z 1.250 // 1.25 mm/rev leadscrew
215 #define DEFAULT_X_STEPS_PER_MM (MICROSTEPS_XY*STEP_REVS_XY/MM_PER_REV_XY)
216 #define DEFAULT_Y_STEPS_PER_MM (MICROSTEPS_XY*STEP_REVS_XY/MM_PER_REV_XY)
217 #define DEFAULT_Z_STEPS_PER_MM (MICROSTEPS_Z*STEP_REVS_Z/MM_PER_REV_Z)
218 #define DEFAULT_X_MAX_RATE 5000.0 // mm/min
219 #define DEFAULT_Y_MAX_RATE 5000.0 // mm/min
220 #define DEFAULT_Z_MAX_RATE 500.0 // mm/min
221 #define DEFAULT_X_ACCELERATION (250.0*60*60) // 25*60*60 mm/min^2 = 25 mm/sec^2
222 #define DEFAULT_Y_ACCELERATION (250.0*60*60) // 25*60*60 mm/min^2 = 25 mm/sec^2
223 #define DEFAULT_Z_ACCELERATION (50.0*60*60) // 25*60*60 mm/min^2 = 25 mm/sec^2
224 #define DEFAULT_X_MAX_TRAVEL 290.0 // mm NOTE: Must be a positive value.
225 #define DEFAULT_Y_MAX_TRAVEL 290.0 // mm NOTE: Must be a positive value.
226 #define DEFAULT_Z_MAX_TRAVEL 100.0 // mm NOTE: Must be a positive value.
227 #define DEFAULT_SPINDLE_RPM_MAX 10000.0 // rpm
228 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
229 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
230 #define DEFAULT_STEPPING_INVERT_MASK 0
231 #define DEFAULT_DIRECTION_INVERT_MASK ((1<<X_AXIS)|(1<<Z_AXIS))
232 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 255 // msec (0-254, 255 keeps steppers enabled)
233 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
234 #define DEFAULT_JUNCTION_DEVIATION 0.02 // mm
235 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
236 #define DEFAULT_REPORT_INCHES 0 // false
237 #define DEFAULT_INVERT_ST_ENABLE 0 // false
238 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
239 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
240 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
241 #define DEFAULT_INVERT_PROBE_PIN 0 // false
242 #define DEFAULT_LASER_MODE 0 // false
243 #define DEFAULT_HOMING_ENABLE 0 // false
244 #define DEFAULT_HOMING_DIR_MASK 0 // move positive dir
245 #define DEFAULT_HOMING_FEED_RATE 25.0 // mm/min
246 #define DEFAULT_HOMING_SEEK_RATE 250.0 // mm/min
247 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
248 #define DEFAULT_HOMING_PULLOFF 1.0 // mm
249#endif
250
251#ifdef DEFAULTS_SHAPEOKO_3
252 // Description: Shapeoko CNC mill with three NEMA 23 stepper motors, driven by CarbideMotion
253 #define MICROSTEPS_XY 8
254 #define STEP_REVS_XY 200
255 #define MM_PER_REV_XY (2.0*20) // 2mm belt pitch, 20 pulley teeth
256 #define MICROSTEPS_Z 8
257 #define STEP_REVS_Z 200
258 #define MM_PER_REV_Z (2.0*20) // 2mm belt pitch, 20 pulley teeth
259 #define DEFAULT_X_STEPS_PER_MM (MICROSTEPS_XY*STEP_REVS_XY/MM_PER_REV_XY)
260 #define DEFAULT_Y_STEPS_PER_MM (MICROSTEPS_XY*STEP_REVS_XY/MM_PER_REV_XY)
261 #define DEFAULT_Z_STEPS_PER_MM (MICROSTEPS_Z*STEP_REVS_Z/MM_PER_REV_Z)
262 #define DEFAULT_X_MAX_RATE 5000.0 // mm/min
263 #define DEFAULT_Y_MAX_RATE 5000.0 // mm/min
264 #define DEFAULT_Z_MAX_RATE 5000.0 // mm/min
265 #define DEFAULT_X_ACCELERATION (400.0*60*60) // 400*60*60 mm/min^2 = 400 mm/sec^2
266 #define DEFAULT_Y_ACCELERATION (400.0*60*60) // 400*60*60 mm/min^2 = 400 mm/sec^2
267 #define DEFAULT_Z_ACCELERATION (400.0*60*60) // 400*60*60 mm/min^2 = 400 mm/sec^2
268 #define DEFAULT_X_MAX_TRAVEL 425.0 // mm NOTE: Must be a positive value.
269 #define DEFAULT_Y_MAX_TRAVEL 465.0 // mm NOTE: Must be a positive value.
270 #define DEFAULT_Z_MAX_TRAVEL 80.0 // mm NOTE: Must be a positive value.
271 #define DEFAULT_SPINDLE_RPM_MAX 10000.0 // rpm
272 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
273 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
274 #define DEFAULT_STEPPING_INVERT_MASK 0
275 #define DEFAULT_DIRECTION_INVERT_MASK ((1<<X_AXIS)|(1<<Z_AXIS))
276 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 255 // msec (0-254, 255 keeps steppers enabled)
277 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
278 #define DEFAULT_JUNCTION_DEVIATION 0.02 // mm
279 #define DEFAULT_ARC_TOLERANCE 0.01 // mm
280 #define DEFAULT_REPORT_INCHES 0 // false
281 #define DEFAULT_INVERT_ST_ENABLE 0 // false
282 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
283 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
284 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
285 #define DEFAULT_INVERT_PROBE_PIN 0 // false
286 #define DEFAULT_LASER_MODE 0 // false
287 #define DEFAULT_HOMING_ENABLE 0 // false
288 #define DEFAULT_HOMING_DIR_MASK 0 // move positive dir
289 #define DEFAULT_HOMING_FEED_RATE 100.0 // mm/min
290 #define DEFAULT_HOMING_SEEK_RATE 1000.0 // mm/min
291 #define DEFAULT_HOMING_DEBOUNCE_DELAY 25 // msec (0-65k)
292 #define DEFAULT_HOMING_PULLOFF 5.0 // mm
293#endif
294
295#ifdef DEFAULTS_X_CARVE_500MM
296 // Description: X-Carve 3D Carver CNC mill with three 200 step/rev motors driven by Synthetos
297 // grblShield at 24V.
298 #define MICROSTEPS_XY 8
299 #define STEP_REVS_XY 200
300 #define MM_PER_REV_XY (2.0*20) // 2mm belt pitch, 20 pulley teeth
301 #define MICROSTEPS_Z 2
302 #define STEP_REVS_Z 200
303 #define MM_PER_REV_Z 2.117 // ACME 3/8-12 Leadscrew
304 #define DEFAULT_X_STEPS_PER_MM (MICROSTEPS_XY*STEP_REVS_XY/MM_PER_REV_XY)
305 #define DEFAULT_Y_STEPS_PER_MM (MICROSTEPS_XY*STEP_REVS_XY/MM_PER_REV_XY)
306 #define DEFAULT_Z_STEPS_PER_MM (MICROSTEPS_Z*STEP_REVS_Z/MM_PER_REV_Z)
307 #define DEFAULT_X_MAX_RATE 8000.0 // mm/min
308 #define DEFAULT_Y_MAX_RATE 8000.0 // mm/min
309 #define DEFAULT_Z_MAX_RATE 500.0 // mm/min
310 #define DEFAULT_X_ACCELERATION (500.0*60*60) // 25*60*60 mm/min^2 = 25 mm/sec^2
311 #define DEFAULT_Y_ACCELERATION (500.0*60*60) // 25*60*60 mm/min^2 = 25 mm/sec^2
312 #define DEFAULT_Z_ACCELERATION (50.0*60*60) // 25*60*60 mm/min^2 = 25 mm/sec^2
313 #define DEFAULT_X_MAX_TRAVEL 290.0 // mm NOTE: Must be a positive value.
314 #define DEFAULT_Y_MAX_TRAVEL 290.0 // mm NOTE: Must be a positive value.
315 #define DEFAULT_Z_MAX_TRAVEL 100.0 // mm NOTE: Must be a positive value.
316 #define DEFAULT_SPINDLE_RPM_MAX 10000.0 // rpm
317 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
318 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
319 #define DEFAULT_STEPPING_INVERT_MASK 0
320 #define DEFAULT_DIRECTION_INVERT_MASK ((1<<X_AXIS)|(1<<Y_AXIS))
321 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 255 // msec (0-254, 255 keeps steppers enabled)
322 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
323 #define DEFAULT_JUNCTION_DEVIATION 0.02 // mm
324 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
325 #define DEFAULT_REPORT_INCHES 0 // false
326 #define DEFAULT_INVERT_ST_ENABLE 0 // false
327 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
328 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
329 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
330 #define DEFAULT_INVERT_PROBE_PIN 0 // false
331 #define DEFAULT_LASER_MODE 0 // false
332 #define DEFAULT_HOMING_ENABLE 0 // false
333 #define DEFAULT_HOMING_DIR_MASK 3 // move positive dir
334 #define DEFAULT_HOMING_FEED_RATE 25.0 // mm/min
335 #define DEFAULT_HOMING_SEEK_RATE 750.0 // mm/min
336 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
337 #define DEFAULT_HOMING_PULLOFF 1.0 // mm
338#endif
339
340#ifdef DEFAULTS_X_CARVE_1000MM
341 // Description: X-Carve 3D Carver CNC mill with three 200 step/rev motors driven by Synthetos
342 // grblShield at 24V.
343 #define MICROSTEPS_XY 8
344 #define STEP_REVS_XY 200
345 #define MM_PER_REV_XY (2.0*20) // 2mm belt pitch, 20 pulley teeth
346 #define MICROSTEPS_Z 2
347 #define STEP_REVS_Z 200
348 #define MM_PER_REV_Z 2.117 // ACME 3/8-12 Leadscrew
349 #define DEFAULT_X_STEPS_PER_MM (MICROSTEPS_XY*STEP_REVS_XY/MM_PER_REV_XY)
350 #define DEFAULT_Y_STEPS_PER_MM (MICROSTEPS_XY*STEP_REVS_XY/MM_PER_REV_XY)
351 #define DEFAULT_Z_STEPS_PER_MM (MICROSTEPS_Z*STEP_REVS_Z/MM_PER_REV_Z)
352 #define DEFAULT_X_MAX_RATE 8000.0 // mm/min
353 #define DEFAULT_Y_MAX_RATE 8000.0 // mm/min
354 #define DEFAULT_Z_MAX_RATE 500.0 // mm/min
355 #define DEFAULT_X_ACCELERATION (500.0*60*60) // 25*60*60 mm/min^2 = 25 mm/sec^2
356 #define DEFAULT_Y_ACCELERATION (500.0*60*60) // 25*60*60 mm/min^2 = 25 mm/sec^2
357 #define DEFAULT_Z_ACCELERATION (50.0*60*60) // 25*60*60 mm/min^2 = 25 mm/sec^2
358 #define DEFAULT_X_MAX_TRAVEL 740.0 // mm NOTE: Must be a positive value.
359 #define DEFAULT_Y_MAX_TRAVEL 790.0 // mm NOTE: Must be a positive value.
360 #define DEFAULT_Z_MAX_TRAVEL 100.0 // mm NOTE: Must be a positive value.
361 #define DEFAULT_SPINDLE_RPM_MAX 10000.0 // rpm
362 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
363 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
364 #define DEFAULT_STEPPING_INVERT_MASK 0
365 #define DEFAULT_DIRECTION_INVERT_MASK ((1<<X_AXIS)|(1<<Y_AXIS))
366 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 255 // msec (0-254, 255 keeps steppers enabled)
367 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
368 #define DEFAULT_JUNCTION_DEVIATION 0.02 // mm
369 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
370 #define DEFAULT_REPORT_INCHES 0 // false
371 #define DEFAULT_INVERT_ST_ENABLE 0 // false
372 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
373 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
374 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
375 #define DEFAULT_INVERT_PROBE_PIN 0 // false
376 #define DEFAULT_LASER_MODE 0 // false
377 #define DEFAULT_HOMING_ENABLE 0 // false
378 #define DEFAULT_HOMING_DIR_MASK 3 // move positive dir
379 #define DEFAULT_HOMING_FEED_RATE 25.0 // mm/min
380 #define DEFAULT_HOMING_SEEK_RATE 750.0 // mm/min
381 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
382 #define DEFAULT_HOMING_PULLOFF 1.0 // mm
383#endif
384
385#ifdef DEFAULTS_BOBSCNC_E3
386 // Grbl settings for Bob's CNC E3 Machine
387 // https://www.bobscnc.com/products/e3-cnc-engraving-kit
388 #define DEFAULT_X_STEPS_PER_MM 80.0
389 #define DEFAULT_Y_STEPS_PER_MM 80.0
390 #define DEFAULT_Z_STEPS_PER_MM 2267.717
391 #define DEFAULT_X_MAX_RATE 10000.0 // mm/min
392 #define DEFAULT_Y_MAX_RATE 10000.0 // mm/min
393 #define DEFAULT_Z_MAX_RATE 500.0 // mm/min
394 #define DEFAULT_X_ACCELERATION (500.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
395 #define DEFAULT_Y_ACCELERATION (500.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
396 #define DEFAULT_Z_ACCELERATION (300.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
397 #define DEFAULT_X_MAX_TRAVEL 450.0 // mm NOTE: Must be a positive value.
398 #define DEFAULT_Y_MAX_TRAVEL 390.0 // mm NOTE: Must be a positive value.
399 #define DEFAULT_Z_MAX_TRAVEL 85.0 // mm NOTE: Must be a positive value.
400 #define DEFAULT_SPINDLE_RPM_MAX 1000.0 // rpm
401 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
402 #define DEFAULT_STEP_PULSE_MICROSECONDS 5
403 #define DEFAULT_STEPPING_INVERT_MASK 0
404 #define DEFAULT_DIRECTION_INVERT_MASK 0
405 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 25 // msec (0-254, 255 keeps steppers enabled)
406 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
407 #define DEFAULT_JUNCTION_DEVIATION 0.01 // mm
408 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
409 #define DEFAULT_REPORT_INCHES 1 // true
410 #define DEFAULT_INVERT_ST_ENABLE 0 // false
411 #define DEFAULT_INVERT_LIMIT_PINS 1 // true
412 #define DEFAULT_SOFT_LIMIT_ENABLE 1 // true
413 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
414 #define DEFAULT_INVERT_PROBE_PIN 0 // false
415 #define DEFAULT_LASER_MODE 0 // false
416 #define DEFAULT_HOMING_ENABLE 1 // true
417 #define DEFAULT_HOMING_DIR_MASK 3 // move xy -dir, z dir
418 #define DEFAULT_HOMING_FEED_RATE 500.0 // mm/min
419 #define DEFAULT_HOMING_SEEK_RATE 4000.0 // mm/min
420 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
421 #define DEFAULT_HOMING_PULLOFF 5.0 // mm
422#endif
423
424#ifdef DEFAULTS_BOBSCNC_E4
425 // Grbl settings for Bob's CNC E4 Machine
426 // https://www.bobscnc.com/products/e4-cnc-router
427 #define DEFAULT_X_STEPS_PER_MM 80.0
428 #define DEFAULT_Y_STEPS_PER_MM 80.0
429 #define DEFAULT_Z_STEPS_PER_MM 2267.717
430 #define DEFAULT_X_MAX_RATE 10000.0 // mm/min
431 #define DEFAULT_Y_MAX_RATE 10000.0 // mm/min
432 #define DEFAULT_Z_MAX_RATE 500.0 // mm/min
433 #define DEFAULT_X_ACCELERATION (500.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
434 #define DEFAULT_Y_ACCELERATION (500.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
435 #define DEFAULT_Z_ACCELERATION (300.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
436 #define DEFAULT_X_MAX_TRAVEL 610.0 // mm NOTE: Must be a positive value.
437 #define DEFAULT_Y_MAX_TRAVEL 610.0 // mm NOTE: Must be a positive value.
438 #define DEFAULT_Z_MAX_TRAVEL 85.0 // mm NOTE: Must be a positive value.
439 #define DEFAULT_SPINDLE_RPM_MAX 1000.0 // rpm
440 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
441 #define DEFAULT_STEP_PULSE_MICROSECONDS 5
442 #define DEFAULT_STEPPING_INVERT_MASK 0
443 #define DEFAULT_DIRECTION_INVERT_MASK 0
444 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 25 // msec (0-254, 255 keeps steppers enabled)
445 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
446 #define DEFAULT_JUNCTION_DEVIATION 0.01 // mm
447 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
448 #define DEFAULT_REPORT_INCHES 1 // true
449 #define DEFAULT_INVERT_ST_ENABLE 0 // false
450 #define DEFAULT_INVERT_LIMIT_PINS 1 // true
451 #define DEFAULT_SOFT_LIMIT_ENABLE 1 // true
452 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
453 #define DEFAULT_INVERT_PROBE_PIN 0 // false
454 #define DEFAULT_LASER_MODE 0 // false
455 #define DEFAULT_HOMING_ENABLE 1 // true
456 #define DEFAULT_HOMING_DIR_MASK 3 // move xy -dir, z dir
457 #define DEFAULT_HOMING_FEED_RATE 500.0 // mm/min
458 #define DEFAULT_HOMING_SEEK_RATE 4000.0 // mm/min
459 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
460 #define DEFAULT_HOMING_PULLOFF 5.0 // mm
461#endif
462
463#ifdef DEFAULTS_ZEN_TOOLWORKS_7x7
464 // Description: Zen Toolworks 7x7 mill with three Shinano SST43D2121 65oz-in NEMA 17 stepper motors.
465 // Leadscrew is different from some ZTW kits, where most are 1.25mm/rev rather than 8.0mm/rev here.
466 // Driven by 30V, 6A power supply and TI DRV8811 stepper motor drivers.
467 #define MICROSTEPS 8
468 #define STEPS_PER_REV 200.0
469 #define MM_PER_REV 8.0 // 8 mm/rev leadscrew
470 #define DEFAULT_X_STEPS_PER_MM (STEPS_PER_REV*MICROSTEPS/MM_PER_REV)
471 #define DEFAULT_Y_STEPS_PER_MM (STEPS_PER_REV*MICROSTEPS/MM_PER_REV)
472 #define DEFAULT_Z_STEPS_PER_MM (STEPS_PER_REV*MICROSTEPS/MM_PER_REV)
473 #define DEFAULT_X_MAX_RATE 6000.0 // mm/min
474 #define DEFAULT_Y_MAX_RATE 6000.0 // mm/min
475 #define DEFAULT_Z_MAX_RATE 6000.0 // mm/min
476 #define DEFAULT_X_ACCELERATION (600.0*60*60) // 600*60*60 mm/min^2 = 600 mm/sec^2
477 #define DEFAULT_Y_ACCELERATION (600.0*60*60) // 600*60*60 mm/min^2 = 600 mm/sec^2
478 #define DEFAULT_Z_ACCELERATION (600.0*60*60) // 600*60*60 mm/min^2 = 600 mm/sec^2
479 #define DEFAULT_X_MAX_TRAVEL 190.0 // mm NOTE: Must be a positive value.
480 #define DEFAULT_Y_MAX_TRAVEL 180.0 // mm NOTE: Must be a positive value.
481 #define DEFAULT_Z_MAX_TRAVEL 150.0 // mm NOTE: Must be a positive value.
482 #define DEFAULT_SPINDLE_RPM_MAX 10000.0 // rpm
483 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
484 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
485 #define DEFAULT_STEPPING_INVERT_MASK 0
486 #define DEFAULT_DIRECTION_INVERT_MASK ((1<<Y_AXIS))
487 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 25 // msec (0-254, 255 keeps steppers enabled)
488 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
489 #define DEFAULT_JUNCTION_DEVIATION 0.02 // mm
490 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
491 #define DEFAULT_REPORT_INCHES 0 // false
492 #define DEFAULT_INVERT_ST_ENABLE 0 // false
493 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
494 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
495 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
496 #define DEFAULT_INVERT_PROBE_PIN 0 // false
497 #define DEFAULT_LASER_MODE 0 // false
498 #define DEFAULT_HOMING_ENABLE 0 // false
499 #define DEFAULT_HOMING_DIR_MASK 0 // move positive dir
500 #define DEFAULT_HOMING_FEED_RATE 25.0 // mm/min
501 #define DEFAULT_HOMING_SEEK_RATE 250.0 // mm/min
502 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
503 #define DEFAULT_HOMING_PULLOFF 1.0 // mm
504#endif
505
506#ifdef DEFAULTS_OXCNC
507 // Grbl settings for OpenBuilds OX CNC Machine
508 // http://www.openbuilds.com/builds/openbuilds-ox-cnc-machine.341/
509 #define DEFAULT_X_STEPS_PER_MM 26.670
510 #define DEFAULT_Y_STEPS_PER_MM 26.670
511 #define DEFAULT_Z_STEPS_PER_MM 50
512 #define DEFAULT_X_MAX_RATE 500.0 // mm/min
513 #define DEFAULT_Y_MAX_RATE 500.0 // mm/min
514 #define DEFAULT_Z_MAX_RATE 500.0 // mm/min
515 #define DEFAULT_X_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
516 #define DEFAULT_Y_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
517 #define DEFAULT_Z_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
518 #define DEFAULT_X_MAX_TRAVEL 500.0 // mm NOTE: Must be a positive value.
519 #define DEFAULT_Y_MAX_TRAVEL 750.0 // mm NOTE: Must be a positive value.
520 #define DEFAULT_Z_MAX_TRAVEL 80.0 // mm NOTE: Must be a positive value.
521 #define DEFAULT_SPINDLE_RPM_MAX 1000.0 // rpm
522 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
523 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
524 #define DEFAULT_STEPPING_INVERT_MASK 0
525 #define DEFAULT_DIRECTION_INVERT_MASK 0
526 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 25 // msec (0-254, 255 keeps steppers enabled)
527 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
528 #define DEFAULT_JUNCTION_DEVIATION 0.02 // mm
529 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
530 #define DEFAULT_REPORT_INCHES 0 // false
531 #define DEFAULT_INVERT_ST_ENABLE 0 // false
532 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
533 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
534 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
535 #define DEFAULT_INVERT_PROBE_PIN 0 // false
536 #define DEFAULT_LASER_MODE 0 // false
537 #define DEFAULT_HOMING_ENABLE 0 // false
538 #define DEFAULT_HOMING_DIR_MASK 0 // move positive dir
539 #define DEFAULT_HOMING_FEED_RATE 25.0 // mm/min
540 #define DEFAULT_HOMING_SEEK_RATE 500.0 // mm/min
541 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
542 #define DEFAULT_HOMING_PULLOFF 1.0 // mm
543#endif
544
545#ifdef DEFAULTS_SIMULATOR
546 // Settings only for Grbl Simulator (www.github.com/grbl/grbl-sim)
547 // Grbl generic default settings. Should work across different machines.
548 #define DEFAULT_X_STEPS_PER_MM 1000.0
549 #define DEFAULT_Y_STEPS_PER_MM 1000.0
550 #define DEFAULT_Z_STEPS_PER_MM 1000.0
551 #define DEFAULT_X_MAX_RATE 1000.0 // mm/min
552 #define DEFAULT_Y_MAX_RATE 1000.0 // mm/min
553 #define DEFAULT_Z_MAX_RATE 1000.0 // mm/min
554 #define DEFAULT_X_ACCELERATION (100.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
555 #define DEFAULT_Y_ACCELERATION (100.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
556 #define DEFAULT_Z_ACCELERATION (100.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
557 #define DEFAULT_X_MAX_TRAVEL 1000.0 // mm NOTE: Must be a positive value.
558 #define DEFAULT_Y_MAX_TRAVEL 1000.0 // mm NOTE: Must be a positive value.
559 #define DEFAULT_Z_MAX_TRAVEL 1000.0 // mm NOTE: Must be a positive value.
560 #define DEFAULT_SPINDLE_RPM_MAX 1000.0 // rpm
561 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
562 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
563 #define DEFAULT_STEPPING_INVERT_MASK 0
564 #define DEFAULT_DIRECTION_INVERT_MASK 0
565 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 25 // msec (0-254, 255 keeps steppers enabled)
566 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
567 #define DEFAULT_JUNCTION_DEVIATION 0.01 // mm
568 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
569 #define DEFAULT_REPORT_INCHES 0 // false
570 #define DEFAULT_INVERT_ST_ENABLE 0 // false
571 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
572 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
573 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
574 #define DEFAULT_INVERT_PROBE_PIN 0 // false
575 #define DEFAULT_LASER_MODE 0 // false
576 #define DEFAULT_HOMING_ENABLE 0 // false
577 #define DEFAULT_HOMING_DIR_MASK 0 // move positive dir
578 #define DEFAULT_HOMING_FEED_RATE 25.0 // mm/min
579 #define DEFAULT_HOMING_SEEK_RATE 500.0 // mm/min
580 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
581 #define DEFAULT_HOMING_PULLOFF 1.0 // mm
582#endif
583
Luigi Santivetti3c8142e2019-11-17 22:33:19 +0000584#ifdef DEFAULTS_NEJE20W
585 // Grbl default settings for NEJE Master 20W laser cutter/engraver.
586 // http://wiki.nejetool.com/doku.php?id=nejelaser_master
587 #define DEFAULT_X_STEPS_PER_MM 250.0
588 #define DEFAULT_Y_STEPS_PER_MM 250.0
589 #define DEFAULT_Z_STEPS_PER_MM 250.0
590 #define DEFAULT_X_MAX_RATE 500.0 // mm/min
591 #define DEFAULT_Y_MAX_RATE 500.0 // mm/min
592 #define DEFAULT_Z_MAX_RATE 500.0 // mm/min
593 #define DEFAULT_X_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
594 #define DEFAULT_Y_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
595 #define DEFAULT_Z_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
596 #define DEFAULT_X_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
597 #define DEFAULT_Y_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
598 #define DEFAULT_Z_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
599 #define DEFAULT_SPINDLE_RPM_MAX 1000.0 // rpm
600 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
601 #define DEFAULT_STEP_PULSE_MICROSECONDS 10
602 #define DEFAULT_STEPPING_INVERT_MASK 0
603 #define DEFAULT_DIRECTION_INVERT_MASK 0
604 #define DEFAULT_STEPPER_IDLE_LOCK_TIME 25 // msec (0-254, 255 keeps steppers enabled)
605 #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
606 #define DEFAULT_JUNCTION_DEVIATION 0.01 // mm
607 #define DEFAULT_ARC_TOLERANCE 0.002 // mm
608 #define DEFAULT_REPORT_INCHES 0 // false
609 #define DEFAULT_INVERT_ST_ENABLE 0 // false
610 #define DEFAULT_INVERT_LIMIT_PINS 0 // false
611 #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
612 #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
613 #define DEFAULT_INVERT_PROBE_PIN 0 // false
614 #define DEFAULT_LASER_MODE 0 // false
615 #define DEFAULT_HOMING_ENABLE 0 // false
616 #define DEFAULT_HOMING_DIR_MASK 0 // move positive dir
617 #define DEFAULT_HOMING_FEED_RATE 25.0 // mm/min
618 #define DEFAULT_HOMING_SEEK_RATE 500.0 // mm/min
619 #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
620 #define DEFAULT_HOMING_PULLOFF 1.0 // mm
621 // Check adc.c and adc.h for more info
622 #ifdef USE_ADC
623 #define DEFAULT_ENABLE_ADC 1 // Setting bit for marking ADC as on
624 #define DEFAULT_ADC_MODE ADC_CONFIG_MODE_SW_TRIGGER // Software triggering next conversion
625 #define DEFAULT_ADC_REFERENCE ADC_CONFIG_REFERENCE_INTERNAL_1VREF // AVcc reference input voltage
626 #define DEFAULT_ADC_READINGS 4 // Times each channel is to be read
627 #define DEFAULT_ADC_RESOLUTION 8 // Integer number of bits
628 #define DEFAULT_ADC_CLOCK 125 // Integer KHz value
629 #define DEFAULT_ADC_CHANNELS_MASK ADC_CONFIG_ENABLED_CHANNELS
630 #ifdef ADC_CONFIG_SYSTEM_ALARM
631 #define DEFAULT_ADC_RANGE_CHANNEL_8_MIN ADC_CONFIG_RANGE_CHANNEL_8_MIN // Celsius degrees
632 #define DEFAULT_ADC_RANGE_CHANNEL_8_MAX ADC_CONFIG_RANGE_CHANNEL_8_MAX // Celsius degrees
633 #endif
634 #endif
635#endif
636
Luigi Santivetti69972f92019-11-12 22:55:40 +0000637#endif