Introduction: Fix for Image Not Showing in GRBLControl.

Picture of Fix for Image Not Showing in GRBLControl.

This is my first Instructable and is quite a simple fix for an annoying problem.

Step 1: Explanation.

Picture of Explanation.

When I first started using GRBLControl the image contained within the GCode file would not show up in the main window when opened. The code would appear in the bottom window but no image.

After looking around the net I found out why.

I'm using Inkscape with the J Tech Photonics Laser Tool extension to generate the GCode.

I needed to add the commands G0 Z0 to the top of the generated GCode file, re-save it and then import it in to GRBLControl. I had to do this every time I did a new job.

For example, original J Tech Photonics generated code for a simple square starts with:

M05 S0

G90

G21

G1 F800 etc.......

New edited code:

M05 S0

G0 Z0

G90

G21 etc........

Having to do this every time is a pain, so I decided to fix it so it adds the command automatically.

Step 1.

Go in to the Inkscape Extensions folder which is

C/Program Files (x86)/Inkscape/Share/Extensions and look for the J Tech Photonics Laser GCode files.

The file you need is called laser.py

Step 2.

Right click it and open it with Notepad.

Step 3.

Scroll down until you find the text in image above.

Just after the command G90 add G0 Z0 and click on the file menu and click save.

Done.

Now when it generates the code it will automatically add G0 Z0 to the file, and the image will show up in the GRBLControl window.

I hope I've explained it easy enough to understand.

Comments

StuartB44 (author)2016-05-03

Just as a side note.

Before saving the laser.py file you can also remove the M18 command underneath where it says 'footer' just below where you enter the G0 Z0 commands, then save it.

GRBLControl sees it as an unknown command and removing it does not affect how it works. It just stops it producing an error in the bottom right Console box.

StuartB44 (author)2016-05-03

You're welcome seamster.

seamster (author)2016-05-03

Very nice, thank you for sharing this :)

About This Instructable

1,271views

9favorites

Bio: My website is nothing to do with anything you would normally see here at Instructables, but it's the only one I have. :) It's ... More »
More by StuartB44:CNC Laser Engraver.Fix For Image Not Showing In grblControl When Using Inkscape With  305 Engineers GCode Generator Extension.Easy Way To Solder Wires To DVD Laser Diode.
Add instructable to: