Questions tagged [g-code]

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

Filter by
Sorted by
Tagged with
2
votes
3answers
92 views

Issue milling a circular contour with CNC – 3018 Pro

I have a 3018 Pro CNC and being trying cutting a contour of a simple circular part: G-code: ...
3
votes
1answer
49 views

Marlin firmware issues

So I'm working on building a Prusa i3 MK3 clone and all's gone well so far but when I make edits to the firmware and reupload it, the printer doesn't seem to be getting it. Like I changed the software ...
1
vote
1answer
63 views

Wait for click to continue

To help me with bed leveling my Ender 3 v2 (using stock Creality firmware, V1.0.2), I'm trying to write a G-code that will position the nozzle above each spring in sequence twice, after heating the ...
2
votes
1answer
92 views

Interpreting G-code to answer question about geometry of shape produced

I encountered the following question in a manufacturing course. ...
1
vote
2answers
70 views

Drawing simple circle in G-code [duplicate]

I thought I am not bad at Google, but simply I am unable to find a G-code for doing circular motion for nozzle cleaning. It is possible to write a simple circular motion in G-code?
2
votes
0answers
35 views

Custom slicing solution needed

So I have a printer that I'm prototyping right now, and it's a little different; the Y-axis is a rotary drum. To compare to a bed-slinger, instead of the surface traveling forward and backward, it ...
1
vote
0answers
43 views

M503 command is reporting "Maximum feedrates" with duplicate and empty values: M203 X200.00 Y200.00 Z5.00 E Y1000.00 Z100.00 E5000.00

I'm pretty stumped on this one. Investigating an issue I was having with an OctoPrint plugin, I've come to realize my M503 command is reporting duplicate and empty ...
2
votes
0answers
60 views

My printer does not execute any command over USB

I have a Tevo Tornado, it seemingly connects fine, it is recognised by the software and it turns on. Any command I send over USB is not executed, as if it's not registering them. I tried on Cura and ...
4
votes
1answer
226 views

My 3D printer checks axes home during print, often wrecking the print

My Tevo Tornado has picked up this habit along the way of checking axes during a print. (I say picked up because it didn't exhibit any problems when I got it. As far as I can tell the problem ...
3
votes
2answers
286 views

Building a program to convert LiDAR data directly to an STL or directly to G-code

Some people have figured out how to take raw LiDAR data and after going through multiple steps (using LAS tools, converting to digital elevation model (DEM), converting to an STL) getting an STL file ...
1
vote
1answer
75 views

G-code to make printer move around without actually printing

I have a Prusa i3 MK3S with the MMU on it. At my work, I'm creating a display case to advertise/show off the 3D printing we can do. I was thinking about putting the Prusa in the display case and ...
2
votes
2answers
72 views

Reverse the X-axis of a G-code file

I've got some sliced models that represent the right-side arms and legs of a robot. I'm really happy with how they printed, so now I'd like to print the left-side arms and legs. I was thinking it ...
2
votes
0answers
47 views

Bioprinter does not extrude Anet A8 Marlin

I have a modified Anet A8 that is supposed to print hydrogels (paper : Ultra-Low-Cost 3D Bioprinting, Kahl M et al. 2019). For this to work, we do not need any temperature-related settings, however, I ...
1
vote
0answers
25 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
70 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
40 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
253 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
699 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
22 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
75 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
22 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
343 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
360 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
247 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'...
7
votes
1answer
6k 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
129 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
46 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
352 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
81 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
300 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
957 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
207 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
88 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
817 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) ...
2
votes
1answer
168 views

Which slicer (Voxelizer or Cura) for Zmorph printer?

Can I use Cura generated G-codes in Zmorph 3D printer? Zmorph comes with its own slicing software (Voxelizer) but it only takes a 2D drawing as input and layer height is the only parameter that can be ...
3
votes
2answers
308 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
2k 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
893 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
46 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
913 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
87 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
231 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
1answer
573 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
518 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
139 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
364 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
283 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 ...
1
vote
1answer
625 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
636 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
48 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 ...