Labelary Documentation
Labelary Documentation
Most of the unsupported commands do not affect label formatting (e.g. printer serial communication commands and printer hardware configuration commands). Unsupported
commands do not prevent rendering, they are merely skipped.
= Supported
= Unsupported
^A@ orientation, height, width, path Use font name to call font
^B0 orientation, magnification, eci, size, readerInit, symbols, id Aztec bar code (alternate command: ^BO)
^B7 orientation, rowHeight, security, columns, rows, truncate PDF417 bar code
^BB orientation, height, checkDigit, columns, rows, mode Codablock bar code
^BC orientation, height, line, lineAbove, checkDigit, mode Code 128 bar code
^BK orientation, checkDigit, height, line, lineAbove, startChar, stopChar ANSI Codabar bar code
^BM orientation, checkDigitType, height, line, lineAbove, checkDigit MSI bar code
^BO orientation, magnification, eci, size, readerInit, symbols, id Aztec bar code (alternate command: ^B0)
^BQ orientation, model, magnification, errorCorrection, mask QR Code bar code (model 2 only; no mixed mode or Kanji)
^BR orientation, type, magnification, sepHeight, height, segWidth GS1 DataBar (RSS) bar code
^BT orientation, width, widthRatio, height, pdfWidth, pdfHeight TLC 39 bar code
^BX orientation, height, quality, columns, rows, format, escape, ratio Data Matrix bar code (quality 200 only)
^CI charset, src1, dest1, src2, dest2, ... Change encoding (charsets 0-13, 15, 27, 28, 31, 33-36 only)
^CM bAlias, eAlias, rAlias, aAlias, multiple Change memory letter designation
~DB path, orient, height, width, ascent, space, glyphs, copyright, data Download bitmap font
~DY path, format, extension, totalBytes, rowBytes, data Download objects (extensions G, B, P and T only)
^FM x1, y1, x2, y2, ... Field multiple origin locations
^HR prefix, suffix, start, end, antennaSelection Calibrate RFID tag position
^JI path, console, echo, memory Start ZBI (alternate command: ~JI)
^JJ opMode, appMode, signalMode, errMode, reprintMode, ribbonMode Set auxiliary port
^ND device, res, ip, mask, gateway, wins, timeout, secs, arp, port Modify network settings
^NS res, ip, mask, gateway, wins, timeout, secs, arp, port Modify wired network settings
^RA fieldNumber, format, retries, motion, byteType Read RFID AFI or DSFID byte
^RB totalBits, partition1, partition2, ... , partition16 Configure RFID EPC data structure
^RF operation, format, passwordOrBlock, bytes, memoryBank Read or write RFID data (write operations only)
^RL lockAction, p1, p2, epcOp, userOp Lock and unlock RFID tag memory
^RQ format, chipType, option Write RFID EPC data and passwords
^RS type, pos, voidLen, labels, onError, signal, deprecated, voidSpeed Configure RFID
^RT fieldNumber, startBlock, blocks, format, retries, motion, mode Read RFID tag
^SC baud, wordBits, parity, stopBits, mode, protocol Set serial communications
^SO clock, months, days, years, hours, minutes, seconds Set RTC offset
^SS web, media, ribbon, length, int1, int2, sense, mediaSense, ledSense Set media sensors
^ST month, day, year, hour, minute, second, format Set RTC date and time
^WE mode, index, authType, keyType, key1, key2, key3, key4 Configure WEP
^WF retries, motion, protect, format, type Write RFID AFI or DSFID byte
^WI res, ip, mask, gateway, wins, timeout, secs, arp, port Modify wireless network settings
^WR rate1, rate2, rate55, rate11, power Set wireless transmit rate
^WS essid, mode, preamble, pulse, interval, mask, international Configure wireless radio card
^WT block, retries, motion, protect, format, verify Write RFID tag
These commands are ignored by physical printers, but Labelary will interpret them as requests to draw colored rectangles and images, respectively.
A ~BR command without any parameters clears any previously registered background rectangles.
This ~BR command example simulates label stock where the left side is white and the right side is yellow.
A ~BI command without any parameters clears any previously registered background images.
This ~BI command example simulates label stock with a color logo pre-printed in the upper right corner.
labelary.license.path
Used to specify the path to your license file.
labelary.port
When deploying Labelary in API mode, used to specify the port to use (defaults to port 80).
labelary.host
When deploying Labelary in API mode, used to specify the listen host address to bind to. This can be used to improve the security of the system by restricting clients to the specified
IP address or hostname. If set to localhost , only local clients will be able to access the system, and only via the localhost hostname. By default, any host address may be used.
labelary.access.log.dir
When specified, enables the creation of NCSA-format access logs in the specified directory. The access log files are rotated daily and deleted after 90 days.
labelary.png.compression.quality
Specify a value between 0.0 and 1.0 to customize the tradeoff between output PNG file size and system performance. A value of 0.0 tells Labelary to spend as much time as
necessary to achieve the smallest PNG file size possible, sacrificing performance for the sake of smaller output PNG files. A value of 1.0 tells Labelary to not spend any time
optimizing the PNG file size, sacrificing file size for the sake of system performance. The default value is 0.2, which is the optimal setting for most labels.
labelary.font.[fontName].printerPath, labelary.font.[fontName].file
Used to automatically load a custom font into the Labelary virtual printer memory, rather than having to include a ~DU (upload font) command in every label template. For example, in
order to register the font file at C:\fonts\MyFont.ttf with Labelary as font Z at printer path B:MY.TTF , you would set labelary.font.z.file=C:\fonts\MyFont.ttf and
labelary.font.z.printerPath=B:MY.TTF . When choosing a font name for your custom font, do not use a ZPL standard font name ( A , B , C , D , E , F , G , H , P , Q , R , S , T ,
U , V , 0 ) or a Labelary standard font name ( J , L , N ).