Questions tagged [g-code]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
110 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 ...
0
votes
0answers
72 views

What is the difference between M420 S and M420 S1?

I have been reading through the Marlin website about ABL and I see what appears to be conflicting information. At http://marlinfw.org/docs/features/auto_bed_leveling.html it states that running G28 (...
3
votes
1answer
56 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
94 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
311 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
126 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
54 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. ...
4
votes
2answers
139 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
62 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
22 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
97 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
581 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
205 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
847 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
296 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
38 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
190 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
213 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
373 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
295 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
257 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
162 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
103 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 ...
3
votes
4answers
317 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
629 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 ...
2
votes
1answer
91 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
50 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
2k 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
3answers
248 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
26 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
1k 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
420 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
1k 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
122 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
317 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
106 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
804 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
1k 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
705 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
210 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
763 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
619 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/...
7
votes
5answers
14k 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
87 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
175 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
407 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
1k 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 ...