Questions tagged [g-code]
Questions about the human-readable machine language, G-code.
252 questions
1
vote
1
answer
175
views
What are these commands generated with Anycubic SlicerNext?
I bought a Kobra 3 Max, and the firmware in the printer is "grouchy" about accepting G-code files generated with Cura—even if I use the Ultimaker "Kobra 2" printer presets.
Here ...
2
votes
1
answer
171
views
Edit G-code in Octoprint to adjust temperature
I have a few G-code files uploaded to Octoprint for a project, where I will be printing many items of the same model, sometimes in different colors. I have some new filament for this project, in a ...
1
vote
2
answers
136
views
Why is it purging over the print?
I'm trying to print this pet ID in two colours.While I'm still going around my previous post I tried this code which lead to the results shown in the picture. On your left there are the two initial ...
2
votes
1
answer
180
views
Complete filament retraction when mid print filament change
I've tried to print in two colours avoiding M600 (my Ender 3 V1 won't recognize it). After reading, trying, and asking in other forums I still can't get it.
...
2
votes
1
answer
115
views
Z offset with Creality bed leveller
Been using my Creality Ender 3 Pro with a Creality auto bed leveler, for a few years now with the PrusaSlicer software, to slice.
I have had to manually drop the Z-offset by -1 mm on every print, to ...
0
votes
1
answer
385
views
Qidi Tech Q1 Pro throws error message when sending file to printer
I have a Qidi Tech Q1 Pro. When I send a file to the printer for printing, before it starts printing, the printer throws this error (...
3
votes
1
answer
109
views
How to calculate 'E' value for a pellet extruder?
I want to input a custom G-code to a large format 3D printer, which has a pellet extruder. Having done the same for a small-scale filament-based printer, I'm familiar with the analytical model to ...
0
votes
0
answers
49
views
How to stop the Tevo Tornado filament from oozing during the auto bed leveling sequence?
Based on the following Start G-code, I want the print bed to heat up to the material_bed_temperature first then do the rest of the G-code. However, it always heats ...
1
vote
1
answer
200
views
Is it possible to convert the first layer of the G-code to a 2D print so I can use a 2D printer for a quick size reference?
Is it possible to convert the first layer of the G-code to a 2D print so I can use a 2D printer for a quick size reference?
The G-code (or STL) already contains the exact sizes so I think it shouldn't ...
0
votes
0
answers
82
views
Printer homes X, Y then Z in the middle of the bed, but then sets the origin to the middle of the bed
I have a Creality CR10-S5. It homes the X and Y axes then homes to Z in the middle of the bed. The origin location is set at the front left of the bed. It homes great, but it also resets the origin ...
3
votes
1
answer
111
views
Levelling a portion of the bed at runtime using Marlin
I am using Marlin to control a PCB mill and figured this was the best place to ask.
I need to be able to level only a portion of the bed that is chosen at runtime. This is because I need to use a ...
1
vote
1
answer
102
views
Can slicers combine vase mode and non-vase mode in the same print?
I would like to combine a non-vase ('conventional'?) base with a vase mode upper portion of a print.
Reference project is a vase-mode Gridfinity 1x1 container; aiming for a 1x2 single compartment and ...
4
votes
1
answer
305
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, ...
4
votes
2
answers
11k
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 ...
4
votes
1
answer
144
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 ...
4
votes
1
answer
516
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 ...
3
votes
1
answer
1k
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 ...
1
vote
0
answers
68
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 ...
2
votes
1
answer
195
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 ...
0
votes
1
answer
418
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 ...
2
votes
2
answers
425
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 ...
2
votes
1
answer
752
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 ...
0
votes
0
answers
86
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 ...
0
votes
0
answers
387
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 ...
1
vote
1
answer
347
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 ...
1
vote
0
answers
252
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 ...
0
votes
1
answer
377
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 ...
0
votes
0
answers
88
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 ...
2
votes
2
answers
683
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 ...
1
vote
0
answers
445
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 ...
1
vote
0
answers
37
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 ...
2
votes
2
answers
181
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 ...
1
vote
0
answers
171
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, ...
1
vote
1
answer
385
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:
...
1
vote
1
answer
402
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, ...
4
votes
3
answers
676
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 ...
4
votes
3
answers
1k
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 ...
1
vote
1
answer
1k
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 ...
0
votes
0
answers
103
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 ...
0
votes
1
answer
106
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:
...
0
votes
0
answers
348
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 ...
1
vote
0
answers
78
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:
...
1
vote
0
answers
99
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 ...
0
votes
1
answer
855
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 ...
1
vote
2
answers
143
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 ...
1
vote
0
answers
131
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 ...
3
votes
2
answers
5k
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?
6
votes
1
answer
529
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 ...
3
votes
2
answers
247
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 ...
2
votes
1
answer
312
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 ...