~SD Set Darkness
Sets the print darkness to the given value on a 00 to 30 scale; the guide says it is the equivalent of the darkness setting on the printer's control panel.
~SD##
~SD parameters
| Parameter | Meaning | Accepted values | Default |
|---|---|---|---|
##desired darkness setting (two-digit number)p. 333 |
The darkness value to set. The guide's example for those printers writes a decimal value (8.3).FirmwareOn the XiIIIPlus, Xi4 and RXi4 the range is 0 to 30 in steps of 0.1, and the firmware lets |
Printed as 00 to 30. |
The last permanently saved value. |
~SD notes and gotchas
-
Interaction
A
pp. 301, 333^MDvalue, when one applies, is added to the~SDvalue. The^MDentry says the same in the other direction. -
Note
The command is described as the equivalent of the darkness parameter on the printer's control panel display.
p. 333 -
Note
The entry does not state where
p. 333~SDhas to be sent in relation to a format. -
Guide issue
The Format line and parameter label say a two-digit number from 00 to 30, but the note below them shows
p. 333~SD8.3, a decimal value, for three printer families. Both statements are on the same page. The record keeps the 00 to 30 range and states the decimal case as the printer-specific exception.
~SD example
~SD18 ^XA ^FO30,25^A0N,36,36^FDDarkness test^FS ^XZ
Sets the darkness to 18 on the 00 to 30 scale and then defines a one-line label. The ~SD line is sent ahead of the format.
Guides that use ~SD
BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.
Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 60, 190, 201, 204, 301, 333.
Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.
ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.