Questions tagged [g-code]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
20 views

How do you send G-code from a USB port with Python?

I'm working on a project for my masters where I'm trying to detect print errors using object detection and I want to be able to pause the printer when a potential fault is detected. However I can't ...
0
votes
1answer
17 views

Details of Marlin's feedrate calculation

I want to programatically generate G-code for a (Marlin-based) Ultimaker 2+ printer, and I have been looking at the Marlin documentation and working G-code examples generated by Cura. This has left me ...
2
votes
0answers
32 views

Using BLTouch on Y Axis instead of Z

Long story short, Y and Z axis on my printer are swapped because it is a belt printer. Currently, the BLTouch sensor only works on Z axis, so I need to figure out how to do it for the Y axis otherwise ...
1
vote
1answer
36 views

G2 / G3 command in Cura

I'm using Cura for my 3D printing (an ultimaker S5 printer) and in order to understand 3D printing I'm trying to learn G-code. I've noticed that even when the model is full of circles, the G-code is ...
0
votes
0answers
14 views

Maximum number of lines of G-code per second (Ender 3/Octoprint)

I'm writing a slicer to generate print paths based on two input fields: one describing the shape I need to be printed and the other describing the direction which I would like the nozzle to follow. ...
0
votes
0answers
22 views

Extruder motor not running when using G-code from PrusaSlicer with non Prusa printer

I just assembled an FLSUN QQ-S pro printer and successfully printed two models from the supplied SD card. Everything works fine. However, I tried slicing my own model using PrusaSlicer and although ...
0
votes
1answer
53 views

Order in a line command in G-code

I've started learning G-code for 3D printing and I'm quite confused. I'm using an Ultimaker S5 printer and the firmware is : 5.5.12 - 20200226-UltiBot Is there a difference between ...
1
vote
2answers
41 views

MINTEMP BED Fixed error when running consecutive print

I am using "Pretty PETG" along with PrusaSlicer's consecutive print mode. What I am noticing is that upon finishing the first print, the printer hits ...
0
votes
0answers
43 views

Is there a convenient GUI tool for configuring Marlin settings?

I am looking for a tool to configure various runtime settings of Marlin firmware (e.g. bed leveling) that would be accessible from a computer rather than from the LCD menu on the printer. In a ...
1
vote
1answer
67 views

How does G-code for belt bed printers work?

Are there any good resources on understanding how G-code/slicing for belt bed printers works? I'm told the upcoming Creality 3DPrintMill is being used with Blackbelt Cura, which seems to be a fork of ...
4
votes
1answer
32 views

G-code for activating material preset in Marlin

Is there a G-code command for calling up the material preset? I know PLA is set with M145 S0 H190 B40 F255: how do I activate S0,...
0
votes
0answers
139 views

Artillery Genius called: Error:Printer halted. kill() called and won't restart

I just tried a new slicer, because my old one won't slice an object. Everything worked fine, but when the print started, the printer tried to go outside of its range, and then the error occurred. <...
0
votes
0answers
59 views

Can't manage to force my print to standby while I insert a nut - Prusa Slicer and Tronxy XY2 pro

I use the Prusa Slicer on a Tronxy XY-2 pro which I believe uses RepRap firmware. I believe it uses RepRap firmware because I had to input it into the Prusa Slicer initialization questions, but I'm ...
1
vote
1answer
120 views

How does 3D printing over USB work?

In Cura, if you plug your favourite 3D Printer you will most likely get an option to Print via USB. If you have never heard of what I'm talking about, please see this video: ...
1
vote
1answer
68 views

How does wireless 3D printing work?

I was wondering how WiFi based 3D Printing works since I want to start an open source project and need some information on this. I have done some research, I have now an understanding on how the ...
0
votes
1answer
39 views

How to start a print in the center position after a change in parameters using M92 and M500 G-code

I have a Core XY Custom DIY Printer, but actually I have a problem with the measure in Axis X and Y. When a print a test cube with the measure 20 mm x 20 mm 20 mm, the object printed result with these ...
2
votes
1answer
65 views

