Laser material test card generator
Find the right power and speed for a new material in one run. This makes a grid of squares at stepped power and speed with the values engraved beside them, as G-code for GRBL lasers or as an SVG layout.
Test card settings
Running the test
Use a scrap of the exact material, at least as big as the card size shown above, and focus the laser on it.
Set the range. For a 5–10 W diode on wood, 20–100% power and 1000–5000 mm/min is a good first card. For a 20 W+ laser, start faster.
Zero on the bottom-left corner of the scrap, run a frame with the laser off, then start. Stay with the machine.
Read the card. Pick the fastest square that gives the darkness you want: faster means shorter jobs and less charring.
How the card is laid out
Rows are power and columns are speed. The top row is the Power from value and the bottom row Power to; the left column is the slowest speed and the right column the fastest. Steps are spaced evenly, so 20–100% in 5 rows gives 20, 40, 60, 80 and 100%, and 1000–5000 mm/min in 5 columns gives 1000, 2000, 3000, 4000 and 5000. The speed of each column is engraved above it, the power of each row to its left, and the optional title along the top. Labels are single-stroke Hershey lettering at the label power and speed, so they stay readable even when the squares beside them are burned black.
With the defaults the card is about 72 × 67 mm: 5 squares of 10 mm with 3 mm gaps, plus a label column of about 10 mm and a label row of about 5 mm. Leave a few millimetres of scrap around that.
What the G-code does
The file starts with comment lines that repeat the rows and columns, then G21 (millimetres), G90 (absolute), M8 if air assist is ticked, and M4 S0 or M3 S0. Each square has its own comment, such as ; square 60% 3000 mm/min, so you can find it in a sender. In fill mode a square is a set of back-and-forth horizontal lines at the line interval: 10 mm at 0.1 mm makes 101 lines. Travel is G0, burning is G1 with the S value and feed on the first line of the square. S is power × the S value for 100%, rounded, so 60% of 1000 is S600. It ends with M5, M9 if needed, a move back to X0 Y0 and M2.
The time shown assumes every line runs at its full speed and travel at 6000 mm/min. With the defaults each square burns about 1010 mm of line, so a row takes 1010 × (1/1000 + 1/2000 + 1/3000 + 1/4000 + 1/5000) ≈ 2.3 minutes and the whole card a little over 11.5 minutes plus travel and labels. Short fill lines spend much of their length accelerating, so expect the real run to take longer, most of all in the fast columns.
Reading the result
- Engraving: pick the fastest square with the tone you want, then check it under a raking light. Squares that are dark but show raised ridges between lines need a smaller interval or a lower speed; squares that are glossy or cracked on acrylic, or sunken and sooty on wood, have too much energy.
- Compare along the diagonal. Energy per millimetre goes with power ÷ speed, so 40% at 2000 and 20% at 1000 put in roughly the same energy. If they look very different, the material is sensitive to how long the heat sits there, and the slower setting usually burns deeper and darker.
- Cutting: in Cut / score mode each square is a 40 mm outline per pass, and the speed range switches to 100–500 mm/min. Push each square: the ones that drop out cut through. Choose a setting one step slower or one pass more than the first that just made it, because sheets are never perfectly even.
- Write it down. Put the material and thickness in the Title, keep the burned card, and note the line interval (the title line shows it in fill mode).
When the card looks wrong
- Everything from one row down looks the same: the S value for 100% does not match your firmware. Check
$30in GRBL: if it is 255 and you leave 1000, every square at 26% or more runs at full power. - Square edges much darker than the middle, or the head stops briefly at each square: laser mode is off (
$32=0). Turn it on, or the head slows at each line end at full power. - The labels are missing: the Hershey font did not load, and the status line still says it is loading. Reload the page.
- The card comes out mirrored: the G-code puts X0 Y0 at the bottom-left of the card, X to the right and Y away from you. If your machine moves the other way, fix the axis direction in the firmware (
$3in GRBL), not in the file.
Limits: 1 to 15 steps each way (225 squares at most), squares of 2 mm or more, gaps of 0.5 mm or more, a line interval of at least 0.02 mm, and up to 20 passes in cut mode. Titles are plain ASCII, up to 40 characters.
Next: turn a logo into lines with image to DXF, make G-code from any drawing with SVG to G-code, or engrave a QR code.
Questions
What is a laser test card for?
Every material burns differently. The card engraves a grid of squares, each at a different power and speed, with the values engraved next to them. Pick the square that looks best and use its settings for the real job.
Does it work with LaserGRBL?
Yes. Download the G-code and open it in LaserGRBL (File → Open), Universal Gcode Sender, CNCjs or LightBurn's console. It uses millimetres, absolute coordinates and S values up to the maximum you type ($30 in GRBL, usually 1000).
I use LightBurn. Do I need this?
LightBurn has its own Material Test tool (Laser Tools → Material Test), which is the easiest route there. This page is for LaserGRBL and other GRBL senders, and for anyone who wants a printable or SVG layout.
Should I test with M3 or M4?
Use M4 (dynamic power) for engraving on a GRBL laser with laser mode on ($32=1): power follows the speed, so the edges of the squares don't burn darker. Use M3 if your firmware lacks laser mode.
How do I test cutting?
Choose Cut: each square becomes an outline cut at its power and speed, with the passes you set. The squares that drop out cut through; the slowest of those wastes the least time.
What line interval should I use?
0.1 mm (254 lines per inch) suits most diode lasers. Smaller intervals give darker, smoother fills but take longer. Match it to what you will use in the real engraving.