Questions tagged [g-code]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
37 views

Ultimaker CURA moves XYZ at once during travel, how to avoid this?

I found out that my ancient printer from 2015 (Sharebot NG) stutters when Z is moved with X and Y simultaneously. The printer is one of those where the print head is fixed at the top of the build ...
  • 111
0 votes
0 answers
101 views

How can I send G-code to a Bambu Labs X1/X1C?

What are the ways that G-code can be sent to a Bambu Labs X1/X1C?
  • 203
6 votes
1 answer
132 views

Editing a G-code file for different material

I had a model I had originally printed in PLA, and then lost the STL... but I still have the G-code. Now I want to print it in PET-G. Do I need to do anything other than update the numbers on the M104 ...
0 votes
0 answers
8 views

Preheat bed and extruder for X mins to heat enclosure

A few times now I have gone to print something and I'm using ABS. I'd like to manually preheat the bed and extruder of my CR-10 Smart Pro in order to get my enclosure temperature up especially now ...
  • 1
3 votes
0 answers
25 views

How can a speaker or active buzzer be connected to the Arduino 2560/RAMPS 1.4 boards to provide alerts in response to M300 commands in the g-code

My Prusa i3 does not appear to have any sound device incorporated. I've read "Writing G-Code: Audible Alert at end of print" and it seems everything needed to implement audible alerts is ...
  • 308
1 vote
1 answer
48 views

Can I cancel a G26 that’s already underway?

I’m spending hours trying to get a bed mesh that gives me a reliable first layer. I’ve got CHEP’s concentric square pattern printing reliably, but real objects still fail, and the G26 test pattern in ...
2 votes
4 answers
278 views

Can I print multiple parts in a single G-code file?

I have 12 parts for a model I want to print but I would like to know if I can put all of them in a single G-code file and print that on its own. Would this affect the model in any way? I’m using PLA ...
  • 235
0 votes
1 answer
80 views

Does anyone know a site where you can download straight up G-code files?

Is there any known site where you can input your 3D printer's information and it will show you all G-code files uploaded to that site and would have a download button? If not, it's not a huge deal. It'...
0 votes
0 answers
21 views

Different direction for two extruders

I am building a 3D printer using 2 extruders which will mix and print fluid-like inks. Is it possible to let both extruders turn in opposite directions at the same time, that is in 1 line of G-Code? ...
2 votes
2 answers
3k views

Cura variables and initial G-code commands

Ender 3 Pro, PLA, temps 200 °C and 60 °C. I want to not heat the nozzle until after Auto Bed Leveling (CR Touch) is complete. I can do that in the start G-code, but by then, Cura has already heated ...
  • 41
0 votes
1 answer
38 views

Setting Heat Bed Height Manually Mid-Print?

So, I've gotten the G-code to work regarding the waiting 10 seconds as I wanted it to. However, does anyone know if there is any G-code that exists that will allow me to manually set the height of the ...
  • 3
0 votes
1 answer
78 views

G-code to get the 3D printer to shake resin bubbles off from a casting

While this is not directly 3D printing related, I intend to use my 3D printer (Labist's ET40) to shake air bubbles off of a resin casting. I printed parts, made a mould of them in silicon, then cast a ...
  • 55
0 votes
0 answers
27 views

Is there a way to generate recipes from gcode?

I'm confident that I've read that Slic3r can recreate recipes (sets of slicing parameters - like "print, printer, and filament/extruder") from the header and footer comments in a verbose ...
  • 2,362
0 votes
0 answers
438 views

How do you fix an "invalid mesh" on a CR-10 Smart 3D printer?

My Creality CR-10 Smart 3D printer has built-in auto bed levelling (ABL). It appears that it is cannot do anything if ABL is not set up properly. Setting up ABL entails creating a valid mesh. I am ...
3 votes
2 answers
659 views

Klipper: power on before homing

I'd like to force Klipper to perform power on (using M80) before homing. For this purpose I'm trying to override G28: ...
2 votes
1 answer
452 views

Only Z offset for BLTouch?

I'm having a hard time getting my Ender 5 Plus (I'm using stock firmware 1.70.2 BL) trammed and in the pursue of that I decided to check my probe offset values. As it seems there is only a Z offset ...
2 votes
1 answer
437 views

