G-code for your Ender 3 laser module

A laser module turns an Ender 3 (or any Marlin 3D printer) into an engraver. GCodely creates G-code that fits this setup: the laser on the fan output, power 0–255, and travel moves with the laser safely off.

Made for Marlin with a laser on the fan output

Choose the preset “Marlin + laser on fan output (M106/M107, 0–255)”. If your firmware uses laser mode, switch to M3/M5. Power is set in percent and converted to the S value of your firmware.

Laser off before every travel move

On many Marlin builds M106 is not synchronized with motion, so the laser could stay on during G0 moves. GCodely switches it off explicitly before every travel move – enabled by default.

Your bed, your origin

Set the work area (e.g. 220 × 220 mm) and, if your printer homes outside the bed, the offset to the work area origin (e.g. X−10/Y−10). Every exported file is checked against these limits.

How it works

  1. Drop your logo, lettering or photo into the converter above.
  2. Select the Marlin preset and enter your bed size, origin offset and focus height.
  3. Choose a strategy, test on scrap material and export the .gcode for the SD card.

Guides

Frequently asked questions

Which power and speed should I use?
It depends on module, material and focus. A good starting point on plywood is 80 % power at 600 mm/min; then adjust after a small test piece and save the values in your profile.
Does it work with other Marlin printers?
Yes – any Marlin printer with a laser module, e.g. from Creality, Prusa-based machines or Anycubic. Work area, offsets and commands are configurable.
Do I need safety glasses?
Yes. Always wear glasses rated for your laser’s wavelength, never leave the printer unattended while engraving and provide ventilation.