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›ZPL Command Matrix›^FE

^FE — Field Concatenation

Builds field data from other numbered fields: inserts a whole ^FN field or a substring of it into a ^FD.

Syntax^FEa
In Labelixa's previewDrawn in the preview

What it does

^FE applies only to the ^FD that immediately follows it. Inside that data #n# inserts the whole content of field ^FNn, and #n,a,x,y# a part of it: a is f (count from the start) or b (count from the end), x the starting position (1 = first or last character; 0 or negative ignores the insert) and y the number of characters, capped at what is available.

The guide lists the ZD421C, ZD421D, ZD621D, ZD621T, ZT411, ZT421, ZT510, ZT610 and ZT620 as supported printers.

In the preview

Labelixa's preview draws this command.

Example

^XA
^FO50,50^A0N,30,30^FN2^FDField FN 2 Data^FS
^FO50,100^A0N,30,30^FE#^FD#2,f,1,5# / #2,b,1,4#^FS
^XZ

The second field prints "Field / Data": five characters from the start of ^FN2 and four from its end.

Parameters

ParameterDescriptionValuesDefault
aconcatenation character; anything except the current format and control prefixesASCII#

Source

Zebra ZPL II Programming Guide (P1134473-11EN Rev A), page 191. Zebra guide page →

^FN · ^FD · ^DF · ^XF

ZPL commands list and reference →

Try ZPL in the online viewer