Questions tagged [g-code]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
25 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
33 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
212 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
75 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
70 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
49 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
36 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
24 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
40 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
29 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
140 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
305 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
47 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
19 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
186 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
141 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
241 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'...
6
votes
1answer
2k 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
76 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
38 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
133 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
72 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
220 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
628 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
119 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
82 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
446 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
85 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
139 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
546 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
38 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
342 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
77 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
144 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
400 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
324 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
98 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
247 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
197 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
51 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
83 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
447 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
456 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
46 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
433 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
31 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
35 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
66 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 ...