Help creating program to automate gcode to drawing

Help creating program to automate gcode to drawing

Anonymous
Not applicable
646 Views
5 Replies
Message 1 of 6

Help creating program to automate gcode to drawing

Anonymous
Not applicable

Hello, 

I am new to using lisp and I'm working on creating drawings from old gcodes for an automated punch machine. I will attach a file as an example of the gcode.

 

I would like a LISP program to be able to read the .TAP file line by line creating a drawing using the x and y values and the certain tool numbers. ex. T309 is a circle punch with a diameter of 0.188

There are also other lines of code such as G28 which is a line command with I being the distance inbetween punches J being the angle and K the number of punches.

 

I was just wondering if anyone knew of an existing lisp program that would be able to do this or of anyone has the expertise to help build one. Thank you in advance!

 

 

0 Likes
647 Views
5 Replies
Replies (5)
Message 2 of 6

pbejse
Mentor
Mentor

@Anonymous wrote:

..I would like a LISP program to be able to read the .TAP file line by line creating a drawing using the x and y values and the certain tool numbers..


This sounds interesting, tell you what, for us who dont speak CNC, can you please show us how the drawing supposed look based on the data from "804-BRNR BOX MAIN.txt file?

 

 

 

0 Likes
Message 3 of 6

Anonymous
Not applicable

For sure!

 

804-BRNR BOX MAIN.png

0 Likes
Message 4 of 6

pbejse
Mentor
Mentor

For us to better understand the data, is it possible to post a sample  in CAD format please? 

Will this help How to Generate CNC Code Using AutoCAD and AutoLISP ?

 

 

 

0 Likes
Message 5 of 6

Anonymous
Not applicable

Totally my apologies! 

0 Likes
Message 6 of 6

hak_vz
Advisor
Advisor

There is a lot of G codes, so you would have to give us specific ones that are used in your files.

Generally speaking it's not so complicate. One would have to remove all unnecessary codes  just retain data relevant to element geometry. So if you can provide more information like G codes and tools specifics .... this can be an interesting project for converting simple tasks. If you search the internet there are many programs for converting g codes to dxf, either free or commercial. 

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes