G-code is the common name for the widely-used computer numerical control (CNC) programming language defined in EIA-274.
Questions tagged [g-code]
117 questions
0
votes
1 answer
Sympy: Point evaluate=False after a point rotate
I am new to python and I'm trying to generate a g-code using python. I'm using sympy because I also need to do segments, intersections, and even convex hull.
Given an initial point(s) I need to rotate it(them) +/- 120 degrees from the center (0,0),…

MRGiacalone2005
- 13
- 4
0
votes
1 answer
Get the centerpoint of an Arc - G-Code Conversion
Herro
Its the First Time I'm posting Here
I'm New To C# But I'm Tying Something difficult
In the Illustration You Will Find
Coordinates Of a Arc
All Points Referenced From (0,0)
The X Axis is Horizontal
The Z Axis is Vertical…

DarkPh03n1X
- 600
- 1
- 7
- 17
0
votes
2 answers
Python regex - cleaning some Gcode
Ive been battling with this for a while and would appreciate a tip!
I'm stripping certain elements from a Gcode file before sending it to a 3d printer
My string is
f100G00X345.234Y234F345.5623I-2344.234J234.234F544
or similar and I watch to match…

jowan sebastian
- 253
- 2
- 11
0
votes
1 answer
Gcode to tell a RepRap 3D printer he is in the middle of the heat bed?
Is there a way to tell a RepRap 3D printer that he is in the middle of a heatbed using a specific gcode?

Arthur Mamou-Mani
- 2,303
- 10
- 43
- 69
-1
votes
1 answer
how to select all instances of value starting with specific character in sublime text
I have a gcode file with over 10000 lines in which each line has a specific z value.
It looks something like this:
Z0.9172 A-39607.857 F335.4365
Z0.9171 A-39609.173 F471.9932
Z0.9168 A-39611.023 F334.6937
Z0.9165 A-39612.873 F334.833
Z0.9162…

fred
- 485
- 2
- 7
- 23
-1
votes
1 answer
How to delete all instances of a letter followed by a number in a txt file (python)
I have a file in the following format:
G1 X113.901 Y66.179 E225.40813
G1 X114.212 Y66.611 E227.87255
G1 X114.396 Y67.11 E230.33708
G1 X114.452 Y67.78 E233.45031
G1 X114.057 Y71.888 E252.56566
It's from a slicer and I want to use it in a…

Palettenbrett
- 17
- 3
-1
votes
1 answer
Batch File that merges text files
I have a newbie question about batch files.
I have a CNC post that only lets me post one tool at a time.
I would like to have a batch file that merges all the text files in the post and puts them into one text file
the programmer can name the files…
-1
votes
1 answer
How can Javascript returns a string formatted as a gcode co-ordinate
function gcodeXY(source){
var s = source;
var f = s.split(",");
var r = f.join(" ");
//perhaps split source
return r;
}
How can Javascript returns a string formatted as a gcode co-ordinate?
The picture is the desired input and…

Simon
- 49
- 7
-1
votes
1 answer
Generating G-code on android device
Is there any provision or a method to generate the G-code of an image after we capture it from the camera in android phones? I want to control the CNC drawing machine via my android phone but the process is not fully independent since it requires me…

Omkar Jadhav
- 1
- 6
-1
votes
1 answer
How to use the value found in file for further calculations
I have wrriten this code with the great help from two stackoverflow users. It is the code that is supposed to extract value of filament used from the GCODE (a code for 3D printer to create objects). So far it is working good and the value is shown…

Bart
- 101
- 4
- 11