Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [g-code]

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

Filter by
Sorted by
Tagged with
4 votes
1 answer
152 views

G-code for stationary extrusion

I have this electro-magnetic droplet (EMD) printhead from Cellink that allows for extruding droplets. I would like to extrude droplets at specific coordinates while the printhead is stationary, ...
Rishi's user avatar
  • 81
3 votes
2 answers
174 views

At what bed temperature is it safe to remove PLA prints?

I print with PLA with hotbed set to 60 °C. If I try to remove the print immediately after printing, the bottom part of the print might deform and keep the shape to which it was bent at the time of ...
tpimh's user avatar
  • 133
2 votes
1 answer
50 views

Does the E-Value always define the filament length extrusion in millimeters and/or does it directly give a stepper rotation?

I understood on a fundamental level that E-value (in G-Code) was the length of filament pushed in millimetres. i.e. E=10 is 10 mm filament to push (with a firmware like Marlin translating this value ...
Arthur Mamou-Mani's user avatar
4 votes
1 answer
225 views

Can I use Web Serial API to send G-code to my Ender 5 Pro?

I recently started experimenting with sending G-code to my printer via USB cable. I downloaded Printrun and it works great! However, I want to be able to do this from my web browser because the app im ...
jgphilpott's user avatar
3 votes
1 answer
207 views

How to disable a filament sensor?

I have a Lotmaxx Shark v2, which has developed the problem of constantly saying the filament has ran out when it hasn't. I've narrowed down the issue to the main board, and tried to work around the ...
Brad's user avatar
  • 185
1 vote
0 answers
44 views

Why does Consumed Filament vary between MAFX and G-code?

I am attempting to set up an MMU, the Mosaic Palette 3 Pro, with my Ender 3 (original version), with mods of note being Klipper firmware and the MicroSwiss Direct Drive NG Extruder. Accessory Mode is ...
Ian's user avatar
  • 11
2 votes
1 answer
73 views

Does Cura's M0 pause work to pause an Ultimaker 2+ (Extended) print?

I want to make a print where I swap color halfway through. I have tried doing something similar with a 2+ Connect before, and what the internet told me then was to go into Ultimaker Cura and modify ...
Arthur's user avatar
  • 141
0 votes
1 answer
104 views

Is printing from a micro SD card faster than printing over a USB cable?

I've been repeatedly printing the same G-code on two fairly identical machines (Creality Ender 3 V2) with the same settings, the only difference being one is printed from a Micro SD card and one is ...
Bob Ortiz's user avatar
  • 1,123
2 votes
2 answers
155 views

How do I add a custom motor driver to Marlin?

I've been digging through the Marlin code from GitHub, and I'm hoping that someone could direct me where to add a custom motor driver. I figure someone here already is familiar with the code and it ...
Tom Cumming's user avatar
2 votes
1 answer
358 views

How can I get Cura's slicer settings to save into the G-code in a way that Moonraker/Klipper can read them?

I've been using Klipper and Cura for a while now (somewhat new to 3D printing), and I notice whenever I import a new G-code file to Klipper, none of the Slicer settings from Cura display in the G-code ...
J H's user avatar
  • 77
0 votes
0 answers
54 views

Do OctoPrint or Marlin support "ironing" and additional printing states?

Currently, OctoPrint shows a printer state such as "Printing" as shown below: But is there is a way such as via a Cura script or OctoPrint Plugin to insert a special g-code and let ...
Bob Ortiz's user avatar
  • 1,123
0 votes
0 answers
154 views

Is there a way to set the installed nozzle size (and installed filament color) in the Marlin firmware (or OctoPrint software)?

In addition to this question: Is there a (common) way to embed used Slicer settings inside the G-code file?. I'm considering writing a Cura script and OctoPrint plugin because what I want seems to be ...
Bob Ortiz's user avatar
  • 1,123
1 vote
1 answer
200 views

Why are my Cura generated thumbnails showing in one flat color without any depth?

I recently started using this Slicer Thumbnails plugin in OctoPrint and added the steps to my Cura 5.5 slicer. However, my thumbnails are in one color, like this: And are not showing any depth as ...
Bob Ortiz's user avatar
  • 1,123
1 vote
0 answers
102 views

Adding a custom G-code to parse strings from `configuration.h` in Marlin 2.0.x

I'm working with Marlin 2.0.x firmware for a special device, I have added an extra axis to the firmware and it's working well, However, I'd like to implement a custom G-code command that can parse a ...
Elias Taalab's user avatar
0 votes
1 answer
215 views

Is there a (common) way to embed used Slicer settings inside the G-code file?

Non-G-code data can be embedded in G-code files, like embedded base64 encoded thumbnails. I was wondering, is there is a common way to include (at least the most important) slicer settings that were ...
Bob Ortiz's user avatar
  • 1,123
0 votes
0 answers
42 views

How to approximately change the density at a specific point in G-code

So let’s say I have the G-code file for 3D printing a cube, and I have a density function F(x,y,z). How would I change, in G-code, the density at each specific point in the cube, so it has the general ...
MeltedStatementRecognizing's user avatar
2 votes
2 answers
229 views

How do I move the head?

I have an Elegoo Neptune 4 Pro (love it), and I'm trying to set up a Raspberry Pi with a camera to take a photo every time a layer is complete (to build a time-lapse). This means I'll have to edit the ...
Jim's user avatar
  • 183
0 votes
0 answers
112 views

Communicating with a Marlin board via Javascript and Node SerialPort

I am trying to send G-codes to my Anycubic Kobra 3D printer running on a Marlin board. I have tried several serial communication software (terminal-based) and managed to send ...
leiz0r's user avatar
  • 1
1 vote
0 answers
153 views

G-code dialog sequence over serial interface

I'm writing a Python module that allows new tricks with printing - it already can produce G-code I can put into a file, send to the printer and print out. No problem with generating the correct codes ...
SF.'s user avatar
  • 412
1 vote
0 answers
16 views

No extrusion from G-code for cold extrusion application in soldering robot

My 3D printer is a Monoprice Maker Select v2 and the G-code is being written with VS Code locally and sent with OctoPrint (I have tried directly from the SD as well to no avail). I have macgyvered the ...
Robert Barbu's user avatar
2 votes
2 answers
104 views

Let the nozzle wait on the parking position

The Sovol SV04 has a "parking" position for the nozzles (i.e. X = -60), outside the bed area. The parking position has a small basket below to catch little pieces of the filament, and a ...
Mark's user avatar
  • 427
1 vote
0 answers
97 views

Monoprice MP Mini Delta adding glass bed

The bed adhesion is going from already mediocre to unusable. So I got my glass plate. With my previous printer I really liked printing PLA on a 60 °C alcohol-cleaned bed. The problem that I am having, ...
bask185's user avatar
  • 111
1 vote
1 answer
247 views

CURA prints some primer lines, but they don't seem to respect bed automatic bed leveling

So, the G-code preppended to my slicer output (by Cura itself) looks like this: ...
user1833028's user avatar
1 vote
1 answer
228 views

Splicing G-code issue

I'm trying to combine two different G-code files into one. The reason I'm doing this is that I'd like to print my part with different layer heights. I've managed to combine the two G-codes together, ...
Vandel212's user avatar
  • 367
3 votes
3 answers
439 views

Math in Cura start G-code expressions?

My printer's hot end heats up way faster than the bed. Still, it takes its sweet time, and Cura's default startup sequence: heat the bed, wait for bed to reach target temperature, heat hot-end, wait ...
SF.'s user avatar
  • 412
3 votes
2 answers
531 views

Drying filament with heated bed on Prusa - how to "bypass" safety timer?

On my Prusa MK3, I'm trying to make a G-code that only heats up the print bed and moves the Z-axis up and down a little bit every 20 mins to prevent the safety timer going off. This is what I have ...
Gart Hondo's user avatar
1 vote
1 answer
689 views

Illegal G-code when trying to print

I recently upgraded to Simplify3D version 5. With this version, I can now print over WiFi to my Qidi X-Pro. I run an Eero mesh network and the printer is about 6 feet from the router. I tried ...
rrirower's user avatar
  • 111
0 votes
0 answers
66 views

Add dwell time for reaching a certain low temperature to the added layer, G-Code for using ANSYS DED process

I want to add dwell time like the newly added layer has to cool down to a certain temperature and then the new layer has to be added and so on. Is there any command in G-code for adding dwell time ...
M.Srushanth Reddy's user avatar
0 votes
1 answer
69 views

How center the nozzle before start printing

I have a BLV Core XY, I'm trying to print different models, but the machine moves the center once it goes to start the process. This is my G-code of the beginning: ...
Pedro Miguel Pimienta Morales's user avatar
0 votes
0 answers
223 views

No filament extrusion using G-code from Ultimaker Cura

I am trying to print some objects using an Ultimaker 2+ Connect that is available at my work. It has a slicer with a web interface and that works fine, but it has some limitations that I am trying to ...
Rasmus Faber's user avatar
1 vote
0 answers
53 views

Flsun Q5 returns 'ok 0' as response to every command

I have a Flsun Q5 which I am trying to get to communicate with my python script. The script is this: ...
Broteen Das's user avatar
1 vote
0 answers
71 views

CNC Kitchens flow calibration script - too little extrusion

I created some G-code for my printer according to Extrusion System Benchmark Tool for Fast Prints. Everything seems normal and the G-code preview also looks normal. However, the blobs that are ...
Sungod3k's user avatar
0 votes
1 answer
466 views

Ender 3 Pro reads SD G-code file names but won't print them

I have updated my Ender 3 Pro to 4.2.7. The printer boots up, I can move X, Y, and Z-axis from the Prepare > Axis screens. The printer also correctly reads the G-code file names from an inserted SD ...
GaryE's user avatar
  • 1
1 vote
2 answers
72 views

Fail to upload G-code with UGS Plotter Software

Referring to a circle shape G-code online generator for my 2D printer at here, in which I created a 100 mm circle. I downloaded the G-code from the website and try to open it with UGS plotter but it ...
jessica smith's user avatar
1 vote
0 answers
94 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 ...
mfloris's user avatar
  • 111
2 votes
0 answers
3k 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?
chobok's user avatar
  • 253
6 votes
1 answer
294 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 ...
Joel Coehoorn's user avatar
3 votes
2 answers
168 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 ...
allardjd's user avatar
  • 511
2 votes
1 answer
227 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 ...
kaltorak's user avatar
2 votes
4 answers
729 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 ...
desperrrr's user avatar
  • 235
0 votes
3 answers
2k 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'...
COHEN JOHNSON's user avatar
3 votes
2 answers
10k 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 ...
RayW's user avatar
  • 71
0 votes
1 answer
64 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 ...
Buda's user avatar
  • 3
0 votes
1 answer
188 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 ...
B7th's user avatar
  • 65
2 votes
1 answer
2k 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 ...
Stephen Winnall's user avatar
3 votes
2 answers
2k 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: ...
Denis Itskovich's user avatar
2 votes
1 answer
823 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 ...
user avatar
2 votes
1 answer
1k 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 ...
Liam's user avatar
  • 679
0 votes
1 answer
3k 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 ...
JRP's user avatar
  • 1
2 votes
3 answers
556 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: ...
Stepan Novikov's user avatar

1
2 3 4 5