Drawing
Barcodes and QR codes
Create QR codes, Data Matrix, EAN, Code 128 and vision markers ready to machine, and choose a tool and an operation that keep the code readable.
Dusty creates barcodes (1D codes) and 2D codes (QR code, Data Matrix) ready to machine: the dark modules are cut out of the stock, then read as recesses (a darker bottom, or filled with resin or paint and then surfaced). Drawing › Create Barcode… (also in the Shapes menu of the toolbar) opens the Barcode window; the code is placed at the center of the view, on the active color: the operations of that color machine it. To change it, double-click it, or Drawing (or the context menu) › Edit Barcode…. Creating and editing are each a single undoable action; a code moves, rotates and scales like a shape, and is picked by clicking anywhere in its bounds. On the canvas, a code is always drawn filled.
Type
QR code, Data Matrix, Code 128, Code 39, Code 93, EAN-13, EAN-8, UPC-A, UPC-E, Codabar, ITF (interleaved 2 of 5, ITF-14 of shipping cartons), and the AprilTag and ArUco vision markers (the data is the marker number). A line under the choice recalls what the type accepts. A new code takes the type of the last one created.
Data:
- Raw content: the encoded text (web address, number, free text; several lines for a QR code);
- for a QR code, Wi-Fi (network name, password, WPA or WEP security, hidden network: a phone that reads the code joins the network) and Contact (name, phone, email, website: MECARD card) fill in the raw content;
- characters left for the chosen type (in red when there are too many): the capacity of a QR code depends on its error correction and on what is encoded (digits only, capitals, or bytes);
- Text evaluation: Normal, Date and time, Serial number or CSV merge, with the codes of variable text (
'SN-' 0dddd,%0…). Evaluated text shows what will be encoded at the next output; Offset is added to the project counter for this code (several codes on a sheet, different numbers). The counter, the CSV, auto-advance, numbered arrays and series machining are those of variable text; - Control characters:
\Ffirst (FNC1, GS1 Data Matrix),\G(GS separator),\n,\r,\t,\xHH(one byte in hexadecimal),\\(a backslash).
Settings depending on the type:
- Module size (2D code) or Narrow bar width (1D code, the other bars are 2 to 4 times as wide), and Bar height; the size of the code and its number of modules are shown under the title;
- Error correction of a QR code: L (7%), M (15%, the default), Q (25%) or H (30%) of the code can be missing or damaged without preventing reading. On wood, M or Q: a chip, a knot or a torn-out module are made up for. The higher the correction, the more modules the code has;
- Human-readable text under the code (1D codes): the data, check digit included, written under the bars and machined with them (the check digit of an EAN or UPC is computed if you do not give it);
- Square Data Matrix (checked by default); unchecked, a rectangular format when it is smaller;
- Add-on code gap: an EAN-13 or UPC-A followed by
+and 2 or 5 digits gets an add-on code, at this gap (in modules).
Validation
Data the type does not accept (letters in an EAN, accents in a Code 39, wrong check digit, too much data) shows the message that says what is allowed, and the code is neither created nor changed. The value of a variable code that becomes invalid at output (a CSV line with letters for an EAN) is reported by the operation, and that code is not machined.
Machining, specific to CNC. A reader reads the center of each module: every dark module must be cut out at its center, and no light module may be touched. The tool diameter against the module size decides. The window tells it for each operation that would machine the code (those that target it, or those of the active color for a new code): tool, module of the code as machined (scaling included), smallest module this tool can machine, and a verdict.
- Pocket, Module rows (the Barcodes and QR setting of the pocket, the default): each run of dark modules in a row, or each bar of a 1D code, is cut by straight passes along its long side, the tool staying half its diameter away from every edge. A tool as wide as a module is enough: one pass in the middle of the row (an isolated module becomes a round hole the size of the module); finer, several passes at the stepover. Smallest module = tool diameter (width cut at the final depth for a ball mill). A finer code is not machined: the operation reports an error (“Code unreadable with this tool…”) rather than cutting into light modules. All depth passes of a run are made before moving to the next, nearest one, lifting to the retract height in between.
- Pocket, Pocket the areas: the ordinary pocket of the merged dark areas, corners rounded to the tool radius. An isolated module is cut only if the tool fits in it with some room: smallest module = diameter + 2 × stock to leave + 0.02 mm. Below that, isolated modules stay standing and the operation warns.
- V-carve: sharp corners, the depth follows the size of each area; the flat tip of the bit must fit in a module. Limit the depth for a flat bottom in large areas.
- A profile, a chamfer or a fluting follow the outline of the areas without cutting them out: the code will not be readable, the operation warns.
Example: a QR code of 25 × 25 modules of 1.2 mm (30 mm wide) cut 0.6 mm deep with a 1 mm end mill, in module rows; Dusty checks it on the part simulated by the preview and on what the virtual CNC runs, where the code reads. Tips: a shallow depth (0.3 to 1 mm); modules of at least 1 mm on a 3018; a light, dense wood, or painted MDF surfaced afterwards; the quiet zone around the code (4 modules for a 2D code, 10 at the ends of a 1D code) kept free of any other machining.
Differences with MillMage: the code is not drawn with the mouse but placed at the center of the view, at the size of its modules; Aztec, PDF417, MaxiCode and the other MillMage types are not offered; error correction is a choice among four levels rather than a slider; machining in module rows and readability according to the tool are specific to Dusty.
This manual is also built into Dusty: press F1, or open the Help menu, to read the topic for what you are doing. A mistake, a missing answer? Tell us
Try it in Dusty, for free.
Free CNC milling software: design, toolpaths and machine control. Mac, iPad, iPhone, Windows and Linux.