The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [g-code]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
40 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. ...
3
votes
2answers
94 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 ...
4
votes
1answer
48 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 ...
0
votes
0answers
19 views

Changing printspeed at any point

I'm using Cura in Repetier Host and i'm looking for a Plugin like Tweak at Z but it has to work at any point in the model, so that i can "paint" the modell with colors and when i'm slicing it, the ...
1
vote
2answers
92 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
248 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 ...
4
votes
1answer
63 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 ...
5
votes
2answers
229 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?
6
votes
2answers
209 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 ...
3
votes
1answer
26 views

Standby hotend and bed heating with inactivity timer after print?

Is there any G-code command to turn off hotend/bed heating after a specified timeout? I'd like to edit my end G-code to leave them heated to a standby temperature, rather than immediately letting them ...
2
votes
2answers
86 views

How to write arcs directly in G-code?

How can I write G-code for a triangle without sharp tips? I want to generate the corners manually, rather than using a slicer to generate them, just to know how it is done.
7
votes
2answers
183 views

laser is engraving the negative space

I am using LightBurn to laser engrave on wood. I am just trying to print some letters. In the softwares preview the output looks correct. The black part is where the laser should burn and the red ...
6
votes
1answer
232 views

Add a laser module to Reprap Guru Prusa i3

I have a Reprap Guru Prusa i3 v2 3D printer. Here is a link to the 192 MB manual. And here is the link to the resources page for the Reprap Guru. Page 58 of the manual discusses electronics. I ...
3
votes
1answer
131 views

Simplify3D with error in preview?

I am trying to print a belt but when I preview it, the model doesn't fully render It isn't rendering the full model correctly. The model is rendering halfway but isn't fully which is why you can ...
5
votes
1answer
171 views

G-Code for resetting to 100% speed

I had problems printing parts and I figured out that my children have turned the knob of my Prusa i3 MK3 and set the printing speed to 112%. Since I'm not experimenting much yet, I'm not printing at ...
5
votes
2answers
160 views

What does a stand alone “T” index value do?

I'm using IdeaMaker for slicing my print objects. IdeaMaker start strings have a >T0< standing alone on one line and then >T1< on the next line. What does this accomplish?
1
vote
0answers
33 views

Slic3r - how to combine specific perl code with Slic3r SupportMaterial.pm? [closed]

I've got a specific perl support tree script that I would like to integrate into Slic3r. Does anyone know how to do that?
4
votes
1answer
85 views

Extruder retracts filament while moving from default start line to actual object location

I am new to 3D printing and recently got a second hand RF1000 and am busy calibrating it. For this I want to print a basic calibration cube. I noticed the print doesn't always start with enough ...
1
vote
1answer
188 views

Anet A8 ignores extruder temperature?

I don't understand what's wrong with my G-code. I have set the printing temperature to 195 °C but when I try to print, the target temperature is always 0 °C and printing never starts. I ...
4
votes
5answers
480 views

Can a single line of Gcode have variable extrusion rate?

Fairly long winded, but hopefully makes sense; I understand that G-code is executed line-by-line, and in the main printing phase each instruction is effectively go to location XY (assuming staying ...
1
vote
1answer
82 views

Boolean operation on two objects in Blender

I'm trying to draw a strange cup, with a kind of empty handle (actually, it's not a cup, but it looks like one). I need to print this object with a 3D printer, so I exported the model to 3D printing ...
1
vote
1answer
47 views

How to make sure we reach the total feedrate despite jerk

When printing a G-code at a high speed/feedrate of 12,000 mm/min versus a slower speed we don't always notice a difference since the geometry does not always allow for the full speed to be ...
5
votes
2answers
1k views

Move print bed to front at the end of a print rather than the back

I have a Monoprice Maker Select Plus, currently using Ultimaker Cura 3.6.0 with the default settings for a Wanhao Duplicator i3 Plus. Right now when a print finishes, the bed retreats towards the back ...
6
votes
2answers
174 views

Why did my printer's nozzle dig itself into my print?

I just completed my first print on my Ender-3 and when the print finalized itself the nozzle didn't elevate itself to clear away from the piece. I watched as the nozzle slowly lowered itself into my ...
0
votes
0answers
15 views

Marlin M42 command for setting GPIO pin [duplicate]

This is a duplicate of this post and i'm asking this again since it doesn't have a proper answer I am trying to use one of the GPIO pins of RAMPS to drive an external MOSFET which will give a 24V to ...
1
vote
0answers
863 views

Temperature Tower came out too good

I've switched to a PLA of a different color and wanted to figure out what temperature my nozzle should be so I printed a temperature tower. However, the towers came out perfect and the only stringing ...
3
votes
1answer
290 views

Marlin: Making any GPIO pin HIGH for a given time

Is there any way Marlin Firmware supports G-code that can make a pin "high" and keep it at that state for a period of time specified? I have made a machine, which runs on Marlin Firmware, that is a ...
2
votes
2answers
773 views

How to change temperature every 25 layers (or 5 mm) in Ultimaker Cura or G-code? [duplicate]

I want to print this heat tower calibration test. The instructions say to change the temperature every 25 layers. It also tells me to use G-Code command M104 Sxxx ...
1
vote
3answers
111 views

