|
102 | 102 | #define N_DECIMAL_RATEVALUE_INCH 1 // Rate or velocity value in in/min |
103 | 103 | #define N_DECIMAL_RATEVALUE_MM 0 // Rate or velocity value in mm/min |
104 | 104 | #define N_DECIMAL_SETTINGVALUE 3 // Decimals for floating point setting values |
| 105 | +#define N_DECIMAL_RPMVALUE 0 // RPM value in rotations per min. |
105 | 106 |
|
106 | 107 | // If your machine has two limits switches wired in parallel to one axis, you will need to enable |
107 | 108 | // this feature. Since the two switches are sharing a single pin, there is no way for Grbl to tell |
|
138 | 139 |
|
139 | 140 | // After the safety door switch has been toggled and restored, this setting sets the power-up delay |
140 | 141 | // between restoring the spindle and coolant and resuming the cycle. |
141 | | -// NOTE: Delay value is defined in milliseconds from zero to 65,535. |
142 | | -#define SAFETY_DOOR_SPINDLE_DELAY 4000 |
143 | | -#define SAFETY_DOOR_COOLANT_DELAY 1000 |
| 142 | +#define SAFETY_DOOR_SPINDLE_DELAY 4.0 // Float (seconds) |
| 143 | +#define SAFETY_DOOR_COOLANT_DELAY 1.0 // Float (seconds) |
144 | 144 |
|
145 | 145 | // Enable CoreXY kinematics. Use ONLY with CoreXY machines. |
146 | 146 | // IMPORTANT: If homing is enabled, you must reconfigure the homing cycle #defines above to |
|
238 | 238 | // The hardware PWM output on pin D11 is required for variable spindle output voltages. |
239 | 239 | #define VARIABLE_SPINDLE // Default enabled. Comment to disable. |
240 | 240 |
|
241 | | -// Used by the variable spindle output only. These parameters set the maximum and minimum spindle speed |
242 | | -// "S" g-code values to correspond to the maximum and minimum pin voltages. There are 256 discrete and |
243 | | -// equally divided voltage bins between the maximum and minimum spindle speeds. So for a 5V pin, 1000 |
244 | | -// max rpm, and 250 min rpm, the spindle output voltage would be set for the following "S" commands: |
245 | | -// "S1000" @ 5V, "S250" @ 0.02V, and "S625" @ 2.5V (mid-range). The pin outputs 0V when disabled. |
246 | | -#define SPINDLE_MAX_RPM 1000.0 // Max spindle RPM. This value is equal to 100% duty cycle on the PWM. |
247 | | -#define SPINDLE_MIN_RPM 0.0 // Min spindle RPM. This value is equal to (1/256) duty cycle on the PWM. |
248 | 241 |
|
249 | 242 | // Used by variable spindle output only. This forces the PWM output to a minimum duty cycle when enabled. |
250 | | -// When disabled, the PWM pin will still read 0V. Most users will not need this option, but it may be |
251 | | -// useful in certain scenarios. This setting does not update the minimum spindle RPM calculations. Any |
252 | | -// spindle RPM output lower than this value will be set to this value. |
253 | | -// #define MINIMUM_SPINDLE_PWM 5 // Default disabled. Uncomment to enable. Integer (0-255) |
| 243 | +// The PWM pin will still read 0V when the spindle is disabled. Most users will not need this option, but |
| 244 | +// it may be useful in certain scenarios. This minimum PWM settings coincides with the spindle rpm minimum |
| 245 | +// setting, like rpm max to max PWM. So the variable spindle pin will not output the voltage range between |
| 246 | +// 0V for disabled and the voltage set by the minimum PWM for minimum rpm. |
| 247 | +// NOTE: Compute duty cycle at the minimum PWM by this equation: (% duty cycle)=(SPINDLE_MINIMUM_PWM/256)*100 |
| 248 | +// #define SPINDLE_MINIMUM_PWM 5 // Default disabled. Uncomment to enable. Integer (0-255) |
254 | 249 |
|
255 | 250 | // By default on a 328p(Uno), Grbl combines the variable spindle PWM and the enable into one pin to help |
256 | 251 | // preserve I/O pins. For certain setups, these may need to be separate pins. This configure option uses |
|
383 | 378 | // NOTE: This option has no effect if SOFTWARE_DEBOUNCE is enabled. |
384 | 379 | // #define HARD_LIMIT_FORCE_STATE_CHECK // Default disabled. Uncomment to enable. |
385 | 380 |
|
| 381 | +// Adjusts homing cycle search and locate scalars. These are the multipliers used by Grbl's |
| 382 | +// homing cycle to ensure the limit switches are engaged and cleared through each phase of |
| 383 | +// the cycle. The search phase uses the axes max-travel setting times the SEARCH_SCALAR to |
| 384 | +// determine distance to look for the limit switch. Once found, the locate phase begins and |
| 385 | +// uses the homing pull-off distance setting times the LOCATE_SCALAR to pull-off and re-engage |
| 386 | +// the limit switch. |
| 387 | +// NOTE: Both of these values must be greater than 1.0 to ensure proper function. |
| 388 | +// #define HOMING_AXIS_SEARCH_SCALAR 1.5 // Uncomment to override defaults in limits.c. |
| 389 | +// #define HOMING_AXIS_LOCATE_SCALAR 10.0 // Uncomment to override defaults in limits.c. |
| 390 | + |
| 391 | + |
| 392 | +// Enables and configures parking motion methods upon a safety door state. Primarily for OEMs |
| 393 | +// that desire this feature for their integrated machines. At the moment, Grbl assumes that |
| 394 | +// the parking motion only involves one axis, although the parking implementation was written |
| 395 | +// to be easily refactored for any number of motions on different axes by altering the parking |
| 396 | +// source code. At this time, Grbl only supports parking one axis (typically the Z-axis) that |
| 397 | +// moves in the positive direction upon retracting and negative direction upon restoring position. |
| 398 | +// The motion executes with a slow pull-out retraction motion, power-down, and a fast park. |
| 399 | +// Restoring to the resume position follows these set motions in reverse: fast restore to |
| 400 | +// pull-out position, power-up with a time-out, and plunge back to the original position at the |
| 401 | +// slower pull-out rate. |
| 402 | +// NOTE: Still a work-in-progress. Machine coordinates must be in all negative space and |
| 403 | +// does not work with HOMING_FORCE_SET_ORIGIN enabled. Parking motion also moves only in |
| 404 | +// positive direction. |
| 405 | +// #define PARKING_ENABLE // Default disabled. Uncomment to enable |
| 406 | + |
| 407 | +// Configure options for the parking motion, if enabled. |
| 408 | +#define PARKING_AXIS Z_AXIS // Define which axis that performs the parking motion |
| 409 | +#define PARKING_TARGET -5.0 // Parking axis target. In mm, as machine coordinate [-max_travel,0]. |
| 410 | +#define PARKING_RATE -1.0 // Parking fast rate after pull-out. In mm/min or (-1.0) for seek rate. |
| 411 | +#define PARKING_PULLOUT_RATE 250.0 // Pull-out/plunge slow feed rate in mm/min. |
| 412 | +#define PARKING_PULLOUT_INCREMENT 5.0 // Spindle pull-out and plunge distance in mm. Incremental distance. |
| 413 | + // Must be positive value or equal to zero. |
| 414 | + |
386 | 415 |
|
387 | 416 | // --------------------------------------------------------------------------------------- |
388 | 417 | // COMPILE-TIME ERROR CHECKING OF DEFINE VALUES: |
|
399 | 428 | #error "USE_SPINDLE_DIR_AS_ENABLE_PIN may only be used with a 328p processor" |
400 | 429 | #endif |
401 | 430 |
|
| 431 | +#if defined(PARKING_ENABLE) |
| 432 | + #if defined(HOMING_FORCE_SET_ORIGIN) |
| 433 | + #error "HOMING_FORCE_SET_ORIGIN is not supported with PARKING_ENABLE at this time." |
| 434 | + #endif |
| 435 | +#endif |
| 436 | + |
402 | 437 | // --------------------------------------------------------------------------------------- |
403 | 438 |
|
404 | 439 |
|
|
0 commit comments