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.

212 questions
31
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,401
  • 4
  • 18
  • 32
14
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
  • 609
  • 2
  • 7
  • 19
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.
  • 903
  • 4
  • 9
  • 21
13
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
  • 3,947
  • 2
  • 20
  • 40
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
12
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
  • 32,029
  • 10
  • 59
  • 135
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,600
  • 11
  • 30
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
  • 5
  • 19
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
  • 20,169
  • 10
  • 43
  • 92
10
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
  • 203
  • 2
  • 7
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…
9
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
  • 231
  • 1
  • 6
9
votes
1 answer

Extruder motor does not turn

When printing from Cura on my laptop via USB, my extruder motor does not turn to extrude filament. However, when I use the "move axis" command in the firmware (on the little screen on the printer), it seems to work fine, extruding plastic smoothly.…
Scott Saunders
  • 211
  • 2
  • 6
9
votes
1 answer

Turning off heatbed for the last few layers. Good idea or not?

My heatbed won't let go off the prints until it considerably cools down. The cooling process takes decent amount of time. I was considering putting the M140 S0 (sets heatbed temp to 0) somewhere near the end of the printing process, so that when the…
Tomáš Zato
  • 512
  • 6
  • 22
9
votes
1 answer

How do the E commands in G-code work, exactly?

I've tried looking online but haven't quite found the answer to what I'm confused about, exactly. Consider the following 3 lines of G-code: G1 X129.000 Y126.322 E7.90758 G1 X128.349 Y125.707 F7800.000 G1 X128.476 Y125.548 E7.92045 F1800.000 Does…
yeemonic
  • 193
  • 1
  • 2
  • 5
1
2 3
14 15