Are there attempts to standardize G-code for FFF/FDM printers?

Rep-Rap project wiki contains information about different G-Code dialects for FFF/FDM 3D printers. I googled but couldn't find if there were any attempts in DIY community to standardize existing ...
0
votes
0answers
79 views

How to make Cura generate G-code with desired feed rate?

I am trying to calibrate maximum print speeds I can achieve on my printer. To do this I have created a large test-cube where I am only going to print the outer wall. I will use this to determine what ...
0
votes
1answer
64 views

Extruder spins for a few seconds after layer changes

Sometimes my Extruder will start spinning pointlessly fast and long. Youtube Video showing the problem This Issue only happens: When printer has finished a Layer and moved up to the next (right ...
4
votes
1answer
206 views

How to resume an unfinished project

I was printing a lid for a box in my Ender 3 pro printer. But I don't know why it stopped printing and moved aside when it does in finished printings. This happened at midnight and I didn't see it ...
0
votes
0answers
130 views

OctoPrint won't stop my print with a pause

Using the PrusaSlicer I discovered that we are able to insert a pause in mid print. I wanted to use such feature to insert a lens in my print so I don't have to glue 2 parts to make my magnifying ...
0
votes
1answer
69 views

Prevent raising Z-axis after homing

I've recently configured my Bigtreetech mini e3 v1.2, and I have every aspect of the printer running well except for the initialized homing sequence (the problem is sometimes small enough to where I ...
0
votes
1answer
33 views

How can I determine the current value of a #defined variable?

I previously set up my Ender 3 with a precompiled binary of Marlin that already had the correct X and Y offsets for the attached BLTouch. Now I'm compiling my own, and rather than measure for myself I'...
0
votes
3answers
74 views

How to make a printer bed vibrate using g-code (heated chemical stirrer)?

I was just about to start using my 3D printers heated bed to warm a chemical reaction in a container and was thinking it would be great to be able to get the bed stepping back and forth to stir the ...
2
votes
1answer
113 views

Temp Tower Setup Troubles — Slic3r (How do you format G-Code {if} statements?)

I watched with great interest this video: Temp Tower - Slic3r Gcode Placeholders - How To - Chris's Basement -- Jan 23, 2019 Chris Riley I found a model I'm happy with: Smart compact temperature ...
0
votes
0answers
47 views

Custom print end G-code not working

I'm the owner of a CR-10S Pro printer. I wanted to add some extra steps to the end of the printing process, like turning of the fans (noisy still, waiting for a new set of fans). I'm using ...
1
vote
2answers
86 views

How can I add an offset to the first layer to increase clearance?

My printer is calibrated for a certain clearance from the heated bed, which is chosen based on PLA. I would like to try to increase it for the first layer for PETG, so that adhesion is reduced. The ...
1
vote
1answer
42 views

Relative move affected by home offset

I set a home offset on my Ender 3 running Marlin firmware so that it starts printing from the corner of a custom build surface which doesn't cover the entire bed: ...
1
vote
1answer
85 views

Gobs of filament during initial movement of extruder

I have successfully printed a few models on my Maker Select V2 (Wanhao Duplicator i3) including 3D Benchy, but I'm seeing a consistent problem with a model that I've sliced with Cura. The extruder ...
4
votes
2answers
1k views

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: ...
1
vote
0answers
41 views

Command to have printer head move constantly

I am currently writing (software) and building (printing) a little control panel for my printer. I have some 2D joysticks that I want to use for X/Y and Z/E movement. The idea is that when I move the ...
1
vote
1answer
48 views

Changing final build plate position [duplicate]

I have a Monoprice Maker Select V2 (Wanhao Duplicator i3) on which I've installed a recent version of Marlin. The home position is at the front-left of the build plate. At the end of the print, the ...
0
votes
0answers
24 views

Trying to remove autolevel from G-code - offset from bed not correct

I’ve been having all kinds of trouble with really every part of the print procedure on my Lulzbot Mini 2 that comes before the actual extrusion starts. I think I can get around 90 % of my issues ...
1
vote
0answers
159 views

Error: 20, non stop, while connected to Pronterface: no G-code uploaded yet

I am trying to make a pen plotter from scratch. I hooked up two scanners to form X and Y axis, and using a CD drive to lift the pen. I connected everything to Arduino Mega 2560 and RAMPS 1.4 shield ...
4
votes
2answers
79 views

Converting an undirected graph to optimal G-code paths

I am developing an image to gcode program, that would recognize edges and generate corresponding G-code to be sent to a plotter. I was able to detect edges using the Sobel operator; then the edges are ...
0
votes
0answers
194 views

TFT35 and G-code preview

Is there a way to have the Bigtreetech TFT35 v3.0 show a G-code preview while printing - similar to the MKS TFT35?
2
votes
1answer
2k views

Cura's solution to replace corners->arcs to increase corner speed?

I realized that with current Marlin I cannot use Junction Deviation with Linear Advance, see ...
5
votes
1answer
5k views

What is the difference between M420 S and M420 S1?

I have been reading through the Marlin website about ABL (Auto Bed Leveling) and I see what appears to be conflicting information. At https://marlinfw.org/docs/features/auto_bed_leveling.html it ...
3
votes
1answer
2k views

Saving BL Touch settings

I have an Ender 3 Pro with a BL Touch. In my G-code should I add an M500 after the G29, to save the results to the EEPROM? I ...
1
vote
2answers
1k views

M502 will reset all configurable settings to their “factory defaults”, which settings are those?

From the M502 documentation page can be read that M502: Reset all configurable settings to their factory defaults. Please ...
2
votes
2answers
2k views

What is M73 Q17 S43 G-code command?

I know that M73 P19 means "Set completion progress to 19%", and I suspect that M73 R42 means "Set remaining time to 42 minutes", ...
4
votes
1answer
324 views

Cura 4.3.0 does not pause on Renkforce RF100 V2.2

Cura (version 4.3.0) has the ability to insert a post processing script to your print. I tried this for printing a key cover around my door key (similar to this question). I designed the STL file with ...
2
votes
1answer
132 views

G-code commands gets multiplied by random number [duplicate]

The G-code sent from Octopi to my printer gets multiplied at the end of every row. The corresponding code out of Simplify3D do not have that multiplication. This results in a always Max speed print. ...
5
votes
2answers
247 views

Writing G-code: Audible Alert at end of print

Often, the pre-generated G-code is enough for start and end. However, sometimes we want to have something different. In this case: how to generate an audible alert of something like 4 bleeps at the ...
5
votes
1answer
681 views

Help with my G-Code to change filament change mid-print

I'm using Ultimaker Cura, and I want to change the filament for a print that I'm attempting at layer 15. The problem I'm having is that I also need to use G-code to load and unload the filament with ...
1
vote
2answers
119 views

Raised shell edges on ocarina print. RF1000 sliced with Cura Engine

I am trying to print a 12 hole Ocarina I found on thingiverse. When printing I have to stop it around 25-30 layers because the edge of the shell is higher then the infill. G-Code of first 30 layers ...
0
votes
0answers
1k views

Sending G-code through USB serial doesn't work (Ender 3) [duplicate]

Recently I was gifted an Ender 3 3D printer. I'm trying to use a Raspberry Pi Zero W to send commands to the printer remotely, if I get this to work the idea is to instruct the RPi to pull G-code ...
7
votes
2answers
745 views

How to pause a print to insert something in a cavity using Ultimaker Cura?

I have a model that contains a cavity, into which I want to insert a piece of metal, so I can use a magnet to stick to the print. How can I introduce a pause into the G-code without manipulating it ...
6
votes
2answers
4k views

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?
5
votes
2answers
804 views

How to post-process G-code to make prints faster using splines and arcs?

Recently (in 2017) there was a paper that got some publicity by researchers who are using a B spline algorithm to reduce vibrations in 3D printers. But before them, a B Spline implementation seems to ...