When dwelling G4, my printer is oozing, how can i stop that? [duplicate]

Here is the sequence of my Gcode, printed in mid-air: Print (E20) Retract (E-20) Dwell (G4 10,000) Move away (E0) Print (E20) See the path on the printscreen ...
2
votes
2answers
248 views

What defines the speed at which a motor is retracting and how can it be changed?

Given a Marlin firmware and a line of G-code such as the following: G1 F100 X50 Y50 Z0 E-10 What defines the speed at which the stepper motor associated with the E-value is retracting? It is my ...
0
votes
1answer
103 views

Describing G-code by start and end point versus end only

Will the two following lines of code behave differently given that the path that they describe is exactly the same (two segments)? Option 1 (describes separate segments giving the start and end ...
2
votes
2answers
669 views

G4 S20 vs. G4 P2000

Given the Marlin Firmware what is the difference between the following lines of code: G4 S20 and G4 P2000
5
votes
2answers
1k views

Is G-code read line by line?

I am trying to add the line G4 P4000 G1 F4000 E-50 to pause and retract the print in order for the printed line to dry (printing in mid air vertically). Does the above code work or should i skip ...
7
votes
1answer
947 views

Help with a Tool Change Script

So, I have a Raise3D Pro2, and I'm looking to perfect a tool change script for it, the goal of which is to reduce or eliminate the excess plastic that tends to build up on the nozzle when using the ...
3
votes
1answer
69 views

Using two feeders at the same time

I am using Prusa i3 MK2s with the first version of the multi-material add-on. As far as I understand, the slicer defined the used feeding motor using the T0-...
4
votes
2answers
555 views

Can G-code scripts be run automatically on inserting an SD card when using Marlin Firmware?

When running Marlin Firmware, is it possible to run G-code scripts/series of commands automatically when you insert the SD card? I'm running Marlin on a 3D printer board using an ATmega 2560 based ...
7
votes
1answer
190 views

What is the “Detailed format classification” of the ISO 6983 (G-Code spec)

For developing a CNC system, I am reading the "ISO 6983-1:2009". In it, there are several references to what they call "Detailed format classification" which I struggle to understand: A ...
9
votes
2answers
674 views

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 ...
5
votes
2answers
608 views

Multiple unattended prints using extruder to sweep build plate?

I read something the other day about a guy who found a way to knock over completed prints with the printer head itself, then slide them to the edge of the build plate, where they fall into a box/...
6
votes
5answers
12k views

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 ...
3
votes
1answer
80 views

Linking the 3D printing path coordinates to CAD for modelling

I was reading this research paper titled Sub-modeling Finite Element Analysis of 3D Printed Structures. In this, firstly, the author is trying to create a sketch for Engineering analysis using the 3D ...
4
votes
1answer
152 views

Laser Engraver with Smoothie, RAMPS 1.4 or AWC708C?

I have an old laser engraver that runs from Windows 98SE and DOS-6. Yup, still works fine but a pain as I regularly have to open it up and unplug and re-seat all the ribbon connectors. Fifteen of them ...
4
votes
1answer
379 views

How to sort G-code on SD card based on material (ABS|PLA|SBS)?

I have various G-code files stored at SDCard attached to my Prusa i3 MK2S printer. They are either for ABS, PLA or SBS. The more files I had on the SD card, the more I was running into trouble of ...
5
votes
2answers
918 views

Problem with 3D printer not accepting new print gcodes

Ok so I am trying to print a new fusion 360 file that I converted into an STL and then into gcode using cura and I got the gcode loaded onto the SD card and mounted into my Monoprice 3D printer, Maker ...
8
votes
2answers
331 views

What is wrong with my “disable sensor” gcode?

I have a spool of translucent PLA filament that doesn't work well with the filament sensor on my Prusa i3 MK3. The translucency trips up the sensor, making it think the filament ran out. I thought I'd ...
6
votes
1answer
748 views

Nozzle heats while autoleveling (or before)

When I'm auto-leveling my Anet A8 with Marlin firmware, the nozzle heats to 195°C during the leveling process, which leaves drops of filament. I checked the resulting G-code but makes no sense to me: ...
3
votes
1answer
78 views

Large 3D printer 10'x10'x4' - Need G-code to tell when it stops extruding and to stop machine

We use Simplify and have a large 10’x10’x4’ printer. We need G-code that when the extrusion stops the machine will stop and raise 10 mm as to not to burn the print, so we know where the extrusion ...
3
votes
1answer
255 views

How to execute firmware command from gcode

I wrote a command in Marlin firmware which changes Neopixel color based on extruder temperature. In my start G-code for I set the color to white. How to execute my above command from the end G-code ...
5
votes
2answers
99 views

How do you program a 3D printer?

I'm thinking about building my own 3D printer/Laser Engraver/CNC. Since all use a standard Cartesian axis I wanted to be able to swap out tool heads depending on the purpose. I have everything thought ...
4
votes
1answer
325 views

Software for 3d model to arc/curve gcode?

Is there software that can take a solid model, e.g. in STEP format, and generate gcode that includes arc/curve commands (G2, G3, G5) when possible?