ZPL Command Printing

Source: Internet
Author: User

Recently used instructions to make a print Code128 and Datamatrix

Start the command, set the printing paper size, the printing density, the speed of the printing, the bar code out of the paper coordinates

^xa^jma^ll180^pw660^md30^pr2^pon^lrn^lh10,0
^XA: Label Format ^xa start
^JM: Set the dots per millimeter (depending on the printhead)
^LL: Setting the label length
^PW: Setting the label width
^MD: Setting the label depth
^PR: Setting the Print speed
^po: Setting Print orientation
^LR: Set label reversal (' Y '/' N ')
^LH: Setting the label start point
Format one-dimensional code Code128
^fo52,90^by2,3,50^bcn,50,n,n,n,a^fd$sn^fs
^FO: Setting field Locations
^by:
^bc:code128, ()
^fd:field data field, limit 100 characters
^fs: Field delimited to indicate end of field definition
^a: Zoom/dot Matrix font

Format of the ^BC command:
^bco,h,f,g,e,m

^bc

= Code 128 bar code

O

= Font orientation
Default value: ^FW The default value or the value of the previous ^FW.
Other values: N = OK (normal)
R = Clockwise rotation 90 degrees (roated)
I = clockwise rotation 180 degrees (inverted)
B = clockwise rotation 270 degrees (Bottom)

H

= Barcode height
Default value: set by ^by
Other values: 1 to 9,999 pips

F

= Print comment lines
Default value: Y = Print (Yes)
Other values: N = Do not print (NO)
G = Print the comment line above the bar code
Default value: N = Not printed above bar code
Other values: Y = printed above the bar code
E = Print UCC Check digit
Default value: Y = Print (Yes)
Other values: N = Do not print (NO)
M = Mode
Default value: N = no mode selected
Other values: U = UCC Match mode. (there must be 19 digits after ^fd or ^SN.) ) automatically selects a subset of C with the FNC1 value.
Version 16.3.0 version valid:
A = Auto mode. Automatic mode analyzes the data received and automatically determines the best compression method to choose. ^FD can use all ASCII characters. The printer determines whether a subset is changed. Four and more numbers will automatically change to a subset of C.

//set QR code data matrix format

^fo485,8^bxn,6,200^fdz2007203419,1100705042001,zs565-110-001-1,abcd1234^fs

^bx Data Matrix Barcode
Description The ^BX command can create a two-dimensional matrix symbol , which consists of a square pattern with multiple small squares
composition.
format ^bxo,h,s,c,r,f,g,a
o = Direction: N = Normal r = Rotation 90 degrees (clockwise) I = Invert 180 degrees B = 90 degrees counterclockwise Read
h = space height of each symbol element: Accepted Value: 1 to label width
s = Spec level: Accepted values: 0, 50, 80, 100, 140, 200 default value: 0
c = column to encode: Accepted Value: 9 to
R = line to encode: Accepted Value: 9 to
f = Format ID (0 to 6)-not for specifications set to 200:
1 = field data is numeric + space (0). 9, ") – No \& '
2 = field data is an uppercase number + space (A). Z, ") – No \&"
3 = field data is an uppercase number + space, period, comma, dashed line, and slash (0). 9, A.. Z, ".-/")
4 = field data is an uppercase number + space (0). 9, A.. Z, ") – No \&"
5 = field data is full ASCII 7-bit character set
6 = field data is a full-ASCII 8-bit character set
g = Swap sequence control: Accepted Value: Any character default value: ~ (tilde)
A = aspect ratio: 1 = square 2 = Rectangle default value: 1

End command character
^pq1^xz
^PQ: Set the number of prints
^XZ: Label format ends with ^XZ

ZPL Command Printing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.