2011-02-05 00:55:37 +01:00
|
|
|
/*
|
|
|
|
config.h - compile time configuration
|
2015-02-16 01:36:08 +01:00
|
|
|
Part of Grbl
|
2011-02-05 00:55:37 +01:00
|
|
|
|
2015-02-16 01:36:08 +01:00
|
|
|
Copyright (c) 2012-2015 Sungeun K. Jeon
|
|
|
|
Copyright (c) 2009-2011 Simen Svale Skogsrud
|
2011-02-05 00:55:37 +01:00
|
|
|
|
|
|
|
Grbl is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Grbl is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Grbl. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2014-08-07 13:58:04 +02:00
|
|
|
|
2013-10-30 02:10:39 +01:00
|
|
|
// This file contains compile-time configurations for Grbl's internal system. For the most part,
|
|
|
|
// users will not need to directly modify these, but they are here for specific needs, i.e.
|
|
|
|
// performance tuning or adjusting to non-typical machines.
|
2011-02-05 00:55:37 +01:00
|
|
|
|
2011-09-24 15:46:41 +02:00
|
|
|
// IMPORTANT: Any changes here requires a full re-compiling of the source code to propagate them.
|
|
|
|
|
2013-10-30 02:10:39 +01:00
|
|
|
#ifndef config_h
|
|
|
|
#define config_h
|
2015-03-04 14:50:26 +01:00
|
|
|
#include "grbl.h" // For Arduino IDE compatibility.
|
Settings refactoring. Bug fixes. Misc new features.
This is likely the last major change to the v0.9 code base before push
to master. Only two minor things remain on the agenda (CoreXY support,
force clear EEPROM, and an extremely low federate bug).
- NEW! Grbl is now compile-able and may be flashed directly through the
Arduino IDE. Only minor changes were required for this compatibility.
See the Wiki to learn how to do it.
- New status reporting mask to turn on and off what Grbl sends back.
This includes machine coordinates, work coordinates, serial RX buffer
usage, and planner buffer usage. Expandable to more information on user
request, but that’s it for now.
- Settings have been completely renumbered to allow for future new
settings to be installed without having to constantly reshuffle and
renumber all of the settings every time.
- All settings masks have been standardized to mean bit 0 = X, bit 1 =
Y, and bit 2 = Z, to reduce confusion on how they work. The invert
masks used by the internal Grbl system were updated to accommodate this
change as well.
- New invert probe pin setting, which does what it sounds like.
- Fixed a probing cycle bug, where it would freeze intermittently, and
removed some redundant code.
- Homing may now be set to the origin wherever the limit switches are.
Traditionally machine coordinates should always be in negative space,
but when limit switches on are on the opposite side, the machine
coordinate would be set to -max_travel for the axis. Now you can always
make it [0,0,0] via a compile-time option in config.h. (Soft limits
routine was updated to account for this as well.)
- Probe coordinate message immediately after a probing cycle may now
be turned off via a compile-time option in config.h. By default the
probing location is always reported.
- Reduced the N_ARC_CORRECTION default value to reflect the changes in
how circles are generated by an arc tolerance, rather than a fixed arc
segment setting.
- Increased the incoming line buffer limit from 70 to 80 characters.
Had some extra memory space to invest into this.
- Fixed a bug where tool number T was not being tracked and reported
correctly.
- Added a print free memory function for debugging purposes. Not used
otherwise.
- Realtime rate report should now work during feed holds, but it hasn’t
been tested yet.
- Updated the streaming scripts with MIT-license and added the simple
streaming to the main stream.py script to allow for settings to be sent.
- Some minor code refactoring to improve flash efficiency. Reduced the
flash by several hundred KB, which was re-invested in some of these new
features.
2014-07-26 23:01:34 +02:00
|
|
|
|
2013-10-30 02:10:39 +01:00
|
|
|
|
2012-11-19 03:52:16 +01:00
|
|
|
// Default settings. Used when resetting EEPROM. Change to desired name in defaults.h
|
2014-05-26 00:05:28 +02:00
|
|
|
#define DEFAULTS_GENERIC
|
2012-11-19 03:52:16 +01:00
|
|
|
|
|
|
|
// Serial baud rate
|
2013-10-30 02:10:39 +01:00
|
|
|
#define BAUD_RATE 115200
|
|
|
|
|
2013-12-31 02:44:46 +01:00
|
|
|
// Default cpu mappings. Grbl officially supports the Arduino Uno only. Other processor types
|
|
|
|
// may exist from user-supplied templates or directly user-defined in cpu_map.h
|
2015-01-15 06:14:52 +01:00
|
|
|
#define CPU_MAP_ATMEGA328P // Arduino Uno CPU
|
2012-11-04 18:48:57 +01:00
|
|
|
|
2015-01-15 06:14:52 +01:00
|
|
|
// Define realtime command special characters. These characters are 'picked-off' directly from the
|
2011-12-09 02:47:48 +01:00
|
|
|
// serial read data stream and are not passed to the grbl line execution parser. Select characters
|
|
|
|
// that do not and must not exist in the streamed g-code program. ASCII control characters may be
|
2012-01-06 18:10:41 +01:00
|
|
|
// used, if they are available per user setup. Also, extended ASCII codes (>127), which are never in
|
|
|
|
// g-code programs, maybe selected for interface programs.
|
2012-11-16 05:53:11 +01:00
|
|
|
// NOTE: If changed, manually update help message in report.c.
|
2011-12-09 02:47:48 +01:00
|
|
|
#define CMD_STATUS_REPORT '?'
|
|
|
|
#define CMD_FEED_HOLD '!'
|
|
|
|
#define CMD_CYCLE_START '~'
|
2013-12-30 04:34:51 +01:00
|
|
|
#define CMD_RESET 0x18 // ctrl-x.
|
2015-02-14 02:39:37 +01:00
|
|
|
#define CMD_SAFETY_DOOR '@'
|
2011-12-09 02:47:48 +01:00
|
|
|
|
2012-11-15 01:36:29 +01:00
|
|
|
// If homing is enabled, homing init lock sets Grbl into an alarm state upon power up. This forces
|
|
|
|
// the user to perform the homing cycle (or override the locks) before doing anything else. This is
|
|
|
|
// mainly a safety feature to remind the user to home, since position is unknown to Grbl.
|
|
|
|
#define HOMING_INIT_LOCK // Comment to disable
|
|
|
|
|
2014-02-09 18:46:34 +01:00
|
|
|
// Define the homing cycle patterns with bitmasks. The homing cycle first performs a search mode
|
|
|
|
// to quickly engage the limit switches, followed by a slower locate mode, and finished by a short
|
|
|
|
// pull-off motion to disengage the limit switches. The following HOMING_CYCLE_x defines are executed
|
|
|
|
// in order starting with suffix 0 and completes the homing routine for the specified-axes only. If
|
|
|
|
// an axis is omitted from the defines, it will not home, nor will the system update its position.
|
|
|
|
// Meaning that this allows for users with non-standard cartesian machines, such as a lathe (x then z,
|
|
|
|
// with no y), to configure the homing cycle behavior to their needs.
|
|
|
|
// NOTE: The homing cycle is designed to allow sharing of limit pins, if the axes are not in the same
|
|
|
|
// cycle, but this requires some pin settings changes in cpu_map.h file. For example, the default homing
|
|
|
|
// cycle can share the Z limit pin with either X or Y limit pins, since they are on different cycles.
|
|
|
|
// By sharing a pin, this frees up a precious IO pin for other purposes. In theory, all axes limit pins
|
|
|
|
// may be reduced to one pin, if all axes are homed with seperate cycles, or vice versa, all three axes
|
|
|
|
// on separate pin, but homed in one cycle. Also, it should be noted that the function of hard limits
|
|
|
|
// will not be affected by pin sharing.
|
|
|
|
// NOTE: Defaults are set for a traditional 3-axis CNC machine. Z-axis first to clear, followed by X & Y.
|
|
|
|
#define HOMING_CYCLE_0 (1<<Z_AXIS) // REQUIRED: First move Z to clear workspace.
|
|
|
|
#define HOMING_CYCLE_1 ((1<<X_AXIS)|(1<<Y_AXIS)) // OPTIONAL: Then move X,Y at the same time.
|
|
|
|
// #define HOMING_CYCLE_2 // OPTIONAL: Uncomment and add axes mask to enable
|
2012-11-19 03:52:16 +01:00
|
|
|
|
2012-10-10 06:01:10 +02:00
|
|
|
// Number of homing cycles performed after when the machine initially jogs to limit switches.
|
|
|
|
// This help in preventing overshoot and should improve repeatability. This value should be one or
|
|
|
|
// greater.
|
Critical M0/2/30 fix. Homing updates.
- Critical fix for M0 program pause. Due to its recent change, it would
cause Grbl to suspend but wouldn’t notify the user of why Grbl was not
doing anything. The state would show IDLE and a cycle start would
resume it. Grbl now enters a HOLD state to better indicate the state
change.
- Critical fix for M2 and M30 program end. As with M0, the state
previously would show IDLE while suspended. Grbl now does not suspend
upon program end and leaves job control to the GUI. Grbl simply reports
a `[Pgm End]` as a feedback message and resets certain g-code modes.
- M2/30 g-code reseting fix. Previously Grbl would soft-reset after an
M2/30, but this was not complaint to the (linuxcnc) g-code standard. It
simply resets [G1,G17,G90,G94,G40,G54,M5,M9,M48] and keeps all other
modes the same.
- M0/M2/M30 check-mode fix. It now does not suspend the machine during
check-mode.
- Minor bug fix related to commands similar to G90.1, but not G90.1,
not reporting an unsupported command.
- Homing cycle refactoring. To help reduce the chance of users
misunderstanding their limit switch wiring, Grbl only moves a short
distance for the locate cycles only. In addition, the homing cycle
pulls-off the limit switch by the pull-off distance to re-engage and
locate home. This should improve its accuracy.
- HOMING_FORCE_ORIGIN now sets the origin to the pull-off location,
rather than where the limit switch was triggered.
- Updated default junction deviation to 0.01mm. Recent tests showed
that this improves Grbl’s cornering behavior a bit.
- Added the ShapeOko3 defaults.
- Added new feedback message `[Pgm End]` for M2/30 notification.
- Limit pin reporting is now a $10 status report option. Requested by
OEMs to help simplify support troubleshooting.
2015-05-17 21:25:36 +02:00
|
|
|
#define N_HOMING_LOCATE_CYCLE 1 // Integer (1-128)
|
2012-10-10 06:01:10 +02:00
|
|
|
|
Settings refactoring. Bug fixes. Misc new features.
This is likely the last major change to the v0.9 code base before push
to master. Only two minor things remain on the agenda (CoreXY support,
force clear EEPROM, and an extremely low federate bug).
- NEW! Grbl is now compile-able and may be flashed directly through the
Arduino IDE. Only minor changes were required for this compatibility.
See the Wiki to learn how to do it.
- New status reporting mask to turn on and off what Grbl sends back.
This includes machine coordinates, work coordinates, serial RX buffer
usage, and planner buffer usage. Expandable to more information on user
request, but that’s it for now.
- Settings have been completely renumbered to allow for future new
settings to be installed without having to constantly reshuffle and
renumber all of the settings every time.
- All settings masks have been standardized to mean bit 0 = X, bit 1 =
Y, and bit 2 = Z, to reduce confusion on how they work. The invert
masks used by the internal Grbl system were updated to accommodate this
change as well.
- New invert probe pin setting, which does what it sounds like.
- Fixed a probing cycle bug, where it would freeze intermittently, and
removed some redundant code.
- Homing may now be set to the origin wherever the limit switches are.
Traditionally machine coordinates should always be in negative space,
but when limit switches on are on the opposite side, the machine
coordinate would be set to -max_travel for the axis. Now you can always
make it [0,0,0] via a compile-time option in config.h. (Soft limits
routine was updated to account for this as well.)
- Probe coordinate message immediately after a probing cycle may now
be turned off via a compile-time option in config.h. By default the
probing location is always reported.
- Reduced the N_ARC_CORRECTION default value to reflect the changes in
how circles are generated by an arc tolerance, rather than a fixed arc
segment setting.
- Increased the incoming line buffer limit from 70 to 80 characters.
Had some extra memory space to invest into this.
- Fixed a bug where tool number T was not being tracked and reported
correctly.
- Added a print free memory function for debugging purposes. Not used
otherwise.
- Realtime rate report should now work during feed holds, but it hasn’t
been tested yet.
- Updated the streaming scripts with MIT-license and added the simple
streaming to the main stream.py script to allow for settings to be sent.
- Some minor code refactoring to improve flash efficiency. Reduced the
flash by several hundred KB, which was re-invested in some of these new
features.
2014-07-26 23:01:34 +02:00
|
|
|
// After homing, Grbl will set by default the entire machine space into negative space, as is typical
|
|
|
|
// for professional CNC machines, regardless of where the limit switches are located. Uncomment this
|
|
|
|
// define to force Grbl to always set the machine origin at the homed location despite switch orientation.
|
|
|
|
// #define HOMING_FORCE_SET_ORIGIN // Uncomment to enable.
|
|
|
|
|
New startup script setting. New dry run, check gcode switches. New system state variable. Lots of reorganizing.
(All v0.8 features installed. Still likely buggy, but now thourough
testing will need to start to squash them all. As soon as we're done,
this will be pushed to master and v0.9 development will be started.
Please report ANY issues to us so we can get this rolled out ASAP.)
- User startup script! A user can now save one (up to 5 as compile-time
option) block of g-code in EEPROM memory. This will be run everytime
Grbl resets. Mainly to be used as a way to set your preferences, like
G21, G54, etc.
- New dry run and check g-code switches. Dry run moves ALL motions at
rapids rate ignoring spindle, coolant, and dwell commands. For rapid
physical proofing of your code. The check g-code switch ignores all
motion and provides the user a way to check if there are any errors in
their program that Grbl may not like.
- Program restart! (sort of). Program restart is typically an advanced
feature that allows users to restart a program mid-stream. The check
g-code switch can perform this feature by enabling the switch at the
start of the program, and disabling it at the desired point with some
minimal changes.
- New system state variable. This state variable tracks all of the
different state processes that Grbl performs, i.e. cycle start, feed
hold, homing, etc. This is mainly for making managing of these task
easier and more clear.
- Position lost state variable. Only when homing is enabled, Grbl will
refuse to move until homing is completed and position is known. This is
mainly for safety. Otherwise, it will let users fend for themselves.
- Moved the default settings defines into config.h. The plan is to
eventually create a set of config.h's for particular as-built machines
to help users from doing it themselves.
- Moved around misc defines into .h files. And lots of other little
things.
2012-11-03 18:32:23 +01:00
|
|
|
// Number of blocks Grbl executes upon startup. These blocks are stored in EEPROM, where the size
|
Probing cycle and view build info bug fixes.
- Probing cycle would drop into a QUEUED state, if multiple G38.2 are
sent. It would not honor the auto cycle start flags. To fix, the auto
cycle start state is saved at the beginning of the probing cycle and
restored at the end, since the feed hold it uses to stop a triggered
probe will disable the auto start flag. For now it’s a patch, rather
than a permanent fix.
- protocol_buffer_synchronize() also has a failure case. Auto cycle
start does not get executed when the system is waiting in here, so if
it’s in a QUEUED state already, it won’t resume. Patched here, but not
fully resolved.
- Fixed a problem with the “view build info” command. The EEPROM write
would do weird things and corrupt the EEPROM. Not sure exactly what
caused it, but it’s likely a compiler problem with an improperly
defined EEPROM address. It didn’t have enough room to store a full
string. To fix, the build info EEPROM range was increased and the max
number of STARTUP_BLOCKS was reduced to 2 from 3.
- Lastly, when a $I view build info is used for the first time, it
would normally show an EEPROM read error, since it wasn’t cleared or
wasn’t therein the first place. It will now not show that error. A
patch rather than a permanent fix again.
2014-08-04 05:10:27 +02:00
|
|
|
// and addresses are defined in settings.h. With the current settings, up to 2 startup blocks may
|
New startup script setting. New dry run, check gcode switches. New system state variable. Lots of reorganizing.
(All v0.8 features installed. Still likely buggy, but now thourough
testing will need to start to squash them all. As soon as we're done,
this will be pushed to master and v0.9 development will be started.
Please report ANY issues to us so we can get this rolled out ASAP.)
- User startup script! A user can now save one (up to 5 as compile-time
option) block of g-code in EEPROM memory. This will be run everytime
Grbl resets. Mainly to be used as a way to set your preferences, like
G21, G54, etc.
- New dry run and check g-code switches. Dry run moves ALL motions at
rapids rate ignoring spindle, coolant, and dwell commands. For rapid
physical proofing of your code. The check g-code switch ignores all
motion and provides the user a way to check if there are any errors in
their program that Grbl may not like.
- Program restart! (sort of). Program restart is typically an advanced
feature that allows users to restart a program mid-stream. The check
g-code switch can perform this feature by enabling the switch at the
start of the program, and disabling it at the desired point with some
minimal changes.
- New system state variable. This state variable tracks all of the
different state processes that Grbl performs, i.e. cycle start, feed
hold, homing, etc. This is mainly for making managing of these task
easier and more clear.
- Position lost state variable. Only when homing is enabled, Grbl will
refuse to move until homing is completed and position is known. This is
mainly for safety. Otherwise, it will let users fend for themselves.
- Moved the default settings defines into config.h. The plan is to
eventually create a set of config.h's for particular as-built machines
to help users from doing it themselves.
- Moved around misc defines into .h files. And lots of other little
things.
2012-11-03 18:32:23 +01:00
|
|
|
// be stored and executed in order. These startup blocks would typically be used to set the g-code
|
|
|
|
// parser state depending on user preferences.
|
Probing cycle and view build info bug fixes.
- Probing cycle would drop into a QUEUED state, if multiple G38.2 are
sent. It would not honor the auto cycle start flags. To fix, the auto
cycle start state is saved at the beginning of the probing cycle and
restored at the end, since the feed hold it uses to stop a triggered
probe will disable the auto start flag. For now it’s a patch, rather
than a permanent fix.
- protocol_buffer_synchronize() also has a failure case. Auto cycle
start does not get executed when the system is waiting in here, so if
it’s in a QUEUED state already, it won’t resume. Patched here, but not
fully resolved.
- Fixed a problem with the “view build info” command. The EEPROM write
would do weird things and corrupt the EEPROM. Not sure exactly what
caused it, but it’s likely a compiler problem with an improperly
defined EEPROM address. It didn’t have enough room to store a full
string. To fix, the build info EEPROM range was increased and the max
number of STARTUP_BLOCKS was reduced to 2 from 3.
- Lastly, when a $I view build info is used for the first time, it
would normally show an EEPROM read error, since it wasn’t cleared or
wasn’t therein the first place. It will now not show that error. A
patch rather than a permanent fix again.
2014-08-04 05:10:27 +02:00
|
|
|
#define N_STARTUP_LINE 2 // Integer (1-2)
|
New startup script setting. New dry run, check gcode switches. New system state variable. Lots of reorganizing.
(All v0.8 features installed. Still likely buggy, but now thourough
testing will need to start to squash them all. As soon as we're done,
this will be pushed to master and v0.9 development will be started.
Please report ANY issues to us so we can get this rolled out ASAP.)
- User startup script! A user can now save one (up to 5 as compile-time
option) block of g-code in EEPROM memory. This will be run everytime
Grbl resets. Mainly to be used as a way to set your preferences, like
G21, G54, etc.
- New dry run and check g-code switches. Dry run moves ALL motions at
rapids rate ignoring spindle, coolant, and dwell commands. For rapid
physical proofing of your code. The check g-code switch ignores all
motion and provides the user a way to check if there are any errors in
their program that Grbl may not like.
- Program restart! (sort of). Program restart is typically an advanced
feature that allows users to restart a program mid-stream. The check
g-code switch can perform this feature by enabling the switch at the
start of the program, and disabling it at the desired point with some
minimal changes.
- New system state variable. This state variable tracks all of the
different state processes that Grbl performs, i.e. cycle start, feed
hold, homing, etc. This is mainly for making managing of these task
easier and more clear.
- Position lost state variable. Only when homing is enabled, Grbl will
refuse to move until homing is completed and position is known. This is
mainly for safety. Otherwise, it will let users fend for themselves.
- Moved the default settings defines into config.h. The plan is to
eventually create a set of config.h's for particular as-built machines
to help users from doing it themselves.
- Moved around misc defines into .h files. And lots of other little
things.
2012-11-03 18:32:23 +01:00
|
|
|
|
2014-07-05 00:08:15 +02:00
|
|
|
// Number of floating decimal points printed by Grbl for certain value types. These settings are
|
2014-07-06 23:20:20 +02:00
|
|
|
// determined by realistic and commonly observed values in CNC machines. For example, position
|
|
|
|
// values cannot be less than 0.001mm or 0.0001in, because machines can not be physically more
|
|
|
|
// precise this. So, there is likely no need to change these, but you can if you need to here.
|
2014-07-05 00:08:15 +02:00
|
|
|
// NOTE: Must be an integer value from 0 to ~4. More than 4 may exhibit round-off errors.
|
|
|
|
#define N_DECIMAL_COORDVALUE_INCH 4 // Coordinate or position value in inches
|
|
|
|
#define N_DECIMAL_COORDVALUE_MM 3 // Coordinate or position value in mm
|
|
|
|
#define N_DECIMAL_RATEVALUE_INCH 1 // Rate or velocity value in in/min
|
|
|
|
#define N_DECIMAL_RATEVALUE_MM 0 // Rate or velocity value in mm/min
|
|
|
|
#define N_DECIMAL_SETTINGVALUE 3 // Decimals for floating point setting values
|
v1.0 Beta Release.
- Tons of new stuff in this release, which is fairly stable and well
tested. However, much more is coming soon!
- Real-time parking motion with safety door. When this compile option
is enabled, an opened safety door will cause Grbl to automatically feed
hold, retract, de-energize the spindle/coolant, and parks near Z max.
After the door is closed and resume is commanded, this reverses and the
program continues as if nothing happened. This is also highly
configurable. See config.h for details.
- New spindle max and min rpm ‘$’ settings! This has been requested
often. Grbl will output 5V when commanded to turn on the spindle at its
max rpm, and 0.02V with min rpm. The voltage and the rpm range are
linear to each other. This should help users tweak their settings to
get close to true rpm’s.
- If the new max rpm ‘$’ setting is set = 0 or less than min rpm, the
spindle speed PWM pin will act like a regular on/off spindle enable
pin. On pin D11.
- BEWARE: Your old EEPROM settings will be wiped! The new spindle rpm
settings require a new settings version, so Grbl will automatically
wipe and restore the EEPROM with the new defaults.
- Control pin can now be inverted individually with a
CONTROL_INVERT_MASK in the cpu_map header file. Not typical for users
to need this, but handy to have.
- Fixed bug when Grbl receive too many characters in a line and
overflows. Previously it would respond with an error per overflow
character and another acknowledge upon an EOL character. This broke the
streaming protocol. Now fixed to only respond with an error after an
EOL character.
- Fixed a bug with the safety door during an ALARM mode. You now can’t
home or unlock the axes until the safety door has been closed. This is
for safety reasons (obviously.)
- Tweaked some the Mega2560 cpu_map settings . Increased segment buffer
size and fixed the spindle PWM settings to output at a higher PWM
frequency.
- Generalized the delay function used by G4 delay for use by parking
motion. Allows non-blocking status reports and real-time control during
re-energizing of the spindle and coolant.
- Added spindle rpm max and min defaults to default.h files.
- Added a new print float for rpm values.
2015-08-28 05:37:19 +02:00
|
|
|
#define N_DECIMAL_RPMVALUE 0 // RPM value in rotations per min.
|
2014-07-05 00:08:15 +02:00
|
|
|
|
2015-01-15 06:14:52 +01:00
|
|
|
// If your machine has two limits switches wired in parallel to one axis, you will need to enable
|
|
|
|
// this feature. Since the two switches are sharing a single pin, there is no way for Grbl to tell
|
|
|
|
// which one is enabled. This option only effects homing, where if a limit is engaged, Grbl will
|
|
|
|
// alarm out and force the user to manually disengage the limit switch. Otherwise, if you have one
|
2015-02-24 02:45:26 +01:00
|
|
|
// limit switch for each axis, don't enable this option. By keeping it disabled, you can perform a
|
|
|
|
// homing cycle while on the limit switch and not have to move the machine off of it.
|
2015-01-15 06:14:52 +01:00
|
|
|
// #define LIMITS_TWO_SWITCHES_ON_AXES
|
|
|
|
|
2014-07-05 00:08:15 +02:00
|
|
|
// Allows GRBL to track and report gcode line numbers. Enabling this means that the planning buffer
|
2014-02-19 15:48:09 +01:00
|
|
|
// goes from 18 or 16 to make room for the additional line number data in the plan_block_t struct
|
2014-02-26 20:10:07 +01:00
|
|
|
// #define USE_LINE_NUMBERS // Disabled by default. Uncomment to enable.
|
2014-02-19 15:48:09 +01:00
|
|
|
|
2014-07-05 00:08:15 +02:00
|
|
|
// Allows GRBL to report the real-time feed rate. Enabling this means that GRBL will be reporting more
|
|
|
|
// data with each status update.
|
|
|
|
// NOTE: This is experimental and doesn't quite work 100%. Maybe fixed or refactored later.
|
|
|
|
// #define REPORT_REALTIME_RATE // Disabled by default. Uncomment to enable.
|
Settings refactoring. Bug fixes. Misc new features.
This is likely the last major change to the v0.9 code base before push
to master. Only two minor things remain on the agenda (CoreXY support,
force clear EEPROM, and an extremely low federate bug).
- NEW! Grbl is now compile-able and may be flashed directly through the
Arduino IDE. Only minor changes were required for this compatibility.
See the Wiki to learn how to do it.
- New status reporting mask to turn on and off what Grbl sends back.
This includes machine coordinates, work coordinates, serial RX buffer
usage, and planner buffer usage. Expandable to more information on user
request, but that’s it for now.
- Settings have been completely renumbered to allow for future new
settings to be installed without having to constantly reshuffle and
renumber all of the settings every time.
- All settings masks have been standardized to mean bit 0 = X, bit 1 =
Y, and bit 2 = Z, to reduce confusion on how they work. The invert
masks used by the internal Grbl system were updated to accommodate this
change as well.
- New invert probe pin setting, which does what it sounds like.
- Fixed a probing cycle bug, where it would freeze intermittently, and
removed some redundant code.
- Homing may now be set to the origin wherever the limit switches are.
Traditionally machine coordinates should always be in negative space,
but when limit switches on are on the opposite side, the machine
coordinate would be set to -max_travel for the axis. Now you can always
make it [0,0,0] via a compile-time option in config.h. (Soft limits
routine was updated to account for this as well.)
- Probe coordinate message immediately after a probing cycle may now
be turned off via a compile-time option in config.h. By default the
probing location is always reported.
- Reduced the N_ARC_CORRECTION default value to reflect the changes in
how circles are generated by an arc tolerance, rather than a fixed arc
segment setting.
- Increased the incoming line buffer limit from 70 to 80 characters.
Had some extra memory space to invest into this.
- Fixed a bug where tool number T was not being tracked and reported
correctly.
- Added a print free memory function for debugging purposes. Not used
otherwise.
- Realtime rate report should now work during feed holds, but it hasn’t
been tested yet.
- Updated the streaming scripts with MIT-license and added the simple
streaming to the main stream.py script to allow for settings to be sent.
- Some minor code refactoring to improve flash efficiency. Reduced the
flash by several hundred KB, which was re-invested in some of these new
features.
2014-07-26 23:01:34 +02:00
|
|
|
|
|
|
|
// Upon a successful probe cycle, this option provides immediately feedback of the probe coordinates
|
|
|
|
// through an automatically generated message. If disabled, users can still access the last probe
|
|
|
|
// coordinates through Grbl '$#' print parameters.
|
|
|
|
#define MESSAGE_PROBE_COORDINATES // Enabled by default. Comment to disable.
|
2014-07-05 00:08:15 +02:00
|
|
|
|
2014-01-11 04:22:10 +01:00
|
|
|
// Enables a second coolant control pin via the mist coolant g-code command M7 on the Arduino Uno
|
2014-02-09 18:46:34 +01:00
|
|
|
// analog pin 5. Only use this option if you require a second coolant control pin.
|
2014-01-11 04:22:10 +01:00
|
|
|
// NOTE: The M8 flood coolant control pin on analog pin 4 will still be functional regardless.
|
2014-02-26 20:10:07 +01:00
|
|
|
// #define ENABLE_M7 // Disabled by default. Uncomment to enable.
|
2014-01-11 04:22:10 +01:00
|
|
|
|
2015-02-12 05:19:00 +01:00
|
|
|
// This option causes the feed hold input to act as a safety door switch. A safety door, when triggered,
|
|
|
|
// immediately forces a feed hold and then safely de-energizes the machine. Resuming is blocked until
|
|
|
|
// the safety door is re-engaged. When it is, Grbl will re-energize the machine and then resume on the
|
|
|
|
// previous tool path, as if nothing happened.
|
|
|
|
// #define ENABLE_SAFETY_DOOR_INPUT_PIN // Default disabled. Uncomment to enable.
|
|
|
|
|
|
|
|
// After the safety door switch has been toggled and restored, this setting sets the power-up delay
|
|
|
|
// between restoring the spindle and coolant and resuming the cycle.
|
v1.0 Beta Release.
- Tons of new stuff in this release, which is fairly stable and well
tested. However, much more is coming soon!
- Real-time parking motion with safety door. When this compile option
is enabled, an opened safety door will cause Grbl to automatically feed
hold, retract, de-energize the spindle/coolant, and parks near Z max.
After the door is closed and resume is commanded, this reverses and the
program continues as if nothing happened. This is also highly
configurable. See config.h for details.
- New spindle max and min rpm ‘$’ settings! This has been requested
often. Grbl will output 5V when commanded to turn on the spindle at its
max rpm, and 0.02V with min rpm. The voltage and the rpm range are
linear to each other. This should help users tweak their settings to
get close to true rpm’s.
- If the new max rpm ‘$’ setting is set = 0 or less than min rpm, the
spindle speed PWM pin will act like a regular on/off spindle enable
pin. On pin D11.
- BEWARE: Your old EEPROM settings will be wiped! The new spindle rpm
settings require a new settings version, so Grbl will automatically
wipe and restore the EEPROM with the new defaults.
- Control pin can now be inverted individually with a
CONTROL_INVERT_MASK in the cpu_map header file. Not typical for users
to need this, but handy to have.
- Fixed bug when Grbl receive too many characters in a line and
overflows. Previously it would respond with an error per overflow
character and another acknowledge upon an EOL character. This broke the
streaming protocol. Now fixed to only respond with an error after an
EOL character.
- Fixed a bug with the safety door during an ALARM mode. You now can’t
home or unlock the axes until the safety door has been closed. This is
for safety reasons (obviously.)
- Tweaked some the Mega2560 cpu_map settings . Increased segment buffer
size and fixed the spindle PWM settings to output at a higher PWM
frequency.
- Generalized the delay function used by G4 delay for use by parking
motion. Allows non-blocking status reports and real-time control during
re-energizing of the spindle and coolant.
- Added spindle rpm max and min defaults to default.h files.
- Added a new print float for rpm values.
2015-08-28 05:37:19 +02:00
|
|
|
#define SAFETY_DOOR_SPINDLE_DELAY 4.0 // Float (seconds)
|
|
|
|
#define SAFETY_DOOR_COOLANT_DELAY 1.0 // Float (seconds)
|
2015-02-12 05:19:00 +01:00
|
|
|
|
2015-01-15 06:14:52 +01:00
|
|
|
// Enable CoreXY kinematics. Use ONLY with CoreXY machines.
|
|
|
|
// IMPORTANT: If homing is enabled, you must reconfigure the homing cycle #defines above to
|
|
|
|
// #define HOMING_CYCLE_0 (1<<X_AXIS) and #define HOMING_CYCLE_1 (1<<Y_AXIS)
|
|
|
|
// NOTE: This configuration option alters the motion of the X and Y axes to principle of operation
|
|
|
|
// defined at (http://corexy.com/theory.html). Motors are assumed to positioned and wired exactly as
|
|
|
|
// described, if not, motions may move in strange directions. Grbl assumes the CoreXY A and B motors
|
|
|
|
// have the same steps per mm internally.
|
|
|
|
// #define COREXY // Default disabled. Uncomment to enable.
|
|
|
|
|
2015-01-17 16:12:37 +01:00
|
|
|
// Inverts pin logic of the control command pins. This essentially means when this option is enabled
|
|
|
|
// you can use normally-closed switches, rather than the default normally-open switches.
|
2015-08-14 22:13:52 +02:00
|
|
|
// NOTE: If you require individual control pins inverted, keep this macro disabled and simply alter
|
|
|
|
// the CONTROL_INVERT_MASK definition in cpu_map.h files.
|
|
|
|
// #define INVERT_ALL_CONTROL_PINS // Default disabled. Uncomment to enable.
|
2015-01-17 16:12:37 +01:00
|
|
|
|
2015-03-28 02:59:34 +01:00
|
|
|
// Inverts the spindle enable pin from low-disabled/high-enabled to low-enabled/high-disabled. Useful
|
|
|
|
// for some pre-built electronic boards.
|
|
|
|
// NOTE: If VARIABLE_SPINDLE is enabled(default), this option has no effect as the PWM output and
|
|
|
|
// spindle enable are combined to one pin. If you need both this option and spindle speed PWM,
|
|
|
|
// uncomment the config option USE_SPINDLE_DIR_AS_ENABLE_PIN below.
|
|
|
|
// #define INVERT_SPINDLE_ENABLE_PIN // Default disabled. Uncomment to enable.
|
|
|
|
|
2015-03-14 16:27:48 +01:00
|
|
|
// Enable control pin states feedback in status reports. The data is presented as simple binary of
|
|
|
|
// the control pin port (0 (low) or 1(high)), masked to show only the input pins. Non-control pins on the
|
|
|
|
// port will always show a 0 value. See cpu_map.h for the pin bitmap. As with the limit pin reporting,
|
|
|
|
// we do not recommend keeping this option enabled. Try to only use this for setting up a new CNC.
|
|
|
|
// #define REPORT_CONTROL_PIN_STATE // Default disabled. Uncomment to enable.
|
2015-02-07 04:02:34 +01:00
|
|
|
|
2015-02-24 02:45:26 +01:00
|
|
|
// When Grbl powers-cycles or is hard reset with the Arduino reset button, Grbl boots up with no ALARM
|
|
|
|
// by default. This is to make it as simple as possible for new users to start using Grbl. When homing
|
|
|
|
// is enabled and a user has installed limit switches, Grbl will boot up in an ALARM state to indicate
|
|
|
|
// Grbl doesn't know its position and to force the user to home before proceeding. This option forces
|
|
|
|
// Grbl to always initialize into an ALARM state regardless of homing or not. This option is more for
|
|
|
|
// OEMs and LinuxCNC users that would like this power-cycle behavior.
|
|
|
|
// #define FORCE_INITIALIZATION_ALARM // Default disabled. Uncomment to enable.
|
|
|
|
|
2013-12-11 06:33:06 +01:00
|
|
|
// ---------------------------------------------------------------------------------------
|
|
|
|
// ADVANCED CONFIGURATION OPTIONS:
|
|
|
|
|
2015-02-24 02:45:26 +01:00
|
|
|
// Enables minimal reporting feedback mode for GUIs, where human-readable strings are not as important.
|
|
|
|
// This saves nearly 2KB of flash space and may allow enough space to install other/future features.
|
2015-02-24 02:50:32 +01:00
|
|
|
// GUIs will need to install a look-up table for the error-codes that Grbl sends back in their place.
|
2015-02-24 02:45:26 +01:00
|
|
|
// NOTE: This feature is new and experimental. Make sure the GUI you are using supports this mode.
|
2015-02-24 02:50:32 +01:00
|
|
|
// #define REPORT_GUI_MODE // Default disabled. Uncomment to enable.
|
2015-02-24 02:45:26 +01:00
|
|
|
|
2013-12-30 04:34:51 +01:00
|
|
|
// The temporal resolution of the acceleration management subsystem. A higher number gives smoother
|
|
|
|
// acceleration, particularly noticeable on machines that run at very high feedrates, but may negatively
|
|
|
|
// impact performance. The correct value for this parameter is machine dependent, so it's advised to
|
|
|
|
// set this only as high as needed. Approximate successful values can widely range from 50 to 200 or more.
|
2014-01-04 20:12:44 +01:00
|
|
|
// NOTE: Changing this value also changes the execution time of a segment in the step segment buffer.
|
|
|
|
// When increasing this value, this stores less overall time in the segment buffer and vice versa. Make
|
|
|
|
// certain the step segment buffer is increased/decreased to account for these changes.
|
2013-12-30 04:34:51 +01:00
|
|
|
#define ACCELERATION_TICKS_PER_SECOND 100
|
|
|
|
|
2014-01-04 20:12:44 +01:00
|
|
|
// Adaptive Multi-Axis Step Smoothing (AMASS) is an advanced feature that does what its name implies,
|
|
|
|
// smoothing the stepping of multi-axis motions. This feature smooths motion particularly at low step
|
|
|
|
// frequencies below 10kHz, where the aliasing between axes of multi-axis motions can cause audible
|
|
|
|
// noise and shake your machine. At even lower step frequencies, AMASS adapts and provides even better
|
|
|
|
// step smoothing. See stepper.c for more details on the AMASS system works.
|
|
|
|
#define ADAPTIVE_MULTI_AXIS_STEP_SMOOTHING // Default enabled. Comment to disable.
|
|
|
|
|
2015-02-24 02:45:26 +01:00
|
|
|
// Sets the maximum step rate allowed to be written as a Grbl setting. This option enables an error
|
|
|
|
// check in the settings module to prevent settings values that will exceed this limitation. The maximum
|
|
|
|
// step rate is strictly limited by the CPU speed and will change if something other than an AVR running
|
|
|
|
// at 16MHz is used.
|
2015-02-07 04:02:34 +01:00
|
|
|
// NOTE: For now disabled, will enable if flash space permits.
|
|
|
|
// #define MAX_STEP_RATE_HZ 30000 // Hz
|
|
|
|
|
2015-01-17 16:12:37 +01:00
|
|
|
// By default, Grbl sets all input pins to normal-high operation with their internal pull-up resistors
|
|
|
|
// enabled. This simplifies the wiring for users by requiring only a switch connected to ground,
|
|
|
|
// although its recommended that users take the extra step of wiring in low-pass filter to reduce
|
|
|
|
// electrical noise detected by the pin. If the user inverts the pin in Grbl settings, this just flips
|
|
|
|
// which high or low reading indicates an active signal. In normal operation, this means the user
|
|
|
|
// needs to connect a normal-open switch, but if inverted, this means the user should connect a
|
|
|
|
// normal-closed switch.
|
|
|
|
// The following options disable the internal pull-up resistors, sets the pins to a normal-low
|
2015-02-11 03:30:40 +01:00
|
|
|
// operation, and switches must be now connect to Vcc instead of ground. This also flips the meaning
|
2015-01-17 16:12:37 +01:00
|
|
|
// of the invert pin Grbl setting, where an inverted setting now means the user should connect a
|
|
|
|
// normal-open switch and vice versa.
|
2015-02-11 03:30:40 +01:00
|
|
|
// NOTE: All pins associated with the feature are disabled, i.e. XYZ limit pins, not individual axes.
|
2015-01-17 16:12:37 +01:00
|
|
|
// WARNING: When the pull-ups are disabled, this requires additional wiring with pull-down resistors!
|
|
|
|
//#define DISABLE_LIMIT_PIN_PULL_UP
|
|
|
|
//#define DISABLE_PROBE_PIN_PULL_UP
|
|
|
|
//#define DISABLE_CONTROL_PIN_PULL_UP
|
|
|
|
|
2014-07-06 23:20:20 +02:00
|
|
|
// Sets which axis the tool length offset is applied. Assumes the spindle is always parallel with
|
|
|
|
// the selected axis with the tool oriented toward the negative direction. In other words, a positive
|
|
|
|
// tool length offset value is subtracted from the current location.
|
|
|
|
#define TOOL_LENGTH_OFFSET_AXIS Z_AXIS // Default z-axis. Valid values are X_AXIS, Y_AXIS, or Z_AXIS.
|
|
|
|
|
2014-01-04 20:12:44 +01:00
|
|
|
// Enables variable spindle output voltage for different RPM values. On the Arduino Uno, the spindle
|
|
|
|
// enable pin will output 5V for maximum RPM with 256 intermediate levels and 0V when disabled.
|
|
|
|
// NOTE: IMPORTANT for Arduino Unos! When enabled, the Z-limit pin D11 and spindle enable pin D12 switch!
|
|
|
|
// The hardware PWM output on pin D11 is required for variable spindle output voltages.
|
2015-02-24 02:50:32 +01:00
|
|
|
#define VARIABLE_SPINDLE // Default enabled. Comment to disable.
|
2014-01-11 04:22:10 +01:00
|
|
|
|
2014-10-02 04:22:16 +02:00
|
|
|
// Used by variable spindle output only. This forces the PWM output to a minimum duty cycle when enabled.
|
v1.0 Beta Release.
- Tons of new stuff in this release, which is fairly stable and well
tested. However, much more is coming soon!
- Real-time parking motion with safety door. When this compile option
is enabled, an opened safety door will cause Grbl to automatically feed
hold, retract, de-energize the spindle/coolant, and parks near Z max.
After the door is closed and resume is commanded, this reverses and the
program continues as if nothing happened. This is also highly
configurable. See config.h for details.
- New spindle max and min rpm ‘$’ settings! This has been requested
often. Grbl will output 5V when commanded to turn on the spindle at its
max rpm, and 0.02V with min rpm. The voltage and the rpm range are
linear to each other. This should help users tweak their settings to
get close to true rpm’s.
- If the new max rpm ‘$’ setting is set = 0 or less than min rpm, the
spindle speed PWM pin will act like a regular on/off spindle enable
pin. On pin D11.
- BEWARE: Your old EEPROM settings will be wiped! The new spindle rpm
settings require a new settings version, so Grbl will automatically
wipe and restore the EEPROM with the new defaults.
- Control pin can now be inverted individually with a
CONTROL_INVERT_MASK in the cpu_map header file. Not typical for users
to need this, but handy to have.
- Fixed bug when Grbl receive too many characters in a line and
overflows. Previously it would respond with an error per overflow
character and another acknowledge upon an EOL character. This broke the
streaming protocol. Now fixed to only respond with an error after an
EOL character.
- Fixed a bug with the safety door during an ALARM mode. You now can’t
home or unlock the axes until the safety door has been closed. This is
for safety reasons (obviously.)
- Tweaked some the Mega2560 cpu_map settings . Increased segment buffer
size and fixed the spindle PWM settings to output at a higher PWM
frequency.
- Generalized the delay function used by G4 delay for use by parking
motion. Allows non-blocking status reports and real-time control during
re-energizing of the spindle and coolant.
- Added spindle rpm max and min defaults to default.h files.
- Added a new print float for rpm values.
2015-08-28 05:37:19 +02:00
|
|
|
// The PWM pin will still read 0V when the spindle is disabled. Most users will not need this option, but
|
|
|
|
// it may be useful in certain scenarios. This minimum PWM settings coincides with the spindle rpm minimum
|
|
|
|
// setting, like rpm max to max PWM. So the variable spindle pin will not output the voltage range between
|
|
|
|
// 0V for disabled and the voltage set by the minimum PWM for minimum rpm.
|
|
|
|
// NOTE: Compute duty cycle at the minimum PWM by this equation: (% duty cycle)=(SPINDLE_MINIMUM_PWM/256)*100
|
|
|
|
// #define SPINDLE_MINIMUM_PWM 5 // Default disabled. Uncomment to enable. Integer (0-255)
|
2014-10-02 04:22:16 +02:00
|
|
|
|
2015-03-28 01:13:18 +01:00
|
|
|
// By default on a 328p(Uno), Grbl combines the variable spindle PWM and the enable into one pin to help
|
|
|
|
// preserve I/O pins. For certain setups, these may need to be separate pins. This configure option uses
|
|
|
|
// the spindle direction pin(D13) as a separate spindle enable pin along with spindle speed PWM on pin D11.
|
|
|
|
// NOTE: This configure option only works with VARIABLE_SPINDLE enabled and a 328p processor (Uno).
|
|
|
|
// NOTE: With no direction pin, the spindle clockwise M4 g-code command will be removed. M3 and M5 still work.
|
2015-07-17 16:19:57 +02:00
|
|
|
// NOTE: BEWARE! The Arduino bootloader toggles the D13 pin when it powers up. If you flash Grbl with
|
|
|
|
// a programmer (you can use a spare Arduino as "Arduino as ISP". Search the web on how to wire this.),
|
|
|
|
// this D13 LED toggling should go away. We haven't tested this though. Please report how it goes!
|
2015-03-28 01:13:18 +01:00
|
|
|
// #define USE_SPINDLE_DIR_AS_ENABLE_PIN // Default disabled. Uncomment to enable.
|
|
|
|
|
|
|
|
// With this enabled, Grbl sends back an echo of the line it has received, which has been pre-parsed (spaces
|
|
|
|
// removed, capitalized letters, no comments) and is to be immediately executed by Grbl. Echoes will not be
|
|
|
|
// sent upon a line buffer overflow, but should for all normal lines sent to Grbl. For example, if a user
|
|
|
|
// sendss the line 'g1 x1.032 y2.45 (test comment)', Grbl will echo back in the form '[echo: G1X1.032Y2.45]'.
|
|
|
|
// NOTE: Only use this for debugging purposes!! When echoing, this takes up valuable resources and can effect
|
|
|
|
// performance. If absolutely needed for normal operation, the serial write buffer should be greatly increased
|
|
|
|
// to help minimize transmission waiting within the serial write protocol.
|
|
|
|
// #define REPORT_ECHO_LINE_RECEIVED // Default disabled. Uncomment to enable.
|
|
|
|
|
2013-12-11 06:33:06 +01:00
|
|
|
// Minimum planner junction speed. Sets the default minimum junction speed the planner plans to at
|
|
|
|
// every buffer block junction, except for starting from rest and end of the buffer, which are always
|
|
|
|
// zero. This value controls how fast the machine moves through junctions with no regard for acceleration
|
|
|
|
// limits or angle between neighboring block line move directions. This is useful for machines that can't
|
|
|
|
// tolerate the tool dwelling for a split second, i.e. 3d printers or laser cutters. If used, this value
|
|
|
|
// should not be much greater than zero or to the minimum value necessary for the machine to work.
|
|
|
|
#define MINIMUM_JUNCTION_SPEED 0.0 // (mm/min)
|
|
|
|
|
2014-08-06 00:17:45 +02:00
|
|
|
// Sets the minimum feed rate the planner will allow. Any value below it will be set to this minimum
|
|
|
|
// value. This also ensures that a planned motion always completes and accounts for any floating-point
|
2015-03-28 01:13:18 +01:00
|
|
|
// round-off errors. Although not recommended, a lower value than 1.0 mm/min will likely work in smaller
|
|
|
|
// machines, perhaps to 0.1mm/min, but your success may vary based on multiple factors.
|
2014-08-06 00:17:45 +02:00
|
|
|
#define MINIMUM_FEED_RATE 1.0 // (mm/min)
|
|
|
|
|
2012-12-20 01:30:09 +01:00
|
|
|
// Number of arc generation iterations by small angle approximation before exact arc trajectory
|
Settings refactoring. Bug fixes. Misc new features.
This is likely the last major change to the v0.9 code base before push
to master. Only two minor things remain on the agenda (CoreXY support,
force clear EEPROM, and an extremely low federate bug).
- NEW! Grbl is now compile-able and may be flashed directly through the
Arduino IDE. Only minor changes were required for this compatibility.
See the Wiki to learn how to do it.
- New status reporting mask to turn on and off what Grbl sends back.
This includes machine coordinates, work coordinates, serial RX buffer
usage, and planner buffer usage. Expandable to more information on user
request, but that’s it for now.
- Settings have been completely renumbered to allow for future new
settings to be installed without having to constantly reshuffle and
renumber all of the settings every time.
- All settings masks have been standardized to mean bit 0 = X, bit 1 =
Y, and bit 2 = Z, to reduce confusion on how they work. The invert
masks used by the internal Grbl system were updated to accommodate this
change as well.
- New invert probe pin setting, which does what it sounds like.
- Fixed a probing cycle bug, where it would freeze intermittently, and
removed some redundant code.
- Homing may now be set to the origin wherever the limit switches are.
Traditionally machine coordinates should always be in negative space,
but when limit switches on are on the opposite side, the machine
coordinate would be set to -max_travel for the axis. Now you can always
make it [0,0,0] via a compile-time option in config.h. (Soft limits
routine was updated to account for this as well.)
- Probe coordinate message immediately after a probing cycle may now
be turned off via a compile-time option in config.h. By default the
probing location is always reported.
- Reduced the N_ARC_CORRECTION default value to reflect the changes in
how circles are generated by an arc tolerance, rather than a fixed arc
segment setting.
- Increased the incoming line buffer limit from 70 to 80 characters.
Had some extra memory space to invest into this.
- Fixed a bug where tool number T was not being tracked and reported
correctly.
- Added a print free memory function for debugging purposes. Not used
otherwise.
- Realtime rate report should now work during feed holds, but it hasn’t
been tested yet.
- Updated the streaming scripts with MIT-license and added the simple
streaming to the main stream.py script to allow for settings to be sent.
- Some minor code refactoring to improve flash efficiency. Reduced the
flash by several hundred KB, which was re-invested in some of these new
features.
2014-07-26 23:01:34 +02:00
|
|
|
// correction with expensive sin() and cos() calcualtions. This parameter maybe decreased if there
|
|
|
|
// are issues with the accuracy of the arc generations, or increased if arc execution is getting
|
|
|
|
// bogged down by too many trig calculations.
|
|
|
|
#define N_ARC_CORRECTION 12 // Integer (1-255)
|
2012-12-20 01:30:09 +01:00
|
|
|
|
2015-03-29 19:35:16 +02:00
|
|
|
// The arc G2/3 g-code standard is problematic by definition. Radius-based arcs have horrible numerical
|
|
|
|
// errors when arc at semi-circles(pi) or full-circles(2*pi). Offset-based arcs are much more accurate
|
|
|
|
// but still have a problem when arcs are full-circles (2*pi). This define accounts for the floating
|
|
|
|
// point issues when offset-based arcs are commanded as full circles, but get interpreted as extremely
|
|
|
|
// small arcs with around machine epsilon (1.2e-7rad) due to numerical round-off and precision issues.
|
|
|
|
// This define value sets the machine epsilon cutoff to determine if the arc is a full-circle or not.
|
|
|
|
// NOTE: Be very careful when adjusting this value. It should always be greater than 1.2e-7 but not too
|
|
|
|
// much greater than this. The default setting should capture most, if not all, full arc error situations.
|
|
|
|
#define ARC_ANGULAR_TRAVEL_EPSILON 5E-7 // Float (radians)
|
|
|
|
|
2013-12-11 06:33:06 +01:00
|
|
|
// Time delay increments performed during a dwell. The default value is set at 50ms, which provides
|
|
|
|
// a maximum time delay of roughly 55 minutes, more than enough for most any application. Increasing
|
|
|
|
// this delay will increase the maximum dwell time linearly, but also reduces the responsiveness of
|
|
|
|
// run-time command executions, like status reports, since these are performed between each dwell
|
|
|
|
// time step. Also, keep in mind that the Arduino delay timer is not very accurate for long delays.
|
|
|
|
#define DWELL_TIME_STEP 50 // Integer (1-255) (milliseconds)
|
2012-06-27 05:48:42 +02:00
|
|
|
|
2013-12-31 02:44:46 +01:00
|
|
|
// Creates a delay between the direction pin setting and corresponding step pulse by creating
|
|
|
|
// another interrupt (Timer2 compare) to manage it. The main Grbl interrupt (Timer1 compare)
|
|
|
|
// sets the direction pins, and does not immediately set the stepper pins, as it would in
|
|
|
|
// normal operation. The Timer2 compare fires next to set the stepper pins after the step
|
|
|
|
// pulse delay time, and Timer2 overflow will complete the step pulse, except now delayed
|
|
|
|
// by the step pulse time plus the step pulse delay. (Thanks langwadt for the idea!)
|
|
|
|
// NOTE: Uncomment to enable. The recommended delay must be > 3us, and, when added with the
|
|
|
|
// user-supplied step pulse time, the total time must not exceed 127us. Reported successful
|
|
|
|
// values for certain setups have ranged from 5 to 20us.
|
|
|
|
// #define STEP_PULSE_DELAY 10 // Step pulse delay in microseconds. Default disabled.
|
|
|
|
|
2012-11-09 03:23:47 +01:00
|
|
|
// The number of linear motions in the planner buffer to be planned at any give time. The vast
|
|
|
|
// majority of RAM that Grbl uses is based on this buffer size. Only increase if there is extra
|
2013-10-30 02:10:39 +01:00
|
|
|
// available RAM, like when re-compiling for a Mega or Sanguino. Or decrease if the Arduino
|
2012-11-09 03:23:47 +01:00
|
|
|
// begins to crash due to the lack of available RAM or if the CPU is having trouble keeping
|
|
|
|
// up with planning new incoming motions as they are executed.
|
|
|
|
// #define BLOCK_BUFFER_SIZE 18 // Uncomment to override default in planner.h.
|
|
|
|
|
2013-11-23 01:35:58 +01:00
|
|
|
// Governs the size of the intermediary step segment buffer between the step execution algorithm
|
|
|
|
// and the planner blocks. Each segment is set of steps executed at a constant velocity over a
|
|
|
|
// fixed time defined by ACCELERATION_TICKS_PER_SECOND. They are computed such that the planner
|
|
|
|
// block velocity profile is traced exactly. The size of this buffer governs how much step
|
|
|
|
// execution lead time there is for other Grbl processes have to compute and do their thing
|
|
|
|
// before having to come back and refill this buffer, currently at ~50msec of step moves.
|
2013-12-30 04:34:51 +01:00
|
|
|
// #define SEGMENT_BUFFER_SIZE 6 // Uncomment to override default in stepper.h.
|
2013-11-23 01:35:58 +01:00
|
|
|
|
2012-11-09 03:23:47 +01:00
|
|
|
// Line buffer size from the serial input stream to be executed. Also, governs the size of
|
|
|
|
// each of the startup blocks, as they are each stored as a string of this size. Make sure
|
|
|
|
// to account for the available EEPROM at the defined memory address in settings.h and for
|
|
|
|
// the number of desired startup blocks.
|
Settings refactoring. Bug fixes. Misc new features.
This is likely the last major change to the v0.9 code base before push
to master. Only two minor things remain on the agenda (CoreXY support,
force clear EEPROM, and an extremely low federate bug).
- NEW! Grbl is now compile-able and may be flashed directly through the
Arduino IDE. Only minor changes were required for this compatibility.
See the Wiki to learn how to do it.
- New status reporting mask to turn on and off what Grbl sends back.
This includes machine coordinates, work coordinates, serial RX buffer
usage, and planner buffer usage. Expandable to more information on user
request, but that’s it for now.
- Settings have been completely renumbered to allow for future new
settings to be installed without having to constantly reshuffle and
renumber all of the settings every time.
- All settings masks have been standardized to mean bit 0 = X, bit 1 =
Y, and bit 2 = Z, to reduce confusion on how they work. The invert
masks used by the internal Grbl system were updated to accommodate this
change as well.
- New invert probe pin setting, which does what it sounds like.
- Fixed a probing cycle bug, where it would freeze intermittently, and
removed some redundant code.
- Homing may now be set to the origin wherever the limit switches are.
Traditionally machine coordinates should always be in negative space,
but when limit switches on are on the opposite side, the machine
coordinate would be set to -max_travel for the axis. Now you can always
make it [0,0,0] via a compile-time option in config.h. (Soft limits
routine was updated to account for this as well.)
- Probe coordinate message immediately after a probing cycle may now
be turned off via a compile-time option in config.h. By default the
probing location is always reported.
- Reduced the N_ARC_CORRECTION default value to reflect the changes in
how circles are generated by an arc tolerance, rather than a fixed arc
segment setting.
- Increased the incoming line buffer limit from 70 to 80 characters.
Had some extra memory space to invest into this.
- Fixed a bug where tool number T was not being tracked and reported
correctly.
- Added a print free memory function for debugging purposes. Not used
otherwise.
- Realtime rate report should now work during feed holds, but it hasn’t
been tested yet.
- Updated the streaming scripts with MIT-license and added the simple
streaming to the main stream.py script to allow for settings to be sent.
- Some minor code refactoring to improve flash efficiency. Reduced the
flash by several hundred KB, which was re-invested in some of these new
features.
2014-07-26 23:01:34 +02:00
|
|
|
// NOTE: 80 characters is not a problem except for extreme cases, but the line buffer size
|
2012-11-09 03:23:47 +01:00
|
|
|
// can be too small and g-code blocks can get truncated. Officially, the g-code standards
|
|
|
|
// support up to 256 characters. In future versions, this default will be increased, when
|
|
|
|
// we know how much extra memory space we can re-invest into this.
|
Settings refactoring. Bug fixes. Misc new features.
This is likely the last major change to the v0.9 code base before push
to master. Only two minor things remain on the agenda (CoreXY support,
force clear EEPROM, and an extremely low federate bug).
- NEW! Grbl is now compile-able and may be flashed directly through the
Arduino IDE. Only minor changes were required for this compatibility.
See the Wiki to learn how to do it.
- New status reporting mask to turn on and off what Grbl sends back.
This includes machine coordinates, work coordinates, serial RX buffer
usage, and planner buffer usage. Expandable to more information on user
request, but that’s it for now.
- Settings have been completely renumbered to allow for future new
settings to be installed without having to constantly reshuffle and
renumber all of the settings every time.
- All settings masks have been standardized to mean bit 0 = X, bit 1 =
Y, and bit 2 = Z, to reduce confusion on how they work. The invert
masks used by the internal Grbl system were updated to accommodate this
change as well.
- New invert probe pin setting, which does what it sounds like.
- Fixed a probing cycle bug, where it would freeze intermittently, and
removed some redundant code.
- Homing may now be set to the origin wherever the limit switches are.
Traditionally machine coordinates should always be in negative space,
but when limit switches on are on the opposite side, the machine
coordinate would be set to -max_travel for the axis. Now you can always
make it [0,0,0] via a compile-time option in config.h. (Soft limits
routine was updated to account for this as well.)
- Probe coordinate message immediately after a probing cycle may now
be turned off via a compile-time option in config.h. By default the
probing location is always reported.
- Reduced the N_ARC_CORRECTION default value to reflect the changes in
how circles are generated by an arc tolerance, rather than a fixed arc
segment setting.
- Increased the incoming line buffer limit from 70 to 80 characters.
Had some extra memory space to invest into this.
- Fixed a bug where tool number T was not being tracked and reported
correctly.
- Added a print free memory function for debugging purposes. Not used
otherwise.
- Realtime rate report should now work during feed holds, but it hasn’t
been tested yet.
- Updated the streaming scripts with MIT-license and added the simple
streaming to the main stream.py script to allow for settings to be sent.
- Some minor code refactoring to improve flash efficiency. Reduced the
flash by several hundred KB, which was re-invested in some of these new
features.
2014-07-26 23:01:34 +02:00
|
|
|
// #define LINE_BUFFER_SIZE 80 // Uncomment to override default in protocol.h
|
2012-11-09 03:23:47 +01:00
|
|
|
|
|
|
|
// Serial send and receive buffer size. The receive buffer is often used as another streaming
|
|
|
|
// buffer to store incoming blocks to be processed by Grbl when its ready. Most streaming
|
|
|
|
// interfaces will character count and track each block send to each block response. So,
|
|
|
|
// increase the receive buffer if a deeper receive buffer is needed for streaming and avaiable
|
|
|
|
// memory allows. The send buffer primarily handles messages in Grbl. Only increase if large
|
|
|
|
// messages are sent and Grbl begins to stall, waiting to send the rest of the message.
|
Settings refactoring. Bug fixes. Misc new features.
This is likely the last major change to the v0.9 code base before push
to master. Only two minor things remain on the agenda (CoreXY support,
force clear EEPROM, and an extremely low federate bug).
- NEW! Grbl is now compile-able and may be flashed directly through the
Arduino IDE. Only minor changes were required for this compatibility.
See the Wiki to learn how to do it.
- New status reporting mask to turn on and off what Grbl sends back.
This includes machine coordinates, work coordinates, serial RX buffer
usage, and planner buffer usage. Expandable to more information on user
request, but that’s it for now.
- Settings have been completely renumbered to allow for future new
settings to be installed without having to constantly reshuffle and
renumber all of the settings every time.
- All settings masks have been standardized to mean bit 0 = X, bit 1 =
Y, and bit 2 = Z, to reduce confusion on how they work. The invert
masks used by the internal Grbl system were updated to accommodate this
change as well.
- New invert probe pin setting, which does what it sounds like.
- Fixed a probing cycle bug, where it would freeze intermittently, and
removed some redundant code.
- Homing may now be set to the origin wherever the limit switches are.
Traditionally machine coordinates should always be in negative space,
but when limit switches on are on the opposite side, the machine
coordinate would be set to -max_travel for the axis. Now you can always
make it [0,0,0] via a compile-time option in config.h. (Soft limits
routine was updated to account for this as well.)
- Probe coordinate message immediately after a probing cycle may now
be turned off via a compile-time option in config.h. By default the
probing location is always reported.
- Reduced the N_ARC_CORRECTION default value to reflect the changes in
how circles are generated by an arc tolerance, rather than a fixed arc
segment setting.
- Increased the incoming line buffer limit from 70 to 80 characters.
Had some extra memory space to invest into this.
- Fixed a bug where tool number T was not being tracked and reported
correctly.
- Added a print free memory function for debugging purposes. Not used
otherwise.
- Realtime rate report should now work during feed holds, but it hasn’t
been tested yet.
- Updated the streaming scripts with MIT-license and added the simple
streaming to the main stream.py script to allow for settings to be sent.
- Some minor code refactoring to improve flash efficiency. Reduced the
flash by several hundred KB, which was re-invested in some of these new
features.
2014-07-26 23:01:34 +02:00
|
|
|
// NOTE: Buffer size values must be greater than zero and less than 256.
|
2012-11-09 03:23:47 +01:00
|
|
|
// #define RX_BUFFER_SIZE 128 // Uncomment to override defaults in serial.h
|
|
|
|
// #define TX_BUFFER_SIZE 64
|
|
|
|
|
2012-06-27 05:48:42 +02:00
|
|
|
// Toggles XON/XOFF software flow control for serial communications. Not officially supported
|
|
|
|
// due to problems involving the Atmega8U2 USB-to-serial chips on current Arduinos. The firmware
|
|
|
|
// on these chips do not support XON/XOFF flow control characters and the intermediate buffer
|
|
|
|
// in the chips cause latency and overflow problems with standard terminal programs. However,
|
|
|
|
// using specifically-programmed UI's to manage this latency problem has been confirmed to work.
|
|
|
|
// As well as, older FTDI FT232RL-based Arduinos(Duemilanove) are known to work with standard
|
|
|
|
// terminal programs since their firmware correctly manage these XON/XOFF characters. In any
|
|
|
|
// case, please report any successes to grbl administrators!
|
2012-09-22 01:55:02 +02:00
|
|
|
// #define ENABLE_XONXOFF // Default disabled. Uncomment to enable.
|
2012-01-06 18:10:41 +01:00
|
|
|
|
2014-01-11 04:22:10 +01:00
|
|
|
// A simple software debouncing feature for hard limit switches. When enabled, the interrupt
|
|
|
|
// monitoring the hard limit switch pins will enable the Arduino's watchdog timer to re-check
|
|
|
|
// the limit pin state after a delay of about 32msec. This can help with CNC machines with
|
|
|
|
// problematic false triggering of their hard limit switches, but it WILL NOT fix issues with
|
|
|
|
// electrical interference on the signal cables from external sources. It's recommended to first
|
|
|
|
// use shielded signal cables with their shielding connected to ground (old USB/computer cables
|
|
|
|
// work well and are cheap to find) and wire in a low-pass circuit into each limit pin.
|
2014-01-04 20:12:44 +01:00
|
|
|
// #define ENABLE_SOFTWARE_DEBOUNCE // Default disabled. Uncomment to enable.
|
|
|
|
|
2015-02-24 02:45:26 +01:00
|
|
|
// Force Grbl to check the state of the hard limit switches when the processor detects a pin
|
|
|
|
// change inside the hard limit ISR routine. By default, Grbl will trigger the hard limits
|
|
|
|
// alarm upon any pin change, since bouncing switches can cause a state check like this to
|
2015-03-29 19:35:16 +02:00
|
|
|
// misread the pin. When hard limits are triggered, they should be 100% reliable, which is the
|
2015-02-24 02:45:26 +01:00
|
|
|
// reason that this option is disabled by default. Only if your system/electronics can guarantee
|
2015-03-29 19:35:16 +02:00
|
|
|
// that the switches don't bounce, we recommend enabling this option. This will help prevent
|
2015-02-24 02:45:26 +01:00
|
|
|
// triggering a hard limit when the machine disengages from the switch.
|
|
|
|
// NOTE: This option has no effect if SOFTWARE_DEBOUNCE is enabled.
|
|
|
|
// #define HARD_LIMIT_FORCE_STATE_CHECK // Default disabled. Uncomment to enable.
|
|
|
|
|
v1.0 Beta Release.
- Tons of new stuff in this release, which is fairly stable and well
tested. However, much more is coming soon!
- Real-time parking motion with safety door. When this compile option
is enabled, an opened safety door will cause Grbl to automatically feed
hold, retract, de-energize the spindle/coolant, and parks near Z max.
After the door is closed and resume is commanded, this reverses and the
program continues as if nothing happened. This is also highly
configurable. See config.h for details.
- New spindle max and min rpm ‘$’ settings! This has been requested
often. Grbl will output 5V when commanded to turn on the spindle at its
max rpm, and 0.02V with min rpm. The voltage and the rpm range are
linear to each other. This should help users tweak their settings to
get close to true rpm’s.
- If the new max rpm ‘$’ setting is set = 0 or less than min rpm, the
spindle speed PWM pin will act like a regular on/off spindle enable
pin. On pin D11.
- BEWARE: Your old EEPROM settings will be wiped! The new spindle rpm
settings require a new settings version, so Grbl will automatically
wipe and restore the EEPROM with the new defaults.
- Control pin can now be inverted individually with a
CONTROL_INVERT_MASK in the cpu_map header file. Not typical for users
to need this, but handy to have.
- Fixed bug when Grbl receive too many characters in a line and
overflows. Previously it would respond with an error per overflow
character and another acknowledge upon an EOL character. This broke the
streaming protocol. Now fixed to only respond with an error after an
EOL character.
- Fixed a bug with the safety door during an ALARM mode. You now can’t
home or unlock the axes until the safety door has been closed. This is
for safety reasons (obviously.)
- Tweaked some the Mega2560 cpu_map settings . Increased segment buffer
size and fixed the spindle PWM settings to output at a higher PWM
frequency.
- Generalized the delay function used by G4 delay for use by parking
motion. Allows non-blocking status reports and real-time control during
re-energizing of the spindle and coolant.
- Added spindle rpm max and min defaults to default.h files.
- Added a new print float for rpm values.
2015-08-28 05:37:19 +02:00
|
|
|
// Adjusts homing cycle search and locate scalars. These are the multipliers used by Grbl's
|
|
|
|
// homing cycle to ensure the limit switches are engaged and cleared through each phase of
|
|
|
|
// the cycle. The search phase uses the axes max-travel setting times the SEARCH_SCALAR to
|
|
|
|
// determine distance to look for the limit switch. Once found, the locate phase begins and
|
|
|
|
// uses the homing pull-off distance setting times the LOCATE_SCALAR to pull-off and re-engage
|
|
|
|
// the limit switch.
|
|
|
|
// NOTE: Both of these values must be greater than 1.0 to ensure proper function.
|
|
|
|
// #define HOMING_AXIS_SEARCH_SCALAR 1.5 // Uncomment to override defaults in limits.c.
|
|
|
|
// #define HOMING_AXIS_LOCATE_SCALAR 10.0 // Uncomment to override defaults in limits.c.
|
|
|
|
|
|
|
|
|
|
|
|
// Enables and configures parking motion methods upon a safety door state. Primarily for OEMs
|
|
|
|
// that desire this feature for their integrated machines. At the moment, Grbl assumes that
|
|
|
|
// the parking motion only involves one axis, although the parking implementation was written
|
|
|
|
// to be easily refactored for any number of motions on different axes by altering the parking
|
|
|
|
// source code. At this time, Grbl only supports parking one axis (typically the Z-axis) that
|
|
|
|
// moves in the positive direction upon retracting and negative direction upon restoring position.
|
|
|
|
// The motion executes with a slow pull-out retraction motion, power-down, and a fast park.
|
|
|
|
// Restoring to the resume position follows these set motions in reverse: fast restore to
|
|
|
|
// pull-out position, power-up with a time-out, and plunge back to the original position at the
|
|
|
|
// slower pull-out rate.
|
|
|
|
// NOTE: Still a work-in-progress. Machine coordinates must be in all negative space and
|
|
|
|
// does not work with HOMING_FORCE_SET_ORIGIN enabled. Parking motion also moves only in
|
|
|
|
// positive direction.
|
|
|
|
// #define PARKING_ENABLE // Default disabled. Uncomment to enable
|
|
|
|
|
|
|
|
// Configure options for the parking motion, if enabled.
|
|
|
|
#define PARKING_AXIS Z_AXIS // Define which axis that performs the parking motion
|
|
|
|
#define PARKING_TARGET -5.0 // Parking axis target. In mm, as machine coordinate [-max_travel,0].
|
|
|
|
#define PARKING_RATE -1.0 // Parking fast rate after pull-out. In mm/min or (-1.0) for seek rate.
|
|
|
|
#define PARKING_PULLOUT_RATE 250.0 // Pull-out/plunge slow feed rate in mm/min.
|
|
|
|
#define PARKING_PULLOUT_INCREMENT 5.0 // Spindle pull-out and plunge distance in mm. Incremental distance.
|
|
|
|
// Must be positive value or equal to zero.
|
|
|
|
|
2015-02-24 02:45:26 +01:00
|
|
|
|
2013-10-30 02:10:39 +01:00
|
|
|
// ---------------------------------------------------------------------------------------
|
|
|
|
// COMPILE-TIME ERROR CHECKING OF DEFINE VALUES:
|
|
|
|
|
2015-03-28 01:13:18 +01:00
|
|
|
#ifndef HOMING_CYCLE_0
|
|
|
|
#error "Required HOMING_CYCLE_0 not defined."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(USE_SPINDLE_DIR_AS_ENABLE_PIN) && !defined(VARIABLE_SPINDLE)
|
|
|
|
#error "USE_SPINDLE_DIR_AS_ENABLE_PIN may only be used with VARIABLE_SPINDLE enabled"
|
|
|
|
#endif
|
2015-01-15 06:14:52 +01:00
|
|
|
|
2015-03-28 01:13:18 +01:00
|
|
|
#if defined(USE_SPINDLE_DIR_AS_ENABLE_PIN) && !defined(CPU_MAP_ATMEGA328P)
|
|
|
|
#error "USE_SPINDLE_DIR_AS_ENABLE_PIN may only be used with a 328p processor"
|
|
|
|
#endif
|
2013-10-30 02:10:39 +01:00
|
|
|
|
v1.0 Beta Release.
- Tons of new stuff in this release, which is fairly stable and well
tested. However, much more is coming soon!
- Real-time parking motion with safety door. When this compile option
is enabled, an opened safety door will cause Grbl to automatically feed
hold, retract, de-energize the spindle/coolant, and parks near Z max.
After the door is closed and resume is commanded, this reverses and the
program continues as if nothing happened. This is also highly
configurable. See config.h for details.
- New spindle max and min rpm ‘$’ settings! This has been requested
often. Grbl will output 5V when commanded to turn on the spindle at its
max rpm, and 0.02V with min rpm. The voltage and the rpm range are
linear to each other. This should help users tweak their settings to
get close to true rpm’s.
- If the new max rpm ‘$’ setting is set = 0 or less than min rpm, the
spindle speed PWM pin will act like a regular on/off spindle enable
pin. On pin D11.
- BEWARE: Your old EEPROM settings will be wiped! The new spindle rpm
settings require a new settings version, so Grbl will automatically
wipe and restore the EEPROM with the new defaults.
- Control pin can now be inverted individually with a
CONTROL_INVERT_MASK in the cpu_map header file. Not typical for users
to need this, but handy to have.
- Fixed bug when Grbl receive too many characters in a line and
overflows. Previously it would respond with an error per overflow
character and another acknowledge upon an EOL character. This broke the
streaming protocol. Now fixed to only respond with an error after an
EOL character.
- Fixed a bug with the safety door during an ALARM mode. You now can’t
home or unlock the axes until the safety door has been closed. This is
for safety reasons (obviously.)
- Tweaked some the Mega2560 cpu_map settings . Increased segment buffer
size and fixed the spindle PWM settings to output at a higher PWM
frequency.
- Generalized the delay function used by G4 delay for use by parking
motion. Allows non-blocking status reports and real-time control during
re-energizing of the spindle and coolant.
- Added spindle rpm max and min defaults to default.h files.
- Added a new print float for rpm values.
2015-08-28 05:37:19 +02:00
|
|
|
#if defined(PARKING_ENABLE)
|
|
|
|
#if defined(HOMING_FORCE_SET_ORIGIN)
|
|
|
|
#error "HOMING_FORCE_SET_ORIGIN is not supported with PARKING_ENABLE at this time."
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2013-10-30 02:10:39 +01:00
|
|
|
// ---------------------------------------------------------------------------------------
|
Settings refactoring. Bug fixes. Misc new features.
This is likely the last major change to the v0.9 code base before push
to master. Only two minor things remain on the agenda (CoreXY support,
force clear EEPROM, and an extremely low federate bug).
- NEW! Grbl is now compile-able and may be flashed directly through the
Arduino IDE. Only minor changes were required for this compatibility.
See the Wiki to learn how to do it.
- New status reporting mask to turn on and off what Grbl sends back.
This includes machine coordinates, work coordinates, serial RX buffer
usage, and planner buffer usage. Expandable to more information on user
request, but that’s it for now.
- Settings have been completely renumbered to allow for future new
settings to be installed without having to constantly reshuffle and
renumber all of the settings every time.
- All settings masks have been standardized to mean bit 0 = X, bit 1 =
Y, and bit 2 = Z, to reduce confusion on how they work. The invert
masks used by the internal Grbl system were updated to accommodate this
change as well.
- New invert probe pin setting, which does what it sounds like.
- Fixed a probing cycle bug, where it would freeze intermittently, and
removed some redundant code.
- Homing may now be set to the origin wherever the limit switches are.
Traditionally machine coordinates should always be in negative space,
but when limit switches on are on the opposite side, the machine
coordinate would be set to -max_travel for the axis. Now you can always
make it [0,0,0] via a compile-time option in config.h. (Soft limits
routine was updated to account for this as well.)
- Probe coordinate message immediately after a probing cycle may now
be turned off via a compile-time option in config.h. By default the
probing location is always reported.
- Reduced the N_ARC_CORRECTION default value to reflect the changes in
how circles are generated by an arc tolerance, rather than a fixed arc
segment setting.
- Increased the incoming line buffer limit from 70 to 80 characters.
Had some extra memory space to invest into this.
- Fixed a bug where tool number T was not being tracked and reported
correctly.
- Added a print free memory function for debugging purposes. Not used
otherwise.
- Realtime rate report should now work during feed holds, but it hasn’t
been tested yet.
- Updated the streaming scripts with MIT-license and added the simple
streaming to the main stream.py script to allow for settings to be sent.
- Some minor code refactoring to improve flash efficiency. Reduced the
flash by several hundred KB, which was re-invested in some of these new
features.
2014-07-26 23:01:34 +02:00
|
|
|
|
|
|
|
|
2011-12-09 02:47:48 +01:00
|
|
|
#endif
|