Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›All TSPL commands›DIRECTION

DIRECTION — Print direction

Sets media exit direction and mirror mode. A device setting; the preview shows the format's own coordinates.

Engine status: Parsed, not rendered

The engine recognises the command and skips it: it is a DEVICE setting and does not change the image on the media. Your label still parses cleanly.

Syntax

DIRECTION n[, m]

Example

SIZE 100 mm, 150 mm
GAP 3 mm, 0 mm
CLS
DIRECTION 1
PRINT 1

Open this example in the preview →

Open the validator →

Parameters

ParameterMeaning
nMedia exit direction; a device setting, not applied in the preview
mOptional mirror mode; a device setting, not applied in the preview

The same job in other languages

ZPL equivalent: ^PO · EPL ZT · EPL ZB · Language comparison

All TSPL commands

SIZE · GAP · REFERENCE · CLS · TEXT · BARCODE · QRCODE · BOX · BAR · BITMAP · PRINT · DENSITY · SPEED · OFFSET · SET · CODEPAGE · BLINE

All TSPL commands