Questions tagged [g-code]

Questions about the human-readable machine language, G-Code.

For questions related to the human-readable machine language, G-Code. It is recommended to state which slicing engine you are using as machine manufacturers can provide their own flavor of G-Code depending on the capabilities of the machine.

237 questions
36
votes
4 answers

Is there a G-code for waiting?

My printer has an auto-leveling feature that works by touching the build plate with the tip of the nozzle. I started using a BuildTak surface and BuildTak is damaged when you push a hot nozzle into it. So I edited the start G-code to run the…
Nir
  • 2,511
  • 8
  • 20
  • 32
16
votes
1 answer

What is the purpose of asterix (*) in Gcode?

Doing some low level monitoring, the following sequence is sent to the printer: N0 M106*36 N1 G28*18 N2 M107*39 This sequence just turns the fan on, homes the printer, then turns the fan off. Question: What is the purpose of the asterix/star/(*)…
Mtl Dev
  • 629
  • 2
  • 7
  • 20
14
votes
4 answers

Why do some models appear broken in slicing software?

In my slicing software (Slic3r) some of the vertices/walls of my model seem to have disappeared, so that the inside of the model - which should be solid - is visible, while the surface appears as a thin shell. Why does this happen? Is it still safe…
Tormod Haugene
  • 4,017
  • 3
  • 22
  • 40
14
votes
2 answers

What is a printer console/terminal?

I read that G-code commands can be sent through a console/terminal over USB. What is a console/terminal and how do you use that?
0scar
  • 35,554
  • 12
  • 65
  • 151
13
votes
3 answers

Cura: set z-offset

I'm having a Prusa i3 derivative printer with a capacitive sensor for the z-axis. It switches a tiny bit before the nozzle hits the print bed and hence needs a z-offset to be configured. In Slic3r I have configured the z-offset to -0.1 on the…
Thomas S.
  • 923
  • 5
  • 10
  • 21
12
votes
2 answers

What is G92 used for in G-code

On the reprap wiki it says using Znnn it sets a new axis position. But then it says "No physical motion will occur". What would the line G92 E0 be used for?
Keith Bybee
  • 417
  • 1
  • 4
  • 13
11
votes
3 answers

Platform support up to a certain Z height in Ultimaker Cura/G-code

Ultimaker Cura offers a platform support type of “touching buildplate” which enables the printer to only make a raft for parts of the object that should be touching the build plate. It also offers “everywhere” for any object that might be hanging…
K Mmmm
  • 1,702
  • 14
  • 33
11
votes
2 answers

E axis vs Z axis

When using G1 command in G-code, what is the difference between Z- axis and E- axis? I see all E, F and Z in G1 Z0.350 F7800.000 G1 E-2.00000 F2400.00000 G92 E0 G1 X96.753 Y95.367 F7800.000 G1 E2.00000 F2400.00000
ar2015
  • 213
  • 2
  • 7
11
votes
2 answers

Calculating the estimated print time of an already sliced file

I started to write an application that calculates the estimated total print time from the G-code file for an already sliced model. The program works and it's pretty accurate. It works as follows: It scans the entire G-code file to identify all of…
BackSlash
  • 605
  • 1
  • 6
  • 19
11
votes
4 answers

Simultaneous heating of extruder and bed at start of print

I notice that if I print from Cura without preheating the printer, it will first raise the bed temperature and then raise the extruder temperature. The G-code it generates is: M140 S55 ; set bed temperature to 55 C M105 ; report…
rgov
  • 363
  • 3
  • 4
  • 11
10
votes
2 answers

Are parentheses allowed within a G-code comment?

I am wondering if this piece of G-code is valid: G0 (Some comment (Its G0 command)) Y10 Z-5 I have tested this on my Chinese CNC machine and it strips out the comment and works flawlessly. The machine processes this as G0Y10Z-5 which seems like the…
Jan Vorisek
  • 241
  • 1
  • 7
10
votes
5 answers

Writing G-code : swiping at start of print

Ok, I did it, I ordered myself an Ender-3, a genuine 24V e3D hotend, inductive sensor and some better tubing/clamps to cope with the problem the CR10/Ender line has occasionally. But now I need to fix up my Cura for the machine coming in. The start…
Trish
  • 21,915
  • 12
  • 50
  • 101
10
votes
1 answer

Folgertech FT-5 : Does not seem to be reading G-Code correctly

I recently purchased an FT-5 from Folgertech and finished assembly about a week ago. I have yet to accomplish a successful print. It seems like either the file is not being sliced correctly, or that it is possibly reading the G-code incorrectly. It…
10
votes
1 answer

Using auto-bed leveling, do I need to initiate G29 before every print?

Various methods to scan the top surface exist to improve the bed adhesion to prevent prints to come loose from the bed during printing: e.g. BLTouch and clones or inductive and capacitive sensors/probes. In order, for the print head, to use this…
0scar
  • 35,554
  • 12
  • 65
  • 151
9
votes
3 answers

Run custom code between G-code commands?

I would like to be able to add custom commands/script to be executed during a print. For example I would like to write some software to take a picture check the print hasn't moved off the bead between layers. Does anyone know if any of the…
user802599
  • 666
  • 1
  • 5
  • 10
1
2 3
15 16