Quick Answer: The 'candle g code' refers to G-code commands used in 3D printing or CNC machining to control the extruder or tool in a way that creates candle-like filament drips or decorative patterns. Remember: G1 is for linear movement, and precise temperature and retraction settings prevent unwanted stringing.

What Does 'Candle G Code' Mean?

The term 'candle g code' describes a specific use of G-code in 3D printing where the nozzle is moved vertically while extruding filament, mimicking the shape of a dripping candle. This technique is not a standard command but a creative application of motion and extrusion controls.

G-code is the programming language that tells 3D printers and CNC machines how to move and operate. Each line of code corresponds to a specific action, such as moving the print head, adjusting speed, or controlling filament flow. The 'candle' effect is achieved by combining vertical movement with continuous extrusion at a controlled rate.

How to Create a Candle Effect Using G-Code

To produce a candle-like drip, you need to write or generate G-code that moves the nozzle straight up while feeding filament at a steady pace. This requires precise control over the Z-axis and extruder motor.

  1. Heat the nozzle to the recommended printing temperature for your filament—typically 200–220°C for PLA or 240–260°C for ABS.
  2. Moves the nozzle to the starting position just above the build plate (e.g., X100 Y100 Z0.2).
  3. Begin extruding filament slowly while simultaneously increasing the Z position.
  4. Use a command like G1 X100 Y100 Z5.0 E0.8 F1200, where E controls extrusion, Z moves vertically, and F sets the feed rate in mm/min.
  5. Stop extrusion and retract filament once the desired height is reached.

The key is balancing the extrusion rate (E) with the vertical speed (F) so the filament forms a smooth, continuous column. Too fast, and the filament breaks; too slow, and it piles up.

Where People Go Wrong With Candle G Code

Many attempts at candle effects fail due to incorrect retraction settings. If retraction is too strong or happens too soon, the filament snaps before forming a drip. If retraction is disabled or too weak, stringing occurs across the print area.

Another common mistake is using the wrong temperature. If the nozzle is too cool, the filament hardens too quickly and breaks mid-drip. If too hot, the filament sags or blobs. Always test on a non-printing area first.

Speed mismatch is another issue. A feed rate that’s too high for the extrusion amount creates thin, wispy strands. A slow feed rate with high extrusion causes thick, lumpy columns. A balanced F value between 600 and 1800 mm/min usually works, depending on the printer and filament.

Signs Your Candle G Code Is Working

  • A smooth, continuous filament strand rises vertically without breaking.
  • The base of the 'candle' adheres cleanly to the build surface.
  • No stringing or oozing occurs from the nozzle after the move.
  • The filament cools uniformly and holds its shape.

If the filament droops or bends, cooling may be insufficient. Enable the part cooling fan at 70–100% during the move. If the strand breaks, increase the extrusion amount (E value) or slow down the Z movement.

When to Use Candle G Code in Practice

This technique is primarily used for artistic prints, custom decorations, or nozzle cleaning routines. Some users run a candle move at the start of a print to clear old filament from the nozzle—a process known as 'priming' or 'ooze blooming.'

In multi-material prints, candle moves can help clear transitions between filaments. However, this should be done over a designated wipe zone, not on the print itself.

It’s also used in calibration tests to observe extrusion consistency and retraction behavior. By analyzing the shape and continuity of the 'candle,' you can fine-tune settings like flow rate, temperature, and retraction distance.

Can I Use Candle G Code on Any 3D Printer?

Yes, as long as your printer accepts standard G-code and has independent control over the extruder and axes. Most consumer FDM printers support this through firmware like Marlin, Repetier, or Klipper. Check your printer's documentation to confirm G-code compatibility.

Does Candle G Code Damage the Nozzle?

No, not when done correctly. However, repeatedly pulling molten filament without support can strain the hot end if the filament hardens in unwanted places. Always retract and wipe the nozzle after the move to prevent clogs.

How Do I Stop Stringing After a Candle Move?

Ensure retraction is enabled and properly configured. Use a retraction distance of 1–6 mm (depending on your extruder type) and speed of 25–45 mm/s. Also, enable combing mode in your slicer to avoid unnecessary travel moves through open air.

Can Candle G Code Be Automated in Slicer Software?

Yes. Most slicers like PrusaSlicer, Ultimaker Cura, or Simplify3D allow custom G-code insertion at specific layers or events. You can add the candle move to the 'Start G-code' or 'Before Layer Change' scripts. This ensures it runs automatically at the right time.

Always monitor the first few attempts. Stay with the printer and be ready to pause if the filament jams or the nozzle collides. Never leave a 3D printer unattended while it’s running any custom G-code, especially during experimental moves.

If you're using this for decoration, consider the filament type. PLA produces clean, brittle drips that hold shape well. PETG is more flexible and may sag unless cooled quickly. ABS requires an enclosed chamber to prevent warping but can create smooth, glossy columns.

To repeat the effect consistently, save your working G-code snippet in a text file. Label it with the printer model, filament type, and settings used. This makes it easy to reuse or adjust for future projects.

Remember, G-code is case-sensitive in some systems. Always use uppercase G, X, Y, Z, E, and F. Lowercase letters may be ignored or interpreted as comments.

Finally, clean the nozzle after using candle moves. Leftover filament can harden and block future prints. Use a brass brush while the nozzle is warm to remove residue safely.