Use case

Cable, wire and rack labels: flags, ports and equipment

Cable and rack labels name a cable, a port, a wire or a piece of equipment, so that the next person to open the rack or the panel knows what it is. This page covers the main kinds, the barcodes they typically carry, where the data comes from and how it reaches the printer. Your own cable plan decides what goes on them, and this page states no rule from a standard or a code.

What is built today: Status

The label at a glance

The numbers in the drawing match the list. Sample data is made up.

Schematic of a cable flag and a patch panel port strip with five numbered elements Two labels. The upper one is a cable flag: 1 the cable ID in large type, 2 the two ends of the cable as text, 3 the cable ID as a linear barcode with its text under it, 4 the wrap part on the left and the fold line that makes the flag. The lower one is 5 a strip of six short port labels numbered 01 to 06 with the patch panel name above them. The bars are decorative, not scannable. WRAP 4 CABLE ID CBL-04172 1 ENDS A: RK12-PP03-24 B: RK14-SW02-07 2 CBL-04172 3 PATCH PANEL A, PORTS 1 TO 6 01 02 03 04 05 06 5
Schematic, not scannable. A cable flag above a patch panel port strip, with made-up sample data. Your layout follows your own cable plan and your stock: nothing here is a required format.
  1. Cable IDThe identifier from your cable plan, in large text so it reads from the aisle.
  2. Both endsWhere the cable starts and where it ends, as text. Some cable plans print both ends so that a person can follow the cable without a lookup.
  3. Linear barcodeThe cable ID as Code 128, with the same text under the bars. A scanner reads it; nobody types it.
  4. Wrap and foldThe part that goes around the cable, and the fold that makes the flag. On flag stock the content usually appears on both faces so that either one reads. Where the fold falls is a property of your stock.
  5. Port stripA strip of short labels, one per port, with the port number and the patch panel name. Usually text only.

What is printed, and why

Five kinds of label come up again and again. A cable flag wraps once around a cable and its two ends stick together, leaving the printed part standing out like a flag. A wrap-around label goes around a cable or a conduit and is read where it sits. A patch panel or port label is a short label, or a strip of them, one for each port. A wire marker is a number or a short text on a single conductor, usually the same at both ends. An equipment label names a rack, a device, a power feed or a circuit in a panel, in a data center or an electrical room.

Telecommunications cabling has administration standards. TIA's announcement of the ANSI/TIA-606-D project, dated October 29, 2020, gives its scope as administration systems for telecommunications infrastructure within buildings, including commercial, industrial, residential and data center premises, and between buildings. That page announces a project in 2020: it is not the standard as currently published. According to its IEC web store page, ISO/IEC 14763-2:2019, on the planning and installation of customer premises cabling, lists documentation and administration among the aspects it covers. We did not read either standard, and this page states no requirement from them. If you follow one, take its identifier scheme and its label rules from it.

Marking rules for electrical panels and power equipment are set by the code and the safety rules that apply where you work, and this page does not cover them. BarcoderX prints the text and the symbols you supply on the stock you load. Whether a given label, material or wording meets a code, a standard or a site safety rule is for you, the maker of the stock and the owners of those rules to decide.

Which barcodes, and why

BarcoderX does not read barcodes, so scanning a cable or a rack is your scanner and your software. A port strip often carries no barcode at all: a symbol earns its place only when something scans it.

Barcodes on cable and rack labels, why they are used and the edition each needs
BarcodeWhy it is on the labelEdition
Code 128A linear barcode for a cable ID, a port or a rack code. Code 128 holds letters and digits in one line of bars. It suits data with no GS1 structure; see the barcodes page.Basic
Code 39A linear code that many existing readers expect. In ZPL, ^B3 adds the start and stop characters itself, and paired characters give full ASCII when the scanner has it enabled.Basic
Data MatrixA 2D symbol holds more data in a small area and carries error correction. It suits a small flag or a port tag.Ultimate
QR CodeAlso a 2D symbol. It can carry text, such as the cable ID or a reference to the record in your own system.Ultimate

A thin cable curves the label around it. Keep a barcode on the flat part of the stock where you can, and test the print with your own scanner on the real cable.

BarcoderX enforces quiet zones, snaps the module width to whole dots and reports the effective size. Symbol options

The data that fills it

Fields a cable or rack label needs, a sample value and where each goes
FieldSample valueWhere it goes
Cable IDCBL-04172Large text, element 1. The barcode, element 3, is a separate element that takes its value from the data too.
Both endsRK12-PP03-24 and RK14-SW02-07Text, element 2.
Port number01 to 24One short label per port, element 5.
Patch panel namePatch panel AText on the port strip, element 5.
Equipment or circuitRK12, PDU-B, circuit 14Text on an equipment label.

The values come from your cable plan, your documentation or your facilities system, which also issue the identifiers. A new run of 24 ports is a range, for example 01 to 24 on one patch panel, and it prints as one job.

The values come from objects, a DataTable, CSV, JSON or XML. Counters, masks and more than 100 built-in functions produce the values that change on every label. Templates and data

ZPL can also count on the printer: ^SN gives a field a serial value that the printer raises or lowers by a set step each time a label is printed.

Size and orientation

A template describes a label by its size and its elements, in millimeters, inches or dots. A flag, a port strip and a rack label are three templates at three sizes, and each element takes its value from the data. What a template is

