|
129 | 129 | // define to force Grbl to always set the machine origin at the homed location despite switch orientation. |
130 | 130 | // #define HOMING_FORCE_SET_ORIGIN // Uncomment to enable. |
131 | 131 |
|
| 132 | +// Uncomment this define to force Grbl to always set the machine origin at bottom left. |
| 133 | +#define HOMING_FORCE_POSITIVE_SPACE // Uncomment to enable. |
| 134 | + |
132 | 135 | // Number of blocks Grbl executes upon startup. These blocks are stored in EEPROM, where the size |
133 | 136 | // and addresses are defined in settings.h. With the current settings, up to 2 startup blocks may |
134 | 137 | // be stored and executed in order. These startup blocks would typically be used to set the g-code |
|
359 | 362 | // pwm = scaled value. settings.rpm_min scales to SPINDLE_PWM_MIN_VALUE. settings.rpm_max |
360 | 363 | // scales to SPINDLE_PWM_MAX_VALUE. |
361 | 364 |
|
362 | | -//#define SPINDLE_PWM_PERIOD (SystemCoreClock / 40000) // SystemCoreClock / frequency |
363 | | -#define SPINDLE_PWM_OFF_VALUE 0.0 // SPINDLE_PWM_PERIOD * fraction |
364 | | -//#define SPINDLE_PWM_MIN_VALUE (SPINDLE_PWM_PERIOD * 0.0) // SPINDLE_PWM_PERIOD * fraction |
365 | | -//#define SPINDLE_PWM_MAX_VALUE (SPINDLE_PWM_PERIOD * 1.0) // SPINDLE_PWM_PERIOD * fraction |
366 | | - |
367 | 365 | // Used by variable spindle output only. This forces the PWM output to a minimum duty cycle when enabled. |
368 | 366 | // The PWM pin will still read 0V when the spindle is disabled. Most users will not need this option, but |
369 | 367 | // it may be useful in certain scenarios. This minimum PWM settings coincides with the spindle rpm minimum |
|
717 | 715 | #define CONTROL_INVERT_MASK CONTROL_MASK // May be re-defined to only invert certain control pins. |
718 | 716 |
|
719 | 717 | // Define probe switch input pin. |
720 | | -#define PROBE_DDR NotUsed |
721 | | -#define PROBE_PIN NotUsed |
722 | | -#define PROBE_PORT NotUsed |
723 | | -#define PROBE_BIT 5 // Uno Analog Pin 5 |
| 718 | +#define PROBE_DDR NotUsed // LPC_GPIO1->FIODIR |
| 719 | +#define PROBE_PIN NotUsed // LPC_GPIO1->FIOPIN |
| 720 | +#define PROBE_PORT NotUsed // LPC_GPIO1->FIOPIN |
| 721 | +#define PROBE_BIT 5 |
724 | 722 | #define PROBE_MASK (1<<PROBE_BIT) |
725 | 723 |
|
726 | 724 | // The LPC17xx has 6 PWM channels. Each channel has 2 pins. It can drive both pins simultaneously to the same value. |
|
744 | 742 | #define DEFAULT_Z_STEPS_PER_MM 160.0 |
745 | 743 | #define DEFAULT_X_MAX_RATE 24000 // mm/min |
746 | 744 | #define DEFAULT_Y_MAX_RATE 24000 // mm/min |
747 | | -#define DEFAULT_Z_MAX_RATE 24000 // mm/min |
| 745 | +#define DEFAULT_Z_MAX_RATE 500.0 // mm/min |
748 | 746 | #define DEFAULT_X_ACCELERATION (2500.0*60*60) // 5000*60*60 mm/min^2 = 5000 mm/sec^2 |
749 | 747 | #define DEFAULT_Y_ACCELERATION (2500.0*60*60) // 5000*60*60 mm/min^2 = 5000 mm/sec^2 |
750 | 748 | #define DEFAULT_Z_ACCELERATION (2500.0*60*60) // 5000*60*60 mm/min^2 = 5000 mm/sec^2 |
751 | | -#define DEFAULT_X_CURRENT 0.0 // amps |
752 | | -#define DEFAULT_Y_CURRENT 0.0 // amps |
| 749 | +#define DEFAULT_X_CURRENT 0.4 // amps |
| 750 | +#define DEFAULT_Y_CURRENT 0.6 // amps |
753 | 751 | #define DEFAULT_Z_CURRENT 0.0 // amps |
754 | 752 | #define DEFAULT_A_CURRENT 0.0 // amps |
755 | 753 | #define DEFAULT_X_MAX_TRAVEL 300.0 // mm |
756 | 754 | #define DEFAULT_Y_MAX_TRAVEL 200.0 // mm |
757 | 755 | #define DEFAULT_Z_MAX_TRAVEL 50.0 // mm |
758 | | -#define DEFAULT_SPINDLE_PWM_FREQ 5000 // Hz |
| 756 | +#define DEFAULT_SPINDLE_PWM_FREQ 5000 // Hz |
| 757 | +#define DEFAULT_SPINDLE_PWM_OFF_VALUE 0.0 // Percent |
| 758 | +#define DEFAULT_SPINDLE_PWM_MIN_VALUE 0.0 // Percent |
| 759 | +#define DEFAULT_SPINDLE_PWM_MAX_VALUE 100.0 // Percent |
759 | 760 | #define DEFAULT_SPINDLE_RPM_MAX 1000.0 // rpm |
760 | 761 | #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm |
761 | 762 | #define DEFAULT_STEP_PULSE_MICROSECONDS 10 |
|
768 | 769 | #define DEFAULT_REPORT_INCHES 0 // false |
769 | 770 | #define DEFAULT_INVERT_ST_ENABLE 0 // false |
770 | 771 | #define DEFAULT_INVERT_LIMIT_PINS 1 // false |
771 | | -#define DEFAULT_SOFT_LIMIT_ENABLE 0 // false |
| 772 | +#define DEFAULT_SOFT_LIMIT_ENABLE 1 // false |
772 | 773 | #define DEFAULT_HARD_LIMIT_ENABLE 0 // false |
773 | 774 | #define DEFAULT_INVERT_PROBE_PIN 0 // false |
774 | 775 | #define DEFAULT_LASER_MODE 1 // true |
775 | | -#define DEFAULT_HOMING_ENABLE 0 // false |
776 | | -#define DEFAULT_HOMING_DIR_MASK 0 // move positive dir |
| 776 | +#define DEFAULT_HOMING_ENABLE 1 // false |
| 777 | +#define DEFAULT_HOMING_DIR_MASK 1 // move positive dir |
777 | 778 | #define DEFAULT_HOMING_FEED_RATE 50.0 // mm/min |
778 | 779 | #define DEFAULT_HOMING_SEEK_RATE 6000.0 // mm/min |
779 | 780 | #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k) |
780 | | -#define DEFAULT_HOMING_PULLOFF 1.0 // mm |
| 781 | +#define DEFAULT_HOMING_PULLOFF 2.0 // mm |
781 | 782 |
|
782 | 783 | #endif |
0 commit comments