What Is GRBL Gru
What Is GRBL Gru
3 What is GrblGru ? 3
5 Functions 9
5.1 CAM functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.2 STL functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.3 Slicer function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.4 DXF templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
6 System requirements 14
7 Download 14
8 Installation 15
10 Attachment 18
10.1 Available 3D machine models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
1 Motivation
Recently, I’ve been often asked to describe what GrblGru actually is. This document is now an
attempt to fulfill this request.
3 What is GrblGru ?
GrblGru is ...
I myself noticed only relatively late, which immense advantages the use
of virtual simulations offers for training purposes.
It would be a great pleasure to me if the program could be used, e.g. to
introduce young people to this great hobby. If changes or additions are
necessary, of course I am willing to do so.
4 The operating modes
GrblGru has 2 operating modes that basically differ:
• Simulations mode
for virtual 3D simulation of a CNC machine
• Real mode
for real control of a CNC machine with Grbl, TinyG or G2Core (currently in preparation)
operating system.
4.1 Simulation mode
This mode of operation is the original idea of the program, which was primarily intended to check ex-
isting G-code on a virtual machine and show possible collisions. This kind of early virtual verification
has become more and more prevalent in the industry in recent years because it saves valuable machine
time and uncovers errors in advance.
GrblGru is started and the mode switch is set to the ’Simulation’ position. This gives the following
situation.
GrblGru
visualization
There is no connection to a controller. The G-code, to be examined is loaded and the commands are
processed by the internal G-code interpreter. The loaded 3D model is animated accordingly.
Attached you will find the available 3D models of milling machines and lathes.
A special feature of the program, however, is that the user can also
import their own 3D models. This makes it possible to model each mill
or lathe as a simple model in GrblGru .
So if someone is a little familiar with 3D and interested in visualizing his homemade machine, I am
happy to assist.
4.2 Real mode
In this mode, GrblGru is connected to an Arduino or TinyG. The connection is made via the USB
interface, which transmits both the G-code commands to the controller and the information about the
current axis positions back to GrblGru . GrblGru uses this information to control the 3D model so
that the 3D model moves parallel to the ’real’ axes.
The main difference between the two controllers is that TinyG can also control a rotary axis, often
called the 4th axis, in addition to the 3 linear axes. Also there are already 2.5 A drivers on board, to
which you can immediately connect corresponding motors. For bigger motors, however, the signals for
controlling external drivers are also available.
GrblGru is started and the mode switch is set to the ’Grbl’ or ’TinyG’ position. This will give you
one of the following two situations.
USB
X
Controller
pulse- and.
Y
axis positions directions-
visualization signals
G-code Controlling
Gcode
G-code interpreter Z
X
Y
USB
Controller
visualization
axis positions
pulse- and.
Z
directions-
Gcode signals
G-code Controlling G-code interpreter
A
• Full 6 axis motion control - XYZ linear axes and ABC rotary axes
• Jerk controlled motion for acceleration planning (S curve 3rd order motion planning)
• USB is native on the ARM chip and runs 12 Mbps or 480 Mbps
• Advanced hardware abstraction layer for easy port to multiple ARM and non-ARM processing
environments
X
Y
USB
Controller
Z
visualization
axis positions
pulse- and. A
directions-
Gcode signals
G-code Controlling G-code interpreter B
• Grbl
https://github.com/grbl/grbl/wiki
• TinyG
https://github.com/synthetos/TinyG/wiki
• G2Core
https://github.com/synthetos/g2/wiki/What-is-g2core
4.2.2 Terminal mode
It is also possible to send individual commands for control via the two control windows. So you can,
for example also display or change the settings of the controller.
A real 3D editing is currently not yet available, but is a stated goal for the next future. :)
The generated G-code can then be transferred in control mode immediately to an Arduino or TinyG
connected via USB. It is also possible to load the G-code file into another controller.
GrblGru
CAM
visualization
SVG
DXF Intern G-code interpreter
G-code
GrblGru can be used to create STL objects from 2D data (DXF or SVG files). The 2D graphics can
either be extruded, ie ’pulled’ to a 2.5D object, or rotated around an axis to a rotating body. It is also
possible to generate parameterized spur gears or screw threads. The created STL object can then be
stored and reused anytime.
GrblGru
System
SVG
DXF
STL
GrblGru
System
STL
DXF
An example is the box generator, which, based on some input such as height, width and depth,
creates a Dxf drawing that can be used to create its ’box’.
The Dxf file can also be exported to reuse in another system. Of course, you can also use the internal
CAM to calculate G-code and send it to the controller in control mode.
There are some very simple templates such as rectangles and circles. However, there are also more
complex forms such as the box, the spur or the puzzle generator
7 Download
From my website at:
http://GrblGru.com
8 Installation
The setup is done by simply starting the installer file. The installation time is only a few seconds.
Figure 12: The dialog at starting the setup. The disclaimer must be confirmed.
Figure 13: Query the destination folder. I recommend keeping the suggested path
Figure 14: Answering this question with ’Yes’ deletes the working directory under ProgramData before
installation, which is equivalent to a basic installation. For users who are not knowledgeable, this is
recommended.
Ideas, suggestions for improvement and also criticism are always welcome.
Figure 22: BF 20
Figure 23: Shapeoko with measure probe