Introduction: 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.
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.