Simple G-Code Generator

More
1 year 8 months ago #322095 by KrisJ
Replied by KrisJ on topic Simple G-Code Generator
I guess these old tools are not in use any more.
I want to generate G-code for a simple engravings using single stroke font. Could anyone point me in the right direction of some simple and free program/script that can do that?

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #322115 by tommylight
Replied by tommylight on topic Simple G-Code Generator
They should still work, but no guaranties, so:
-download them, make them executable and try to run them
-if they do not work, edit them using a text editor, not office, at the top change from python to python2, save, try to run them again
-if they do not work, edit and change from python2 to python3, save, try again.
In case they do run but error out or just close, try running them from terminal and see what errors they report.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #334161 by vicstransam
Replied by vicstransam on topic Simple G-Code Generator
I had to use "2to3" to try and convert them to Python3 and was able to get the GUI's to work on Bezel and a few others and then I filled out the the dimensions and hit "Write to Axis" but it always errored with "No percent sign or M2" and discarded the gcode file. I couldn't get them to write to the clipboard either. I couldn't get "Engrave" or "Bolt pattern" to run without "indentions or tab" errors.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #334162 by tommylight
Replied by tommylight on topic Simple G-Code Generator
"No percent sign or M2"
Means there is no % at the start and end of the gcode file, or M2 at the end.
See if those can be added as a header and/Or footer, or maybe as post processor?
All this is a stab in the dark from what i know using Inkscape where both above options work fine for LinuxCNC.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #334168 by vicstransam
Replied by vicstransam on topic Simple G-Code Generator
Yes, you are correct. The way the python script creates the gcode in this particular script is by using trigonometry to find the coordinates and writing to sys.stdout. I did find a preamble and postamble in the py file and I found the postamble was correct with an M2 so I think it has something to do with the way it sends the code to Axis.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #334191 by andypugh
Replied by andypugh on topic Simple G-Code Generator
is there any indication that the postamble is being sent?

Please Log in or Create an account to join the conversation.

Time to create page: 0.140 seconds
Powered by Kunena Forum