Persistent ZPL commands that set default values for subsequent fields

in Development


Here are the most common or widely used ZPL commands that have a lasting effect on the fields or actions that follow them; they continue to affect subsequent fields or actions until they are explicitly overwritten or the label format ends.

  • ^BY: Sets default values for the width of the narrow bar, the width ratio between the wide bar and the narrow bar, and the barcode height. These parameters apply to all barcode fields that follow the command until the next ^BY command.

  • ^CF: Sets the default font, which applies to all text fields that follow the command until the next ^CF command.

  • ^CI: Changes the international character set encoding. This affects how all subsequent text data is interpreted until the next ^CI command.

  • ^FW: Sets the default field orientation. This will influence the direction in which all subsequent fields are printed until the next ^FW command.

  • ^LH: Sets the label home position. This is the reference point for the coordinates in all subsequent ^FO (Field Origin) commands until the next ^LH command.

  • ^LL: Sets the label length. This defines the length of the label for all subsequent labels until the next ^LL command.

  • ^LS: Shifts down the label format fields from their defined y-axis locations. This affects all fields in the label format until the next ^LS command.

  • ^MM: Sets the print mode (like tear-off, peel-off, rewind, etc.). This mode stays in effect until the next ^MM command.

  • ^MU: Sets the units of measurement for the label map. This impacts all size and position commands until the next ^MU command.

  • ^PM: Sets the Print Mode. This mode stays in effect until the next ^PM command.

  • ^PR: Sets the print speed and darkness. These parameters stay in effect for all labels printed until the next ^PR command.

  • ^PW: Sets the print width. This defines the width of the printable area of the labels for all subsequent labels until the next ^PW command.

Each of the bulletpoints links to search for the respective command, where you can find additional information including the official ZPL documentation.

#zpl