What Setting In Cura Determines The Value Of "G1 E-{switch_extruder_retraction_amount}" At The Beginning Of A Print?

I am trying to print the Chep calibration cube sliced in Cura on my new Sovol SV04 Dual Extrusion printer. When I print the model the extruder prints the wipe line on the left of the bed, moves to the ...
  • 669
0 votes
1 answer
1k views

G29 UBL G-code - every request levels bed? [duplicate]

Every time I issue a G29 command the printer runs through all its multi-point/probing bed leveling routine. Is this normal? or can I issue one ...
  • 1
2 votes
3 answers
301 views

Issue milling a circular contour with CNC – 3018 Pro

I have a 3018 Pro CNC and being trying cutting a contour of a simple circular part: G-code: ...
3 votes
1 answer
176 views

Marlin firmware issues

So I'm working on building a Prusa i3 MK3 clone and all's gone well so far but when I make edits to the firmware and reupload it, the printer doesn't seem to be getting it. Like I changed the software ...
  • 31
1 vote
1 answer
424 views

Wait for click to continue

To help me with bed leveling my Ender 3 v2 (using stock Creality firmware, V1.0.2), I'm trying to write a G-code that will position the nozzle above each spring in sequence twice, after heating the ...
  • 121
2 votes
1 answer
95 views

Interpreting G-code to answer question about geometry of shape produced

I encountered the following question in a manufacturing course. ...
1 vote
2 answers
527 views

Drawing simple circle in G-code [duplicate]

I thought I am not bad at Google, but simply I am unable to find a G-code for doing circular motion for nozzle cleaning. It is possible to write a simple circular motion in G-code?
  • 111
2 votes
0 answers
37 views

Custom slicing solution needed

So I have a printer that I'm prototyping right now, and it's a little different; the Y-axis is a rotary drum. To compare to a bed-slinger, instead of the surface traveling forward and backward, it ...
  • 21
1 vote
0 answers
186 views

M503 command is reporting "Maximum feedrates" with duplicate and empty values: M203 X200.00 Y200.00 Z5.00 E Y1000.00 Z100.00 E5000.00

I'm pretty stumped on this one. Investigating an issue I was having with an OctoPrint plugin, I've come to realize my M503 command is reporting duplicate and empty ...
2 votes
0 answers
156 views

My printer does not execute any command over USB

I have a Tevo Tornado, it seemingly connects fine, it is recognised by the software and it turns on. Any command I send over USB is not executed, as if it's not registering them. I tried on Cura and ...
  • 61
4 votes
1 answer
275 views

My 3D printer checks axes home during print, often wrecking the print

