Questions tagged [g-code]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

Sending multiple commands to printer without overloading its command buffer [duplicate]

I am writing a python code for a 3D printer (Marlin). I'm trying to execute a movement that might be composed of multiple commands (G0). Unfortunately, sending all ...
2
votes
2answers
52 views

First layer Z-offset in G-code

In slicer G-code is it possible to set the probe Z offset for the first layer only? For my stock E3 plate I find -4.125 mm best however for glass I need to go to -4.175 mm for the first layer to get ...
2
votes
1answer
40 views

G-code wait for extrude command to finish

I have following G-code to prime the nozzle before start of the print. ...
2
votes
2answers
224 views

Use external sensor

I'd like to buy a 3D printer and use it as a "platform" for an external optical sensor. The idea is to mount an optical sensor on the Z-axis and to put a workpiece on the X-Y table. Now, I'...
3
votes
1answer
94 views

Using auto-bed leveling, do I need to initiate G29 before every print?

Various methods to scan the top surface exist to improve the bed adhesion to prevent prints to come loose from the bed during printing: e.g. BLTouch and clones or inductive and capacitive sensors/...
2
votes
0answers
53 views

3DTouch: G-code to temporarily change probe points and Z home?

I am using a BLTouch clone (3DTouch), and with G28 and G29 in Simplify3D it auto-detects Z home right in the center of the bed ...
0
votes
0answers
29 views

Automatic leveling of the bed does not work

I am trying to run the G29 G-code for my 3D printer to automatically level the bed of the printer. Every time I try run the G-code my printer just beeps and nothing ...
1
vote
0answers
24 views

Cura G-code Printer G-code settings vs. Extruder G-code settings

I am configuring my Cura G-code settings, and I'm not sure if the Printer G-code settings (printer tab of Machine Settings) should be the same as the Extruder G-code settings (extruder tab of Machine ...
1
vote
2answers
64 views

Do printer controllers take inertia into account when interpreting G-code into movement instructions?

I've never built a 3D printer before, but I understand dynamical systems and control theory, and I imagine a lot of the distortion/inaccuracy that happens during the FDM process (especially at high ...
1
vote
1answer
128 views

Marlin firmware: move without auto bed leveling

I am working on a filament unload script. My current problem is that the script always does an auto bed leveling. I have two scripts to test this issue: ...
2
votes
1answer
143 views

Marlin firmware: unload filament with G-code

I have upgraded my ER-20 with a Bondtech dual gear feeder. It is not or hardly possible to load/unload filament manually with this feeder, so some .gcode is needed to do it. I wanted to implement ...
2
votes
1answer
57 views

G-code for 3-axis arc? GRBL

I see that arcs are done on a two-axis plane. However, I am curious if it is possible to move from an <x,y,z> position to <x',y',z'> ...
1
vote
1answer
64 views

How to set the fully dynamic plotting area?

I am trying to combine CNC plotter with image processing. The goal is to detect the object and print on that object. My question is can we set the fully dynamic plotting area. For example: I want to ...
1
vote
1answer
85 views

How to change the extrusion value (E parameter) in G-code?

Before I ask you my question I want to summarize my problem. I am trying to build my personal 3D Printer and I can send the controller of my Extruder (Motor) only integer values. Slicer (Cura) ...
1
vote
1answer
46 views

3D printing G-code error

Can I use Cura generated G-codes in Zmorph 3D printer? Zmorph comes with its own slicing software (Voxelizer) but it only takes 2D drawing as input and layer height is the only parameter than can be ...
3
votes
1answer
61 views

Ender 5 hotend and bed cooling down while auto bed leveling

I have an Ender 5 with an auto bed leveling sensor (TRU-LEV 600). It is working fine, however, as the sensor probes the bed, the nozzle and the bed cool down and are not staying heated as it is ...
1
vote
1answer
257 views

I can't get G29 to run BLTouch on my Ender 3 V2

I installed a BLTouch probe on my Ender 3 V2 and am able to manually generate the probe matrix and store it in the printer memory, but I can't figure out how to get Cura to run the probe for every ...
1
vote
2answers
211 views

How do I set my Z offset?

After watching every possible YouTube video on the subject and reading any source available, and although I'm a PhD and quite computer savvy, I still can't make my Anet A6 (no probe) behave in terms ...
1
vote
2answers
35 views

Can carving templates be produced from G-code?

I am looking for a way to generate 2D horizontal templates for manually carving an object. My thought was to produce an STL of the model, generate the G-code, and then transform that into slices. ...
2
votes
2answers
89 views

How to interrupt long command with G-code?

I was able to connect my terminal program (Putty) to my 3D Printer (Creality Ender 3 Pro) and was able to send G-code commands to my printer and it obeys. Now suppose I sent long command like ...
-1
votes
1answer
54 views

Writing G-Code: length-optimized Test code

I want to write a couple of very simple G-code test cases in Marlin-Style to make sure my printer works properly. The idea is to test the movement system, then the end-stops, then the heating and ...
3
votes
2answers
66 views

Slicers and printers compatibility

I am a complete beginner so I apologise ahead for probably an obvious question. From what I understand up to now, slicer software basically takes a 3D model and turns it into instructions that say ...
0
votes
0answers
252 views

Ender 3 Pro - “Pause at Height” automatically resumes after a few seconds

I recently bought an Ender 3 Pro, and while I'm super happy with it, there's one issue I'm having with it. When I set "Pause at height" to a specific layer in Cura, the print will pause at ...
0
votes
1answer
90 views

Ender 3 Pro not interpreting G-code correctly?

I have an Ender 3 Pro and I have been able to get it to work quite well, I installed a 0.8 mm nozzle to try the Vase mode in Cura. I re-leveled the bed and when I tried to print, I got some very ...
0
votes
1answer
56 views

Why use G29 during a print?

Why do printers, like the Ender 5 Plus, execute the G29 routine prior to every print? I understand the purpose of this step when MANUALLY leveling the bed since you are presented with the 16 ...
1
vote
2answers
108 views

How to log each G-code line read from the SD card to serial on marlin firmware

I would like to log each line of G-code to the serial port as it is processed. Steps to achieve: the printer reads a file from the SD card each line it reads will be serial logged (this I can't ...
1
vote
1answer
89 views

Cleaning the nozzle every Xth layer G-code

I want to make a G-code script for Cura to clean the nozzle every Xth layer or every one minute? With Cura there is only start and end G-code, so there is no "layer change" G-code like ...
0
votes
0answers
43 views

Ender 3 PRO how to eject filament before start of print [duplicate]

Before I bought an Ender 3 PRO, I was using a Wanhao i3 plus, Wanhao was ejecting filament before the start of the print, I mean it is going to the left corner edge and was pushing like 5-10 mm ...
0
votes
0answers
74 views

How to get strain gauge status

I've searched anywhere but couldn't find any single post on how to get strain gauge status from my Creality CR-6 SE. What I'd like to do is, if after first layer the strain gauge doesn't get any input ...
1
vote
1answer
212 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 ...
1
vote
1answer
218 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
41 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
276 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
23 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
30 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
63 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
233 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
277 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 ...
3
votes
1answer
127 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
68 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
545 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
124 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
285 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
77 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
49 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
79 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
380 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
69 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
256 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
467 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 ...