Cable stock is often a long, narrow label, and the direction the printer feeds it decides which way the text runs on the stock. In a template every element carries its own rotation, at any angle, clockwise about its anchor, and the page orientation is a separate setting: 0, 90, 180 or 270 degrees. The label editor, a separate add-on, sets the size and the orientation in its page setup and has a rotate handle for an element. The design surface In ZPL, ^FW sets the default rotation of the fields that follow it, and ^PO turns the whole format by 180 degrees: coordinates then count in the inverted frame, and the setting stays until ^PON is sent or the printer is turned off.

Where the fold of a flag falls, how long the wrap must be for a cable of a given thickness and how a port strip is cut are properties of the stock you buy. You draw the label at the size of the stock and place each element where the stock needs it.

Why generate it from code

A cable job is a list: forty-eight ports, a dozen cables, each with its own ID and its own two ends. Typing them one at a time into a desktop label program is slow, and it is where a transposed digit gets through. In code, the label takes its IDs and its ends from your records instead of from someone typing them. That is server-side printing: a service builds the label and sends it to a printer, with nobody signed in, no browser open and no print dialog. Server-side label printing

How it reaches the printer

The printer commands are the same on both routes, and both run on infrastructure you operate.

  • Direct, from your application. The SDK packages send the printer commands from your own .NET process over TCP port 9100, serial, the Windows spooler, CUPS or USB. No API server and no agent is in the path.
  • Through your API server. Your application queues a print job through the REST API on your API server. A print agent on the printer's network collects it and writes it to the printer beside it. The agent only dials out, so the printer network needs no inbound port.

A run of labels can print from a program on the computer next to the printer, which is the direct route, or be queued on your API server when your cable-plan or documentation system runs elsewhere.

Delivery to the agent is at-least-once and the agent de-duplicates by job id, so a reconnect does not print a label twice. Print jobs honor an idempotency key, so a retried request does not queue a second label.

Stock is your choice. A cable label may sit in a warm aisle, on a cable bent tight, near cleaning solvents or in sunlight, and a panel label may have to outlast the panel. The material, the adhesive, how the stock wraps, how it holds up to heat or chemicals and any marking rule of your site are properties of the media you buy and of your site's rules: BarcoderX prints what you supply. Direct thermal media darkens under the heat of the print head and the print fades with heat, light and age; thermal transfer melts ink from a ribbon and lasts longer (see direct thermal and thermal transfer). In ZPL, ^MT tells the printer which one is loaded. Test the stock and ribbon on the real cable, in the real place.

How each element reaches the printer, as printer commands or as an image, is explained on the native or raster page.

Which edition covers it

EditionsBasic covers the linear (1D) and postal symbologies, including every GS1 DataBar variant; Ultimate adds the PDF417 family, other multi-row symbologies, every matrix (2D) symbology and GS1 composites, as set out on the pricing page.

For cable and rack labels, that means Code 128 and Code 39 are in Basic. A Data Matrix or a QR Code is a matrix (2D) symbology and needs Ultimate.

The ZPL behind it

Printer commands a label like this can use. Each page explains one command in our own words.

^BC
Prints a Code 128 barcode.
^B3
Prints a Code 39 barcode. The printer adds the start and stop characters itself.
^BX
Prints a Data Matrix barcode.
^BQ
Prints a QR Code barcode.
^BY
Sets the module width of the barcodes that follow.
^FW
Sets the default rotation of the fields that follow it.
^PO
Inverts the whole label format by 180 degrees, or sets it back to normal.
^SN
Gives a field a serial value that the printer raises or lowers by a set step each time a label is printed. It works on text and barcode fields.
^PQ
Sets how many labels print, how many print between pauses and how many times each serial number repeats.

What BarcoderX does not do here

BarcoderX prints the label. It does not trace a cable, follow it through a pathway or find out what is plugged into a port, and it does not connect to your network equipment: it renders and prints from the data it is given. It does not keep an inventory of your network, a cable plan or a record of which port connects to which: your documentation or infrastructure-management system does, and it calls the print.

BarcoderX does not read barcodes, so verifying a cable or auditing a rack is your scanner and your software. It does not choose your identifier scheme, and it does not check that the wording, the material or the color of a label meets a code, a standard or a safety rule.

New to the printer language? Read the ZPL guides and command reference.

Sources

TIA: call for interest on the Administration Standard for Telecommunications Infrastructure (ANSI/TIA-606-D)
An announcement of a new project, dated October 29, 2020; it is not the standard as currently published. We read the public announcement page: its title and its scope. The standard itself was not read. https://tiaonline.org/standardannouncement/tia-issues-call-for-interest-on-new-project-for-administration-standard-for-telecommunications-infrastructure/
ISO/IEC 14763-2:2019: Implementation and operation of customer premises cabling, Part 2: Planning and installation
Edition 2.0, published December 13, 2019. We read the public web store page: its title, its scope and its list of aspects. The standard itself was not read. https://webstore.iec.ch/en/publication/60185

What this page says about BarcoderX is this: a template describes a label by its size and its elements, and each element takes its value from the data; every element carries its own rotation and the page orientation is a separate setting; values come from objects, a DataTable, CSV, JSON or XML; it enforces quiet zones, snaps the module width to whole dots and reports the effective size; it prints directly or through your own API server and a print agent that only dials out; and it does not read barcodes or host anything for you. The description of cable and rack labels is general and ours. The two documents cited are public announcement and catalog pages, and this page states no requirement from the standards behind them.

Written by BarcoderX in its own words; not a publication of the bodies named above, whose documents are the authority. Read on November 15, 2026. Check the current edition before you rely on a detail.

ZPL and ZPL II are trademarks of Zebra Technologies Corporation. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.