-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the grbl wiki! Please feel free to modify these pages to help keep grbl up-to-date!
Grbl is a free, open source, high performance CNC milling controller written in optimized C that will run on a straight Arduino.
Makers who do milling and need a nice, simple controller for their system (and who can handle the lack of a user friendly, graphical client). People who loathe to clutter their space with legacy PC-towers just for the parallel-port. Tinkerers who need a controller written in tidy, modular C as a basis for their project.
###Nice features
Grbl is ready for light duty production. We use it for all our milling, running it from our laptops using a simple console script (included) to stream the G-code. It is written in optimized C utilizing all the clever features of the Arduino's Atmega328p chips to achieve precise timing and asynchronous operation. It is able to maintain more than 30kHz step rate and delivers a clean, jitter free stream of control pulses.
Grbl is for three axis machines. No rotation axes – just X, Y, and Z.
The G-code interpreter implements a subset of the NIST rs274/ngc standard and is tested with the output of a number of CAM-tools with no issues. Linear, circular and helical motion are all fully supported.
- Supported G-Codes on v0.7:
- Linear Motions (G0,G1)
- Arc Motions (G2,G3)
- Dwell (G4)
- Plane Selection (G17,G18,G19)
- Units (G20,G21)
- Go Home* (G28,G30) *[Incorrectly performed the homing cycle]
- Distance Modes (G90,G91)
- Feedrate Modes (G93,G94)
- Coordinate Offset (G92)
- Spindle Control (M3,M4,M5)
- Others (G53,G80).
- Supported G-Codes on v0.8
- Work Coordinate Systems (G54,G55,G56,G57,G58,G59)
- Set Work Coordinate Offsets (G10 L2, G10 L20)
- Go to Pre-Defined Position (G28,G30)
- Set Pre-Defined Position (G28.1,G30.1)
- Clear Coordinate System Offsets (G92.1)
- Program Pause and End (M0,M2,M30)
- Coolant Control (M8,M9)
Most configuration options can be set at runtime and is saved in eeprom between sessions and even retained between different versions of Grbl as you upgrade the firmware. For descriptions of these g-codes, we follow the NIST g-code guidelines and LinuxCNC.org also provides great documentation for these as well. (G-codes) (M-codes) [(Other codes)] (http://www.linuxcnc.org/docs/2.5/html/gcode/other-code.html)
###Acceleration management
The most requested feature that we really wanted to have was a nice and advanced look-ahead acceleration manager. In early versions, some users were not able to run their CNCs at full speed without some kind of easing. Grbl’s full acceleration-management with look ahead planner will ease into the fastest feed rates and brake before sharp corners for fast yet jerk free operation. A lot of work went into this to make sure motions are solid. Here's a link describing our high speed cornering algorithm.
###Limitations by design
We have limited g-code-support by design. Grbl supports all the common operations encountered in output from CAM-tools, but leave some human g-coders frustrated. No variables, no tool offsets, no functions, no canned cycles, no arithmetic and no control structures. Just the basic machine operations and capabilities. Anything more complex, we think interfaces can handle those quite easily and translate them for Grbl.
A lot has happened since the v0.7. We're pushing real hard to create a simple, yet powerful CNC controller for the venerable Arduino. Here's a list of the new things that have come to v0.8.
- Multi-Tasking Run-time Commands: Feed hold with controlled deceleration for no loss of location, Resume after feed hold, Reset, and Status Reporting.
- Advanced Homing Cycle: Lots of configuration options for different types of machines from which axes to move when to their search directions. Limit switches may also be used as hard limits as well.
- Persistent Coordinate System Data: Work Coordinate Systems (G54-G59) and Pre-Defined Positions (G28,G30) are held in EEPROM, so they'll always be set as you last set them.
- Check G-Code Mode: Sets up Grbl to run through your program without moving anything, so you can check whether or not you have any errors that Grbl may not like.
- Improved Feedback: Reports real-time position, what Grbl is doing, the g-code parser state, and stored coordinate offset values.
- Startup blocks: Auto-magically runs user g-code blocks at startup or reset. Can be used to set your defaults.
- Pin-outs: Cycle start, feed hold, and abort are now pinned-out to the A0, A1, and A2 pins. Just connect a normally-open switch to the pin and ground. That's it!
- More Robust G-Code Parser with Error Checking Feedback.
- And much more!
Grbl is licenced under the GNU General Public License and developed by Simen Svale Skogsrud and Sungeun K. Jeon.
Grbl is under-going heavy development and new features are being added all the time. The current development branch is called v0.9 edge, and these firmware builds are available for testing on the Downloads page. Please report any bugs to administrators to help make Grbl rock-solid!
Here's a short list of new features that are available or will soon be available on the new version:
- Feedrate Overrides: Real-time adjustment of the axes speed during a cycle. Tricky, but doable.
- Acceleration Independence: Each axis may be configured to have different acceleration values. This helps users with hugely different acceleration parameters for their axes. Will allow them to run their machines much faster without having to worry about losing steps.
- Maximum Axis Velocity: Similar to acceleration independence. Some axes simply cannot go as fast as others. Grbl will adjust speeds internally to always keep velocity below these limits.
- Soft-Limits: If homing is enabled, now users can tell Grbl where not to go. Grbl will monitor all movement internally and stop the machine for you if you tell it to go farther than you wanted.
- Jogging: Set up an easy interface for users to jog, but seems like people have already figured out how to do this easily. Not a high priority.