My Tevo Tornado has picked up this habit along the way of checking axes during a print. (I say picked up because it didn't exhibit any problems when I got it. As far as I can tell the problem ...
  • 61
3 votes
2 answers
714 views

Building a program to convert LiDAR data directly to an STL or directly to G-code

Some people have figured out how to take raw LiDAR data and after going through multiple steps (using LAS tools, converting to digital elevation model (DEM), converting to an STL) getting an STL file ...
1 vote
1 answer
213 views

G-code to make printer move around without actually printing

I have a Prusa i3 MK3S with the MMU on it. At my work, I'm creating a display case to advertise/show off the 3D printing we can do. I was thinking about putting the Prusa in the display case and ...
3 votes
3 answers
397 views

Reverse the X-axis of a G-code file

I've got some sliced models that represent the right-side arms and legs of a robot. I'm really happy with how they printed, so now I'd like to print the left-side arms and legs. I was thinking it ...
2 votes
0 answers
75 views

Bioprinter does not extrude Anet A8 Marlin

I have a modified Anet A8 that is supposed to print hydrogels (paper : Ultra-Low-Cost 3D Bioprinting, Kahl M et al. 2019). For this to work, we do not need any temperature-related settings, however, I ...
1 vote
0 answers
25 views

Odd behaviour of steady feedrate increase

For some weeks I noticed really odd behaviour on my OctoPi controlled Anet A8. I'm using an MKS Gen L board with TMC2208 on this and constellation worked for a year now. When starting a print, I ...
  • 11
1 vote
1 answer
307 views

Gantry crashing into bed after print

I've upgraded my Ender 3 Pro to the point where I'm causing myself problems, one of them specifically is this: My z axis drops down to the bed because of all the stuff hanging off it (added a bltouch ...
1 vote
0 answers
107 views

Receive M114 command while printing using Printrun

I'm working on a project for which I use the Printrun package to serial communicate my G-code to my 3D printer (Creality Ender 3, Marlin firmware). The idea is that I have an external button connected ...
  • 11
3 votes
1 answer
563 views

Edit G-code to change print order of multiple one-at-a-time print jobs

SUMMARY: I use a Creality Ender 3 and Cura 4.8 slicer. I need to print multiple objects 'one-at-a-time' (Cura allows this, that is fine) and I must specify the order in which each model is printed but ...
  • 43
1 vote
1 answer
2k views

How do I change Z safe homing coordinates in the G-code , not in Marlin

I bought a Vivedino T-Rex 3 not realizing it doesn't have continue after power failure. I am over it. What I usually do is keep the part away from the home position so if it crashes I can continue ...
  • 11
1 vote
0 answers
23 views

G-code pin state turns off

I am currently working on a short G-code to turn a LED light while moving through a specified path and then turning it off while moving to the next path. So I used ...
  • 11
1 vote
1 answer
140 views

GRBL with low feed rate not working

I have a cheap 3000 mW laser cutter that I'm trying to cut 3 mm black acrylic. I'm lowering the feed rate to try to get it to cut in one pass. I have the G-code for a small circle (16 mm) but it seems ...
0 votes
0 answers
26 views

Sending multiple commands to printer without overloading its command buffer [duplicate]

I am writing a python code for a 3D printer (Marlin). I'm trying to execute a movement that might be composed of multiple commands (G0). Unfortunately, sending all ...
2 votes
2 answers
948 views

First layer Z-offset in G-code

In slicer G-code is it possible to set the probe Z offset for the first layer only? For my stock E3 plate I find -4.125 mm best however for glass I need to go to -4.175 mm for the first layer to get ...
3 votes
1 answer
1k views

G-code wait for extrude command to finish

I have following G-code to prime the nozzle before start of the print. ...
  • 185
3 votes
2 answers
272 views

Use external sensor

I'd like to buy a 3D printer and use it as a "platform" for an external optical sensor. The idea is to mount an optical sensor on the Z-axis and to put a workpiece on the X-Y table. Now, I'...
  • 131
9 votes
1 answer
19k views

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/...
  • 32k
2 votes
0 answers
321 views

3DTouch: G-code to temporarily change probe points and Z home?

I am using a BLTouch clone (3DTouch), and with G28 and G29 in Simplify3D it auto-detects Z home right in the center of the bed ...
  • 21
0 votes
0 answers
122 views

Automatic leveling of the bed does not work

I am trying to run the G29 G-code for my 3D printer to automatically level the bed of the printer. Every time I try run the G-code my printer just beeps and nothing ...
3 votes
1 answer
1k views

Cura G-code Printer G-code settings vs. Extruder G-code settings

I am configuring my Cura G-code settings, and I'm not sure if the Printer G-code settings (printer tab of Machine Settings) should be the same as the Extruder G-code settings (extruder tab of Machine ...
1 vote
2 answers
135 views

Do printer controllers take inertia into account when interpreting G-code into movement instructions?

I've never built a 3D printer before, but I understand dynamical systems and control theory, and I imagine a lot of the distortion/inaccuracy that happens during the FDM process (especially at high ...
  • 111
1 vote
1 answer
550 views

Marlin firmware: move without auto bed leveling

I am working on a filament unload script. My current problem is that the script always does an auto bed leveling. I have two scripts to test this issue: ...
  • 133
2 votes
1 answer
2k views

Marlin firmware: unload filament with G-code

I have upgraded my ER-20 with a Bondtech dual gear feeder. It is not or hardly possible to load/unload filament manually with this feeder, so some .gcode is needed to do it. I wanted to implement ...
  • 133
2 votes
1 answer
448 views

G-code for 3-axis arc? GRBL

I see that arcs are done on a two-axis plane. However, I am curious if it is possible to move from an <x,y,z> position to <x',y',z'> ...

1
2 3 4 5