Go to file
Sonny Jeon 303cf59f52 Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command.
NOTE: Another incremental update. Likely buggy, still a ways to go
before everything is installed, such as startup blocks.

- Changed the '$' command to print help. '$$' now prints Grbl settings.
The help now instructs the user of runtime commands, switch toggling,
homing, etc. Jogging will be added to these in v0.9.

- Added switches: block delete, opt stop, and single block mode.

- Now can print the g-code parser state and persistent parameters
(coord sys) to view what Grbl has internally.

- Made the gc struct in the g-code parser global to be able to print
the states. Also moved coordinate system tracking from sys to gc struct.

- Changed up the welcome flag and updated version to v0.8c.

- Removed spindle speed from gcode parser. Not used.
2012-11-01 19:48:55 -06:00
doc No changes. Github commit bug. 2012-06-27 07:06:24 -06:00
script No changes. Github commit bug. 2012-06-27 07:06:24 -06:00
.gitignore merged master 2011-01-31 19:42:56 +01:00
config.h Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command. 2012-11-01 19:48:55 -06:00
coolant_control.c Minor prescalar optimization. Changed up some defines. 2012-09-21 17:55:02 -06:00
coolant_control.h Added coolant control (M7*, M8, M9). Mist control can be enabled via config.h. 2012-09-21 11:14:13 -06:00
COPYING No changes. Github commit bug. 2012-06-27 07:06:24 -06:00
eeprom.c formatting 2011-01-31 23:04:39 +01:00
eeprom.h No changes. Github commit bug. 2012-06-27 07:06:24 -06:00
gcode.c Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command. 2012-11-01 19:48:55 -06:00
gcode.h Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command. 2012-11-01 19:48:55 -06:00
limits.c New report module. 6 persistent work coordinates. New G-codes and settings. README and minor bug updates 2012-11-01 09:37:27 -06:00
limits.h Minor updates, improvements, and bug fixes. 2012-10-13 13:11:43 -06:00
main.c New report module. 6 persistent work coordinates. New G-codes and settings. README and minor bug updates 2012-11-01 09:37:27 -06:00
Makefile New report module. 6 persistent work coordinates. New G-codes and settings. README and minor bug updates 2012-11-01 09:37:27 -06:00
motion_control.c New report module. 6 persistent work coordinates. New G-codes and settings. README and minor bug updates 2012-11-01 09:37:27 -06:00
motion_control.h New alarm method. Re(re)organized status messages. 2012-10-21 19:18:24 -06:00
nuts_bolts.c Updated delay_us() function to accept long integers 2012-10-12 08:27:14 -06:00
nuts_bolts.h Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command. 2012-11-01 19:48:55 -06:00
planner.c Minor updates, improvements, and bug fixes. 2012-10-13 13:11:43 -06:00
planner.h Limit pin internal pull-resistors enabled. Re-wrote read_double() function. Correctly changed all 'double's to 'float's. 2012-10-08 15:57:58 -06:00
print.c (2x) speed increase in printFloat() function. Decimal places setting added. 2012-10-11 22:43:54 -06:00
print.h Limit pin internal pull-resistors enabled. Re-wrote read_double() function. Correctly changed all 'double's to 'float's. 2012-10-08 15:57:58 -06:00
protocol.c Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command. 2012-11-01 19:48:55 -06:00
protocol.h New report module. 6 persistent work coordinates. New G-codes and settings. README and minor bug updates 2012-11-01 09:37:27 -06:00
readme.textile New report module. 6 persistent work coordinates. New G-codes and settings. README and minor bug updates 2012-11-01 09:37:27 -06:00
report.c Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command. 2012-11-01 19:48:55 -06:00
report.h Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command. 2012-11-01 19:48:55 -06:00
serial.c New report module. 6 persistent work coordinates. New G-codes and settings. README and minor bug updates 2012-11-01 09:37:27 -06:00
serial.h No changes. Github commit bug. 2012-06-27 07:06:24 -06:00
settings.c Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command. 2012-11-01 19:48:55 -06:00
settings.h Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command. 2012-11-01 19:48:55 -06:00
spindle_control.c Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command. 2012-11-01 19:48:55 -06:00
spindle_control.h Added block delete, opt stop, single block mode. New parser state and parameter feedback. Overhauled '$' command. 2012-11-01 19:48:55 -06:00
stepper.c New report module. 6 persistent work coordinates. New G-codes and settings. README and minor bug updates 2012-11-01 09:37:27 -06:00
stepper.h New report module. 6 persistent work coordinates. New G-codes and settings. README and minor bug updates 2012-11-01 09:37:27 -06:00

h1. Grbl - An embedded g-code interpreter and motion-controller for the Arduino/AVR328 microcontroller
    
Grbl is a no-compromise, high performance, low cost alternative to parallel-port-based motion control for CNC milling. It will run on a vanilla Arduino (Duemillanove/Uno) as long as it sports an Atmega 328. 

The controller is written in highly optimized C utilizing every clever feature of the AVR-chips to achieve precise timing and asynchronous operation. It is able to maintain more than 30kHz of stable, jitter free control pulses.

It accepts standards-compliant G-code and has been tested with the output of several CAM tools with no problems. Arcs, circles and helical motion are fully supported, as well as, other basic functional g-code commands. Functions and variables are not currently supported, but may be included in future releases in a form of a pre-processor.

Grbl includes full acceleration management with look ahead. That means the controller will look up to 18 motions into the future and plan its velocities ahead to deliver smooth acceleration and jerk-free cornering.

*Changelog for v0.8 from v0.7:*
  - *BETA status: _Under development. Code state may significantly change with each push as new features are integrated._*
  - Major structural overhaul to allow for multi-tasking events and new feature sets
  - New run-time command control: Feed hold (pause), Cycle start (resume), Reset (abort), Status reporting
  - Controlled feed hold with deceleration to ensure no skipped steps and loss of location.
  - After feed hold, cycle accelerations are re-planned and may be resumed.
  - Advanced homing cycle with direction and speed configuration options. (Requires limit switches.)
  - Limit pins are held normal high with an internal pull-up resister. Wiring only requires a normally-open switch connected to ground. (For both ends of an axis, simply wire two in parallel into the same pin.)
  - Hard limits option and plays nice with homing cycle, so switches can be used for both homing and hard limits.
  - Re-factored g-code parser with robust error-checking.
  - 6 work coordinate systems (G54-G59), offsets(G92), and machine coordinate system support. Work systems are stored in EEPROM and persistent.
  - G10 L2 and L20 work coordinate settings support. L2 sets one or more axes values. L20 sets the current machine position to the specified work origin.
  - Program stop(M0,M1*,M2,M30) initial support. Optional stop to do.
  - Coolant control(M7*,M8,M9) support. (M7 is a compile-time option).
  - System reset re-initializes grbl without resetting the Arduino and retains machine/home position and work coordinates.
  - Restructured planner and stepper modules to become independent and ready for future features.
  - Settings re-factoring to allow configuration without compiling of most features. (Still in progress).
  - Misc bug fixes and removed deprecated acceleration enabled code.  
  - Planned features: Axis acceleration and max speed individual settings, full-featured status reporting, runtime settings such as toggling block delete.
  - Advanced compile-time options: Up to 6 work coordinate systems(G54-G59), XON/XOFF flow control (limited support), direction and step pulse time delay.
  

*Important note for Atmega 168 users:* Going forward, support for Atmega 168 will be dropped due to its limited memory and speed. However, legacy Grbl v0.51 "in the branch called 'v0_51' is still available for use.

_The project was initially inspired by the Arduino GCode Interpreter by Mike Ellery_