People who code: we want your input. Take the Survey

Questions tagged [g-code]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
20 views

Odd behaviour of steady feedrate increase

For some weeks I noticed really odd behaviour on my OctoPi controlled Anet A8. I'm using an MKS Gen L board with TMC2208 on this and constellation worked for a year now. When starting a print, I ...
1
vote
1answer
29 views

Gantry crashing into bed after print

I've upgraded my Ender 3 Pro to the point where I'm causing myself problems, one of them specifically is this: My z axis drops down to the bed because of all the stuff hanging off it (added a bltouch ...
1
vote
0answers
19 views

Receive M114 command while printing using Printrun

I'm working on a project for which I use the Printrun package to serial communicate my G-code to my 3D printer (Creality Ender 3, Marlin firmware). The idea is that I have an external button connected ...
3
votes
1answer
89 views

Edit G-code to change print order of multiple one-at-a-time print jobs

SUMMARY: I use a Creality Ender 3 and Cura 4.8 slicer. I need to print multiple objects 'one-at-a-time' (Cura allows this, that is fine) and I must specify the order in which each model is printed but ...
1
vote
1answer
62 views

How do I change Z safe homing coordinates in the G-code , not in Marlin

I bought a Vivedino T-Rex 3 not realizing it doesn't have continue after power failure. I am over it. What I usually do is keep the part away from the home position so if it crashes I can continue ...
1
vote
0answers
21 views

G-code pin state turns off

I am currently working on a short G-code to turn a LED light while moving through a specified path and then turning it off while moving to the next path. So I used ...
1
vote
1answer
37 views

GRBL with low feed rate not working

I have a cheap 3000 mW laser cutter that I'm trying to cut 3 mm black acrylic. I'm lowering the feed rate to try to get it to cut in one pass. I have the G-code for a small circle (16 mm) but it seems ...
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
90 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
59 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
235 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
557 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
58 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
36 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 ...
3
votes
1answer
63 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
69 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
156 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
322 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
80 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
75 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
144 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
81 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
683 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
326 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
134 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
67 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
88 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
330 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
178 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
65 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
165 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
123 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
48 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
82 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
343 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
321 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
43 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
359 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
27 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
33 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
65 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
303 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 ...
1
vote
0answers
362 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
144 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
80 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
633 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
143 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
360 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: ...