~SD Set Darkness

Print control, media and print mode ZPL tilde command

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.

Format ~SD##

~SD parameters

Parameters of ~SD
ParameterMeaningAccepted valuesDefault
##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 ^MD and ~SD accept that range.

0 to 30

Printed as 00 to 30.

The last permanently saved value.

~SD notes and gotchas

  • Interaction

    A ^MD value, when one applies, is added to the ~SD value. The ^MD entry says the same in the other direction.

    pp. 301, 333
  • 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 ~SD has to be sent in relation to a format.

    p. 333
  • Guide issue

    The Format line and parameter label say a two-digit number from 00 to 30, but the note below them shows ~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.

    p. 333

~SD example

example.zplZPL
~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.