Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [g-code]

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

2
votes
1answer
44 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
41 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
133 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
155 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
75 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
108 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
250 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
77 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 ...
0
votes
0answers
18 views

How to make sure we reach the total feedrate despite jerk

When printing a gcode at a high speed/feedrate of 12,000mm/m versus a slower speed we don't always notice a difference since the geometry does not always allow for the full speed to be reached due to ...
4
votes
2answers
555 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 ...
5
votes
2answers
112 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
14 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
281 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
129 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
237 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
96 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
111 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
102 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
435 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
892 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
524 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
67 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
380 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
162 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
526 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
587 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
4answers
8k 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
78 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
130 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
333 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
614 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
254 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
606 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
76 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
213 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
98 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
287 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?
7
votes
3answers
709 views

Run custom code between g-code commands?

I would like to be able to add custom commands/script to be executed during a print. For example I would like to write some software to take a picture check the print hasn't moved off the bead ...
4
votes
1answer
1k views

Apply X-offset to gcode (re-slicing not possible)

I am currently printing the QTrainer aircraft from 3DLabPrint on my Anet A8, via the supplied i3-compatible gcode files. So far, everything has printed fine, but the main undercarriage part tries to ...
10
votes
3answers
379 views

Platform support up to a certain Z height in Ultimaker Cura/G-code

Ultimaker Cura offers a platform support type of “touching buildplate” which enables the printer to only make a raft for parts of the object that should be touching the build plate. It also offers “...
4
votes
2answers
562 views

Weird underextrusion in vase mode?

It's my first time printing in vase mode, and I noticed my printer underextruding badly. The settings have not been changed from default vase mode settings in slicer, and earlier I was printing non-...
6
votes
2answers
187 views

Music from the printer?

Harking back to the days of "singing disk drives," I am wondering if anyone's written music to be performed on a 3D printer. Most of us have noticed in passing that the servo motors for X and Y drive ...
7
votes
1answer
2k views

Extruder motor does not turn

When printing from Cura on my laptop via USB, my extruder motor does not turn to extrude filament. However, when I use the "move axis" command in the firmware (on the little screen on the printer), it ...
3
votes
2answers
904 views

Any code to move up Z axis after finishing the printing?

Is the firts time that I saw this movement after the printing has finishig and causes the nozzle crashes to the printed part and I noticed due the part is 14x8 and the nozzle is to near and below to ...
1
vote
1answer
320 views

Make smooth curves in GCode

I am getting started with GCode, and I don't know all the commands. Is there a way to smooth a path between two points? I wrote a program which makes GCode from a silhouette. Problem is, when it looks ...
7
votes
2answers
1k views

E axis vs Z axis

When using G1 command in G-code, what is the difference between Z- axis and E- axis? I see ...
5
votes
1answer
38 views

Extra data appended to the Y values when issuing `M92` & `M500`

I am still trying to dial in my Anet A8. The Marlin firmware takes too long to scroll through the axis settings when I change them, so I use Repetier Host instead issuing ...
2
votes
2answers
1k views

Issues with direct g-code transmission via serial port

Model of the printer is unknown, got it as present, probably something generic cartesian on arduino mega and ramps boards stitched together and with marlin firmware. I've used accepted answer from ...
1
vote
1answer
555 views

SerialException: 'WriteFile failed ([Error 22]…' Printrbot Simple Metal using Cura 15.04.6

Disclaimer: I have read about this elsewhere but haven't found a solution. Printer: Printrbot Simple Metal with heated bed Slicer: Cura 15.04.6 (also tried Cura 3.1) Printing software: Whatever ...