G-Code generator for milling a polygon

G-Code generator for milling a polygon

Here you will find the Polygon variant of the program.

The  program creates G Code in real time for the milling of polygonal shapes

Although Polygon suggests something like 5 or 6 sides,(maybe that is just me),  it is really any number of sides, like the word Poly implies.

This variant of the program covers

1 side (that’s drill). When I wrote this, I never dreamed it could do a Polygon with 1 side..

2 sides, (that’s a 2 pass line) Another surprise, something in my brain said the program would crash

3 sides, (that’s a triangle), and any other number of sides you want, also  including rotation. Please see the screenshot

Here is the matrix function using one sided polygon to create drill jobs

 Specs:-

Just 195 Kb.

G Code is compiled in real time after every change

No annoying “Run,Compile, Generate, Build, Save” or who knows what else cycle

Graphics reflect changes in real time

Jobs can be moved exactly with cursor keys pixel by pixel

Jobs can be rotated by cursor keys pixel by pixel

G Code is copied to the computer clipboard and can be pasted into a simulator  or milling machine directly

Jobs can be dragged with the mouse

Jobs selected by mouse movement over them

No annoying dialog boxes to click away, all messages displayed in a text box

4000 different jobs, (it is more actually, but computers don’t care how big numbers are, so 4000 sounds human)

Pockets- inside line outside line, on line, inward, outward,clockwise cut, counter clockwise cut

mm and inch scaling

polygonal pockets, rotation, square, triangular, line, n sides, drill

Bit width percentage use

Click here for a larger screenshot

CNC G Code Generator Polygon

 

Here is some sample code in metric, under this in inch. Please try this on your machine as an air cut before buying

N1 G21 G40 G80 G90
N2 G00 Z20
N3 F500 M03 S1200
N4 G00 Z20
N5 G00 X2 Y2 F500
N6 T1 M06 (2 mm)
N7 G00 X100 Y148 F500
N8 G01 Z-2 F250
N9 G00 X145,651 Y114,833 F500
N10 G00 X128,214 Y61,167 F500
N11 G00 X71,786 Y61,167 F500
N12 G00 X54,349 Y114,833 F500
N13 G00 X100 Y148 F500
N14 G00 Z10
N15 G00 Z20
N16 M09 M30
N17 (###### End job 1 ######)

 and here in inch

N1 G20 G40 G80 G90
N2 G00 Z1
N3 F12 M03 S1200
N4 G00 Z1
N5 G00 X2 Y2 F12
N6 T1 M06 (0,5 Inch)
N7 G00 X100 Y100,5 F12
N8 G01 Z-2 F8
N9 G00 X100,476 Y100,155 F12
N10 G00 X100,294 Y99,595 F12
N11 G00 X99,706 Y99,595 F12
N12 G00 X99,524 Y100,155 F12
N13 G00 X100 Y100,5 F12
N14 G00 Z0.5
N15 G00 Z1
N16 M09 M30
N17 (###### End job 1 ######)

You really do need a monitor with a large resolution to use this program. Cramming all these text boxes and buttons into this space requires 1600 by 900 pixels

The program runs in:-
Windows XP   (Requires DOT.NET framework 4.0, This must be installed to run the software, it can be downloaded from Microsoft for free)

Windows 7, 8, 10 (Requires DOT.NET framework 4.0, it may not be integrated in Windows 7 depending on update status)


Both versions are 32 bit for maximum compatibility.
A 1.6 screen resolution ratio is best (screen width / screen height e.g 1680/1050 is 1.6)
or things may look distorted.
The drawing area also increases with screen size.

The program may have bugs as it is impossible to test the G Code for every conceivable setup, so please check your code by doing air cuts or running it in a simulator beforehand.

 

Here is a link to an introductory video.

program basics

 

The program can be purchased here on the shapes overview  page which also includes Circle, Rectangle and arc

CNC G-Code Generator Shapes

 

 

Leave a Reply