Z Series Barcode Printer
Z Series Barcode Printer
Program Manual
___________________
FOR
Gprinter Z series
Thermal Barcode Printer
GP-9035Z
GP-9026Z
GP-1125Z
GP-1225Z
GP-1625Z
GP-1225ZD
1
THERMAL BARCODE PRINTER SERIES
Index
^A Scalable/Bitmapped Font .......................................................................................................... 5
^A@ Use Font Name to Call Font ................................................................................................. 6
^B0 Aztec Bar Code Parameters ................................................................................................... 7
^B1 Code 11 Bar Code .................................................................................................................... 8
^B2 Interleaved 2 of 5 Bar Code .................................................................................................... 9
^B3 Code 39 Bar Code .................................................................................................................. 10
^B4 Code 49 Bar Code .................................................................................................................. 11
^B5 Planet Code bar code ............................................................................................................ 13
^B7 PDF417 Bar Code .................................................................................................................. 14
^B8 EAN-8 Bar Code ..................................................................................................................... 16
^B9 UPC-E Bar Code .................................................................................................................... 17
^BA Code 93 Bar Code ................................................................................................................ 18
^BC Code 128 Bar Code (Subsets A, B, and C) ....................................................................... 20
^BE EAN-13 Bar Code .................................................................................................................. 24
^BF MicroPDF417 Bar Code ........................................................................................................ 25
^BI Industrial 2 of 5 Bar Codes .................................................................................................... 26
^BJ Standard 2 of 5 Bar Code ...................................................................................................... 27
^BK ANSI Codabar Bar Code ...................................................................................................... 28
^BL LOGMARS Bar Code............................................................................................................. 29
^BM MSI Bar Code ........................................................................................................................ 30
^BO Aztec Bar Code Parameters ................................................................................................ 31
^BP Plessey Bar Code ................................................................................................................... 32
^BQ QR Code Bar Code ............................................................................................................... 33
^BS UPC/EAN Extensions ............................................................................................................ 34
^BU UPC-A Bar Code.................................................................................................................... 35
^BX Data Matrix Bar Code............................................................................................................ 36
^BY Code Field Default ................................................................................................................. 38
^BZ POSTAL Bar Code................................................................................................................. 39
^CC,~CC Change Caret............................................................................................................. 40
^CD,~CC Change Caret ............................................................................................................ 41
^CF Change Alphanumeric Default Font .................................................................................... 42
^CI Change International Font/Encoding ................................................................................... 43
^CM Change Memory Letter Designation .................................................................................. 44
^CT,Change International Font/Encoding ............................................................................... 45
^CV Code Validation ...................................................................................................................... 46
^CW Font Identifier ......................................................................................................................... 47
~DB Download Bitmap Font .................................................................................................... 48
~DE Download Encoding .............................................................................................................. 50
^DF Download Format ................................................................................................................... 51
~DG Download Graphics............................................................................................................... 52
~DN Abort Download Graphic ...................................................................................................... 55
~DU Download Unbounded TrueType Font .............................................................................. 56
2
THERMAL BARCODE PRINTER SERIES
~EG Erase Download Graphics ................................................................................................... 57
^FB Field Block ............................................................................................................................... 58
^FD Field Data ................................................................................................................................ 60
^FH Field Hexadecimal Indicator ................................................................................................. 61
^FN Field Number .......................................................................................................................... 62
^FO Field Origin .............................................................................................................................. 63
^FP Field Parameter....................................................................................................................... 64
^FR Field Reverse Print ................................................................................................................. 65
^FS Field Separator ........................................................................................................................ 66
^FT Field Typeset ........................................................................................................................... 67
^FV Field Variable .......................................................................................................................... 68
^FW Field Orientation .................................................................................................................... 69
^FX Comment ................................................................................................................................. 70
^GB Graphic Box ............................................................................................................................ 71
^GC Graphic Circle ......................................................................................................................... 72
^GD Graphic Diagonal Line .......................................................................................................... 73
^GE Graphic Ellipse ....................................................................................................................... 74
^GF Graphic Field ........................................................................................................................... 75
^GS Graphic Symbol ...................................................................................................................... 76
^HF Host Format............................................................................................................................. 77
^HG Host Graphic........................................................................................................................... 78
^HHConfiguration Label Return ................................................................................................... 79
^HM Host RAM Status .................................................................................................................. 80
~HS Host Status Return ................................................................................................................ 81
^ID Object Delete ........................................................................................................................... 83
^ILImage Load ................................................................................................................................ 84
^IM Image Move ............................................................................................................................. 85
^ISImage Save ................................................................................................................................ 86
^JBInitialize Flash Memory ......................................................................................................... 87
~JDEnable Communications Diagnostics .................................................................................. 88
~JEDisable Diagnostics ................................................................................................................. 89
^JM Set Dots per Millimeter .......................................................................................................... 90
^JU Configuration Update ............................................................................................................. 91
^LH Label Home ............................................................................................................................. 92
^LL Label Length............................................................................................................................ 93
^LR Label Reverse Print ............................................................................................................... 94
^LS Label Shift ................................................................................................................................ 95
^LTLabel Top .................................................................................................................................. 96
^MC Map Clear ............................................................................................................................... 97
^MD Media Darkness .................................................................................................................... 98
^MM Print Mode ............................................................................................................................. 99
^MN Media Tracking .................................................................................................................... 100
^MT Media Type ........................................................................................................................... 101
^MU Set Units of Measurement ................................................................................................. 102
3
THERMAL BARCODE PRINTER SERIES
^PH ~PH Slew to Home Position............................................................................................ 103
^PM Printing Mirror Image of Label ........................................................................................... 104
^PO Print Orientation.................................................................................................................... 105
^PQ Print Quantity ........................................................................................................................ 106
^PR Applicator Reprint ................................................................................................................. 107
~PS Print Start ............................................................................................................................... 108
^PW Print Width ............................................................................................................................ 109
~SD Set Darkness ........................................................................................................................ 110
^SE Select Encoding Table ......................................................................................................... 111
^SF Serialization Field (with a Standard ^FD String) .............................................................. 112
^SN Serialization Data ................................................................................................................. 114
~TA Tear-off Adjust Position ...................................................................................................... 115
^TB Text Blocks ............................................................................................................................ 116
^TOTransfer Object ...................................................................................................................... 117
~WC Print Configuration Label ................................................................................................... 118
^WD Print Directory Label ........................................................................................................... 119
^XA Start Format .......................................................................................................................... 120
^XF Recall Format........................................................................................................................ 121
^XG Recall Graphic ...................................................................................................................... 122
^XZ End Format ........................................................................................................................... 123
4
THERMAL BARCODE PRINTER SERIES
^A – Scalable/Bitmapped Font
Description The ^A command specifies the font to use in a text field. ^A designates the font
for the current ^FD statement or field. The font specified by ^A is used only once for that ^FD
entry. If a value for ^A is not specified again, the default ^CF font is used for the next ^FD entry.
Format ^Afo,h,w
f = font name
Default Value:0
Accepted Values: A through Z, and 0 to 9(Any font in the printer (downloaded, EPROM,
stored fonts, fonts A through Z and 0 to 9)
o = field orientation
Default Value: the last accepted ^FW value or the ^FW default
Accepte
N = normal
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
Character Height
h =
(in dots)
Scalable
Default
last accepted ^CF or 15 dots
Value:
Acceptd
10 to 1500
Values:
Bitmapped
Default
Standard height of the bitmap fonts
Value:
Acceptd
multiples of height from 1 to 10 times the standard height, in increments of 1
Values:
w = width (in dots)
Scalable
Default
last accepted ^CF or 12 dots
Value:
Acceptd
10 to 1500
Values:
Bitmapped
Default
The standard width of the specified bitmap fonts
Value:
Acceptd
multiples of width from 1 to 10 times the standard width, in increments of 1
Values:
5
THERMAL BARCODE PRINTER SERIES
6
THERMAL BARCODE PRINTER SERIES
Format ^B0a,b,c,d,e,f,g
a = orientation
Default Value: current ^FW value
Accepte
N = Normal
dValues:
R = rotated
I = inverted 180 degrees
B = read from bottom up, 270 degrees
b = B = read from bottom up, 270 degrees
Default Value:3
Accepted Values: 1 to 10
c = extended channel interpretation code indicator
Default Value: N (if data does not contain ECICs)
Accepted Values: Y ( if data contains ECICs)
d = error control and symbol size/type indicator
Default Value: 0
Accepted Values: 01 to 99 = error correction percentage (minimum)
101 to 104 = 1 to 4-layer compact symbol
201 to 232 = 1 to 32-layer full-range symbol
300 = a simple Aztec “Rune”
e = menu symbol indicator
Default Value: N (if it is not a menu symbol)
Accepted Values:
Y = if this symbol is to be a menu (bar code reader initialization) symbol
f = number of symbols for structured append
Default Value: 1
Accepted Values: 1 through 26
g = optional ID field for structured append
Default Value: no ID
Accepted Values: The ID field is a text string with 24-character maximum
7
THERMAL BARCODE PRINTER SERIES
8
THERMAL BARCODE PRINTER SERIES
Format ^B2o,h,f,g,e,
o = orientation
Default Value: current ^FW value
Accepte
d N = normal
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
I = inverted 180 degrees
h = bar code height (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to 9999
f = print interpretation line
Default Value: Y
Accepted Values: N = no
g = print interpretation line above code
Default Value: N
Accepted Values: Y = yes
e = calculate and print Mod 10 check digit
Default Value: N (2 digit)
Accepted Values: Y = yes (1 digit)
9
THERMAL BARCODE PRINTER SERIES
o = orientation
Default Value: current ^FW value
Accepte
d N = normal
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
e = Mod-43 check digit
Default Value: N
Accepted Values: Y = yes
h = bar code height (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to 9999
f = print interpretation line
Default Value: Y
Accepted Values: N = no
g = print interpretation line above code
Default Value: N
Accepted Values: Y = yes
Code 39 automatically generates the start and stop character (*).
10
THERMAL BARCODE PRINTER SERIES
When the field data exceeds two rows, expect the interpretation line to
extend beyond the right edge of the bar code symbol.
m = starting mode
Default Automatic Mode. The printer determines the starting mode by analyzing the
Value: field data.
0 = Regular Alphanumeric Mode
1 = Multiple Read Alphanumeric
Accepted 2 = Regular Numeric Mode
Values: 3 = Group Alphanumeric Mode
4 = Regular Alphanumeric Shift 1
5 = Regular Alphanumeric Shift 2
Code 49 Field Data Character Set
The ^FD data sent to the printer when using starting modes 0 to 5 is based on the
Code 49 Internal Character Set. This is shown in the first column of the Code 49 table on the
11
THERMAL BARCODE PRINTER SERIES
previous page. These characters are Code 49 control characters:
:;<=>?
Valid field data must be supplied when using modes 0 to 5. Shifted characters are sent as a
two-character sequence of a shift character followed by a character in the unshifted character
set.
Note:Code 49 uses uppercase alphanumeric
If an invalid sequence is detected, the Code 49 formatter stops interpreting field data and prints a
symbol with the data up to the invalid sequence. These are examples of invalid sequences:
• Terminating numeric mode with any characters other than 0 to 9 or a Numeric Space.
• Starting in Mode 4 (Regular Alphanumeric Shift 1) and the first field data character is
not in the Shift 1 set.
• Starting in Mode 5 (Regular Alphanumeric Shift 2) and the first field data character is
not in the Shift 2 set.
• Sending Shift 1 followed by a character not in the Shift 1 set.
• Sending Shift 2 followed by a character not in the Shift 2 set.
• Sending two Shift 1 or Shift 2 control characters.
Numeric Mode is selected or shifted only when five or more continuous digits are found.
Numeric packaging provides no space advantage for numeric strings consisting of fewer than
eightcharacters.
12
THERMAL BARCODE PRINTER SERIES
Format ^B5o,h,f,g
o = orientation code
Default Value: current ^FW value
Accepte N = normal
d
Values:
R = rotated
I = inverted 180 degrees
B = read from bottom up, 270 degrees
bar code height (in
h =
dots)
Default Value: value set by ^BY
Accepted Values: 1 to 9999
f = interpretation line
Default Value: Y = yes
Accepted Values: N = no
g = determines if the interpretation line is printed above the bar code
Default Value: N
Accepted Values: Y = yes
13
THERMAL BARCODE PRINTER SERIES
Format ^B7o,h,s,c,r,t
o = orientation
Default Value: current ^FW value
Accepted N = normal
Values::
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
h = bar code height for individual rows (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to height of label
1 is not a recommended value.
This determines the number of error detection and correction code-words to be
generated for the symbol. The default level provides only error detection without
s= correction. Increasing the security level adds increasing levels of error correction and
increases the symbol size.
Default Value: 0 (error detection only)
Accepted Values: 1 to 8 (error detection and correction)
15
THERMAL BARCODE PRINTER SERIES
Each character in the EAN-8 bar code is composed of four elements: two bars and two spaces.
Format ^B8o,h,f,g
o = orientation
Default Value: current ^FW value
Accepted N = normal
Values::
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
h = bar code height (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to 9999
f = print interpretation line
Default Value: Y (Yes)
Accepted Values: N = no
g = print interpretation line above code
Default Value: N
Accepted Values: Y = yes
16
THERMAL BARCODE PRINTER SERIES
17
THERMAL BARCODE PRINTER SERIES
Code 93 is also capable of encoding the full 128-character ASCII set. For more details, see below
chart.
18
THERMAL BARCODE PRINTER SERIES
93 93 93 93 93 93 93
ASCI ASCI ASCI 93 ASCI ASCI ASCI ASCI ASCI
co co co co co co co
I I I code I I I I I
de de de de de de de
& Spac
NUL 'U DEL SP 0 0 @ 'V P P ' 'W p )P
P e
& &
SOH DC1 ! (A 1 1 A A Q Q a )A q )Q
A Q
& &
STX DC2 “ (B 2 2 B B R R b )B r )R
B R
& &
ETX DC3 # (C 3 3 C C S S c )C s )S
C S
& &
EOT DC4 $ $ 4 4 D D T T d )D t )T
D T
& &
ENQ NAK % % 5 5 E E U U e )E u )U
E U
& &
ACK SYN & (F 6 6 F F V V f )F v )V
F V
& &
BEL ETB ‘ (G 7 7 G G W W g )G w )W
G W
& &
BS CAN ( (H 8 8 H H X X h )H x )X
H X
&
HT &I EM ) (I 9 9 I I Y Y i )I y )Y
Y
&
LF &J SUB * (J : (Z J J Z Z j )J z )Z
Z
&
VT ESC 'A + + : 'F K K [ 'K k )K { 'P
K
FF &L FS 'B , (L < 'G L L / 'L l )L | 'Q
&
CR FS 'C - - = 'H M M ] 'M m )M } 'R
M
&
SO RS 'D . . > 'I N N ^ 'N n )N ~ 'S
N
&
SI US 'E / / ? 'J O O 'O o )O DEL 'T
O
19
THERMAL BARCODE PRINTER SERIES
20
THERMAL BARCODE PRINTER SERIES
full ASCII character set can be used in the ^FD statement — the printer determines when
to shift subsets. A string of four or more numeric digits causes an automatic shift to
Subset C.
D = UCC/EAN Mode (x.11.x and newer firmware)
This allows dealing with UCC/EAN with and without chained application identifiers. The
code starts in the appropriate subset followed by FNC1 to indicate a UCC/EAN 128 bar
code. The printer automatically strips out parentheses and spaces for encoding, but
prints them in the human-readable section. The printer automatically determines if a
check digit is required, calculate it, and print it.Automatically sizes the human readable.
Code 128 Invocation Characters
Code Code Code Code Code Code Code Code Code Code Code Code
Value Value Value Value
A B C A B C A B C A B C
0 SP SP 00 28 < < 28 56 X X 56 84 DC4 t 84
1 ! ! 01 29 = = 29 57 Y Y 57 85 NAK u 85
2 “ “ 02 30 > > 30 58 Z Z 58 86 SYN v 86
3 # # 03 31 ? ? 31 59 [ [ 59 87 ETB w 87
4 ¥ ¥ 04 32 @ @ 32 60 / / 60 88 CAN x 88
5 % % 05 33 A A 33 61 ] ] 61 89 EM y 89
6 & & 06 34 B B 34 62 62 90 SUB z 90
7 ‘ ‘ 07 35 C C 35 63 63 91 EM { 91
NU
8 ( ( 08 36 D D 36 64 _ 64 92 FS | 92
L
SO
9 ) ) 09 37 E E 37 65 . 65 93 GS } 93
H
ST
10 * * 10 38 F F 38 66 a 66 94 RS ~ 94
X
ET
11 + + 11 39 G G 39 67 b 67 95 US DEL 95
X
EO
12 ' ' 12 40 H H 40 68 c 68 96 FNC3 96
T
EN
13 - - 13 41 I I 41 69 d 69 97 FNC2 97
Q
AC
14 . . 14 42 J J 42 70 e 70 98 SHIFT 98
K
BE
15 / / 15 43 K K 43 71 f 71 99 Code C 99
L
CO
Cod FNC
16 0 0 16 44 L L 44 72 BS g 72 100 DE
eB 4
B
FNC
17 1 1 17 45 M M 45 73 HT h 73 101 Code A
4
21
THERMAL BARCODE PRINTER SERIES
18 2 2 18 46 N N 46 74 LF i 74 102 FNC1
19 3 3 19 47 O O 47 75 VT j 75 103 START (Code A)
22 6 6 22 50 R R 50 78 SO m 78
23 7 7 23 51 S S 51 79 SI n 79
DL
24 8 8 24 52 T T 52 80 o 80
E
DC
25 9 9 25 53 U U 53 81 p 81
1
DC
26 : : 26 54 V V 54 82 q 82
2
DC
27 ; ; 27 55 W W 55 83 r 83
3
UCC Case Mode
• More than 19 digits in ^FD or ^SN are eliminated.
• Fewer than 19 digits in ^FD or ^SN add zeros to the right to bring the count to 19. This produces an
invalid interpretation line.
Code 128 Subsets
The Code 128 character subsets are referred to as Subset A, Subset B, and Subset C. A subset
can be selected in these ways:
• A special Invocation Code can be included in the field data ( ^FD) string associated with
that bar code.
• The desired Start Code can be placed at the beginning of the field data. If no Start Code is entered,
Subset B are used.
To change subsets within a bar code, place the Invocation Code at the appropriate points within
the field data ( ^FD) string. The new subset stays in effect until changed with the Invocation Code. For
example, in Subset C, >7 in the field data changes the Subset to A.
Below chart shows the Code 128 Invocation Codes and Start Characters for the three subsets.
Invocation Decimal Subset A Subset A Subset C
Code Value Character Character Character
>< 62
>0 30 > >
>= 94 ~
>1 95 USQ DEL
>2 96 FNC3 FNC3
>3 97 FNC2 FNC2
>4 98 SHIFT SHIFT
>5 99 CODE C CODE C
>6 100 CODE B FNC4 CODE B
>7 101 FNC4 CODE A CODE A
>8 102 FNC1 FNC1 FNC1
22
THERMAL BARCODE PRINTER SERIES
Start Characters
>9 103 Start Code A (Numeric Pairs give Alpha/Numerics)
>: 104 Start Code B (Normal Alpha/Numeric)
>; 105 Start Code C (All numeric (00 - 99)
Code 128 – Subsets B
Because Code 128 Subset B is the most commonly used subset, ZPL II defaults to Subset B if
no start character is specified in the data string.
^XA – the first command starts the label format.
^FO100,75 – the second command sets the field origin at 100 dots across the x-axis and 75
dots down the y-axis from the upper-left corner.
^BCN,100,Y,N,N – the third command calls for a Code 128 bar code to be printed with no rotation
(N) and a height of 100 dots. An interpretation line is printed (Y) below the bar code (N). No UCC
check digit is used (N).
^FDCODE128^FS (Figure A) ^FD>:CODE128^FS (Figure B) – the field data command
specifies the content of the bar code
^XZ – the last command ends the field data and indicates the end of the label.
The interpretation line prints below the code with the UCC check digit turned off.
The ^FD command for Figure A does not specify any subset, so Subset B is used. In Figure B,
the ^FD command specifically calls Subset B with the >: Start Code. Although ZPL II defaults
to Code B, it is good practice to include the Invocation Codes in the command.
Code 128 – Subset B is programmed directly as ASCII text, except for values greater than 94
decimal and a few special characters that must be programmed using the invocation codes.
Those characters are:
^>~
Code 128 – Subsets A and C
Code 128, Subsets A and C are programmed in pairs of digits, 00 to 99, in the field data string. For
details, see
Figure C and Figure D below are examples of Subset C. Notice that the bar codes are
identical. In the program code for Figure D, the D is ignored and the 2 is paired with the 4.
23
THERMAL BARCODE PRINTER SERIES
24
THERMAL BARCODE PRINTER SERIES
Format ^BFo,h,m
o = orientation
Default Value: current ^FW value
Accepted N = normal
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
h = bar code height (in dots)
Default Value: value set by ^BY or 10 (if no ^BY value exists).
Accepted Values: 1 to 9999
m = mode
Default Value: 0 (see Table )
Accepted Values: 0 to 33 (see Table)
Data Data Data Data Data
Mode Data Mode Data Mode Data Mode Data Mode Data
Colu Colu Colum Colum Colum
(M) Rows (M) Rows (M) Rows (M) Rows (M) Rows
mns mns ns ns ns
0 1 11 7 2 11 14 3 8 21 3 38 28 4 20
1 1 14 8 2 14 15 3 10 22 3 44 29 4 26
2 1 17 9 2 17 16 3 12 23 4 6 30 4 32
3 1 20 10 2 20 17 3 15 24 4 8 31 4 38
4 1 24 11 2 23 18 3 20 25 4 10 32 4 44
5 1 28 12 2 26 19 3 26 26 4 12 33 4 4
6 2 8 13 3 6 20 3 32 27 4 15
25
THERMAL BARCODE PRINTER SERIES
Format ^BIo,h,f,g
o = orientation
Default Value: current ^FW value
Accepte N = normal
d
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
h = bar code height (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to 9999
f = print interpretation line
Default Value: Y
Accepted Values: N = no
g = print interpretation line above code
Default Value: N
Accepted Values: Y = yes
26
THERMAL BARCODE PRINTER SERIES
Format ^BJo,h,f,g
o = orientation
Default Value: current ^FW value
Accepte N = normal
d
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
h = bar code height (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to 9999
f = print interpretation line
Default Value: Y
Accepted Values: N = no
g = print interpretation line above code
Default Value: N
Accepted Values: Y = yes
27
THERMAL BARCODE PRINTER SERIES
o = orientation
Default Value: current ^FW value
Accepte N = normal
d
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
e = check digit
Fixed Value: N
h = bar code height (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to 32000
f = print interpretation line
Default Value: Y
Accepted Values: N = no
g = print interpretation line above code
Default Value: N
Accepted Values: Y = yes
k = designates a start character
Default Value: A
Accepted Values: B,C,D,E,N,T,*
l = designates stop character
Default Value: A
其他值:B,C,D,E,N,T,*
K and L decide start and stop character
28
THERMAL BARCODE PRINTER SERIES
Format ^BLo,h,g
o = orientation
Default Value: current ^FW value
Accepte
d N = normal
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
h = bar code height (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to 9999
g = print interpretation line above code
Default Value: N
Accepted Values: Y = yes
29
THERMAL BARCODE PRINTER SERIES
Format ^BMo,e,h,f,g,e2
o = orientation
Default Value: current ^FW value
Accepte
d N = normal
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
e = check digit selection
Default Value: B B = 1 Mod 10
Accepted
Values: A = no check digits
C = 2 Mod 10
D = 1 Mod 11 and 1 Mod 10
h = bar code height (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to 9999
f = print interpretation line
Default Value: Y
Accepted Values: N = no
g = print interpretation line above code
Default Value: N
Accepted Values: Y = yes
inserts check digit
e2 =
into the interpretation line
Default Value: N
Accepted Values: Y = yes
30
THERMAL BARCODE PRINTER SERIES
Format ^BOa,b,c,d,e,f,g
a = orientation
Default Value: current ^FW value
Accepte
d N = normal
Values:
R = rotated
I = inverted 180 degrees
B = read from bottom up, 270 degrees
b = magnification factor
Default Value: 3
Accepted Values: 1 to 10
c = extended channel interpretation code indicator
Default Value: N= if data does not contain ECICs.
Accepted Values: Y = if data contains ECICs
d = error control and symbol size/type indicator
Default Value: 0
Accepted
Values: 01 to 99 = error correction percentage (minimum)
101 to 104 = 1 to 4-layer compact symbol
201 to 232 = 1 to 32-layer full-range symbol
300 = a simple Aztec “Rune”
e = menu symbol indicator
N = if it is not a menu symbol
Accepted Values: Y = if this symbol is to be a menu (bar code reader initialization) symbol
f = number of symbols for structured append
Default Value: 1
Accepted Values: 1 through 26
g = optional ID field for structured append
Default Value: no ID
The ID field is a text string with 24-character maximum
31
THERMAL BARCODE PRINTER SERIES
Format ^BPo,e,h,f,g
o = orientation
Default Value: current ^FW value
Accepte
d N = normal
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
e = print check digit
Default Value: N
Accepted Values: Y = yes
h = bar code height (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to 9999
f = bar code height (in dots)
Y = yes
Accepted
Values: N = no
g = print interpretation line above code
Default Value: N
Accepted Values: Y = yes
32
THERMAL BARCODE PRINTER SERIES
Format ^BQa,b,c,d,e
a = field orientation
Fixed Value: normal (^FW has no effect on rotation)
b = model
Default Value: 2
Accepted Values: 1 (original) and 2 (enhanced – recommended)
c = magnification factor
Default Value: 2 on 200 dpi printers
Accepted Values: 1 to 10
d = error correction
Default Value: Q = if empty / M = invalid values
Accepted
Values: H = ultra-high reliability level
Q = high reliability level
M = standard level
L = high density level
e = mask value
Default Value: 7
Accepted Values: 0 - 7
33
THERMAL BARCODE PRINTER SERIES
Format ^BSo,h,f,g
o = orientation
Default Value: current ^FW value
Accepte
d N = normal
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
h = bar code height (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to 9999
f = print interpretation line
Default Value: Y
Accepted Values: N = no
g = print interpretation line above code
Default Value: N = no
Accepted Values: Y = yes
For UPC codes, with a module width of 2 (default), the field origin offsets for the extension are:
UPC-A UPC-E
X - Offset Y - Offset X - Offset Y - Offset
Normal 209 Dots 21 Dots 122 Dots 21 Dots
Rotated 0 209 Dots 0 122 Dots
This example illustrates how to create a normal UPC-A bar code for the value 7000002198 with an
extension equal to 04414
^XA
^FO100,100^BY3
^BUN,137
^FD07000002198^FS
^FO400,121
^BSN,117
^FD04414^FS
^XZ
34
THERMAL BARCODE PRINTER SERIES
Format ^BUo,h,f,g,e
o = orientation
Default Value: current ^FW value
Accepted
N = normal
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
h = bar code height (in dots)
Default Value: value set by ^BY
Accepted Values: 1 to 9999
f = print interpretation line
Default Value: Y
Accepted Values:
g = print interpretation line above code
Default Value: N
Accepted Values: Y = yes
e = print check digit
Default Value: Y
Accepted Values: N = no
The font style of the interpretation line depends on the modulus (width of narrow bar) selected
in ^BY:
• 8 dot/mm printer: a modulus of 3 dots or greater prints with an OCR-B interpretation line; a modulus
of 1 or 2 dots prints font A.
• 12 dot/mm printer: a modulus of 5 dots or greater prints with an OCR-B interpretation line; a
modulus of 1, 2, 3, or 4 dots prints font A.
35
THERMAL BARCODE PRINTER SERIES
Format ^BXo,h,s,c,r,f,g,a
o = orientation
Default Value: current ^FW value
Accepted
N = normal
Values:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
h = dimensional height of individual symbol elements
Default Value: value set by ^BY
Accepted Values: 1 to the width of the label
s = quality level
Default Value: 0
Accepted Values: 0, 50, 80, 100, 140, 200
Quality refers to the amount of data that is added to the symbol for error correction. The
AIM specification refers to it as the ECC value. ECC 50, ECC 80, ECC 100, and ECC 140
use convolution encoding; ECC 200 uses Reed-Solomon encoding. For new
applications, ECC 200 is recommended. ECC 000-140 should be used only in closed
applications where a single party controls both the production and reading of the symbols
and is responsible for overall system performance
c = columns to encode
Default Value: automatic
Accepted Values: 9 to 49
Odd values only for quality 0 to 140 (10 to 144); even values only for quality 200. Odd
values only for quality 0 to 140 (10 to 144); even values only for quality 200. The number
of rows and columns in the symbol is automatically determined. You might want to force
the number of rows and columns to a larger value to achieve uniform symbol size. In the
current implementation, quality 0 to 140 symbols are square, so the larger of the rows or
columns supplied are used to force a symbol to that size. If you attempt to force the data
into too small of a symbol, no symbol is printed. If a value greater than 49 is entered, the
rows or columns value is set to zero and the size is determined normally. If an even value
is entered, it generates INVALID-P (invalid parameter). If a value less than 9 but not 0, or
if the data is too large for the forced size, no symbol prints; if ^CV is active, INVALID-L
prints.
r = rows to encode
Default Value: automatic
Accepted Values: 9 to 49
f = format ID (0 to 6) — not used with quality set at 200
36
THERMAL BARCODE PRINTER SERIES
Default Value: 6
Accepted
Values: 1 = field data is numeric + space (0..9,”) – No \&’’
2 = field data is uppercase alphanumeric + space (A..Z,’’) – No \&’’
3 = field data is uppercase alphanumeric + space, period, comma, dash,
and slash (0..9,A..Z,“.-/”)
4 = field data is upper-case alphanumeric + space (0..9,A..Z,’’) – no \&’’
5 = field data is full 128 ASCII 7-bit set
6 = field data is full 256 ISO 8-bit set
g = escape sequence control character
Default Value: ~ (tilde)
Accepted Values: any character
character for embedding special control sequences within the field data. Important • A
value must always be specified when using the escape sequence control character. If no
value is entered, the command is ignored
a = aspect ratio
Default Value: square
Accepted Values: rectangular
37
THERMAL BARCODE PRINTER SERIES
1 2 3 4 5 6 7 8 9 10
2.0 2:1 2:1 2:1 2:1 2:1 2:1 2:1 2:1 2:1 2:1
2.1 2:1 2:1 2:1 2:1 2:1 2:1 2:1 2:1 2:1 2.1:1
2.2 2:1 2:1 2:1 2:1 2.2:1 2.16:1 2.1:1 2.12:1 2.1:1 2.2:1
2.3 2:1 2:1 2.3:1 2.25:1 2.2:1 2.16:1 2.28:1 2.25:1 2.2:1 2.3:1
2.4 2:1 2:1 2.3:1 2.25:1 2.4:1 2.3:1 2.28:1 2.37:1 2.3:1 2.4:1
2.5 2:1 2.5:1 2.3:1 2.5:1 2.4:1 2.5:1 2.4:1 2.5:1 2.4:1 2.5:1
2.6 2:1 2.5:1 2.3:1 2.5:1 2.6:1 2.5:1 2.57:1 2.5:1 2.5:1 2.6:1
2.7 2:1 2.5:1 2.6:1 2.5:1 2.6:1 2.6:1 2.57:1 2.65:1 2.6:1 2.7:1
2.8 2:1 2.5:1 2.6:1 2.75:1 2.8:1 2.6:1 2.7:1 2.75:1 2.7:1 2.8:1
2.9 2:1 2.5:1 2.6:1 2.75:1 2.8:1 2.8:1 2.87:1 2.87:1 2.8:1 2.9:1
3.0 3:1 3:1 3:1 3:1 3:1 3:1 3:1 3:1 3:1 3:1
Format ^BYw,r,h
w = module width (in dots)
Initial Value at power-up: 2
Accepted Values: 1 to 10
r = wide bar to narrow bar width ratio
Default Value: 3.0
Accepted Values: 2.0 to 3.0, in 0.1 increments This parameter has no effect on
fixed-ratio bar codes.
h = bar code height (in dots)
Initial Value at power-up: 10
Accepted Values: 1
For parameter r, the actual ratio generated is a function of the number of dots in parameter w,
module width. See above chart
Example • Set module width (w) to 9 and the ratio (r) to 2.4. The width of the narrow bar is 9
dots wide and the wide bar is 9 by 2.4, or 21.6 dots. However, since the printer rounds out to
the nearest dot, the wide bar is actually printed at 22 dots.
This produces a bar code with a ratio of 2.44 (22 divided by 9). This ratio is as close to 2.4 as
possible, since only full dots are printed.
Note:Once a ^BY command is entered into a label format, it stays in effect until
another ^BY command is encountered.
38
THERMAL BARCODE PRINTER SERIES
Format ^BZo,h,f,g,t
o = orientation
Default Value: current ^FW value
Accept N = normal
ed
Values
:
R = rotated 90 degrees (clockwise)
I = inverted 180 degrees
B = read from bottom up, 270 degrees
h = bar code height (in dots)条码高度
Default Value: value set by ^BY
Accepted Values: 1 to 9999
f = print interpretation line
Default Value: N
Accepted Values: Y = yes
g = print interpretation line above code
Default Value: N
Accepted Values: Y = yes
39
THERMAL BARCODE PRINTER SERIES
Format ^CCx,~CCx
40
THERMAL BARCODE PRINTER SERIES
Format ^CDx,~CDx
41
THERMAL BARCODE PRINTER SERIES
Format ^CFf,h,w
Parameter f specifies the default font for every alphanumeric field. Parameter h is the default height
for every alphanumeric field, and parameter w is the default width value for every alphanumeric field.
The default alphanumeric font is A. If you do not change the alphanumeric default font and do not
use any alphanumeric field command (^AF) or enter an invalid font value, any data you specify prints
in font A.
Defining only the height or width forces the magnification to be proportional to the parameter
defined. If neither value is defined, the last ^CF values given or the default ^CF values for height and
width are used.
42
THERMAL BARCODE PRINTER SERIES
The ^CI command enables you to call up the international character set you want to use for printing.
You can mix character sets on a label.
A character within a font can be remapped to a different numerical position.
In x.14 version of firmware and later, this command allows character remapping when
parameter a = 0-13.
Format ^CIx,s1,d1,s2,d2,...
^CI x
x = Desired character set
0=U.S.A.1 (Default setting value at power-up)
1 = U.S.A. 2 Character Set
2 = U.K. Character Set
3 = Holland Character Set
4 = Denmark/Norway Character Set
5 = Sweden/Finland Character Set
6 = Germany Character Set
7 = France 1 Character Set
8 = France 2 Character Set
9 = Italy Character Set
10 = Spain Character Set
11 = Miscellaneous Character Set
12 = Japan Character Set
13 = IBM Code Page 850
18-23 = Reserved
24= 8 bytes Unicode encoding character set
Initial value at power-up = The valued stored in last setting.
The encoding is controlled by the conversion table (*.DAT). The correct table must be
present for the conversion to function.
The table generated by ZTools™ is the TrueType fonts internal encoding (Unicode).
43
THERMAL BARCODE PRINTER SERIES
Format ^CMa,b,c,d
44
THERMAL BARCODE PRINTER SERIES
45
THERMAL BARCODE PRINTER SERIES
When invalid data is detected, an error message and code is printed in reverse image in place of the
bar code. The message reads INVALID ‐ X where X is one of these error codes:
C = character not in character set
E = check-digit incorrect
L = data field too long
S = data field too short
P = parameter string contains incorrect data
(occurs only on select bar codes)
Once turned on, the ^CV command remains active from format to format until turned off by
another ^CV command or the printer is turned off. The command is not permanently saved.
Format ^CVa
a = Code validation
Default value: N= no
Other value: Y= yes
Note: If more than one error exists, the first error detected is the one displayed.
46
THERMAL BARCODE PRINTER SERIES
47
THERMAL BARCODE PRINTER SERIES
This command consists of two portions, a ZPL II command defining the font and a structured data
segment that defines each character of the font.
48
THERMAL BARCODE PRINTER SERIES
Example This is an example of how to use the ~DB command. It shows the first two characters of a
font being downloaded to DRAM.
~DBR:TIMES.FNT,N,5,24,3,10,2,PRINTER 1992,
#0025.5.16.2.5.18.
00FF
00FF
FF00
FF00
FFFF
#0037.4.24.3.6.26.
00FF00
0F00F0
0F00F0
00FF00
49
THERMAL BARCODE PRINTER SERIES
Format ~DEd:o.x,s,DATA
50
THERMAL BARCODE PRINTER SERIES
Format ^DFd:o.x
^XA
^DFR:STOREFMT.ZPL^FS
^FO25,25
^AD,36,20^FN1^FS
^FO165,25
^AD,36,20^FN2^FS
^FO25,75
^AB,22,14^FDBUILT BY^FS ^FO25,125
^AE,28,15^FN1
^XZ
^XA
^XFR:STOREFMT.ZPL^FS
^FN1^FDPRINTER^FS
^XZ
51
THERMAL BARCODE PRINTER SERIES
Note:
To make printer understand, the graphic name ends with space, period or extension.
To avoid being accidentally replaced by space, do not use space when naming your graphics. Always
use different name for different graphic.
If the second graphic using the name of first image,then the first image will be erased and replaced by
the second graphic.
Format ~DGd:o.x,t,w,DATA
Example This is an example of how to use ~DG command to download graphics into DRAM. The
name used to store the graphic is SAMPLE.GRF.
~DGR:SAMPLE.GRF,00080,010,
FFFFFFFFFFFFFFFFFFFF
8000FFFF0000FFFF0001
8000FFFF0000FFFF0001
8000FFFF0000FFFF0001
FFFF0000FFFF0000FFFF
FFFF0000FFFF0000FFFF
FFFF0000FFFF0000FFFF
FFFFFFFFFFFFFFFFFFFF
52
THERMAL BARCODE PRINTER SERIES
The parameter t is calculated by below formula-
X(mm) * Print density (dot/mm) * Y(mm) * Print density (dot/mm) / 8 dot per byte= Total bytes
Note:
1.Raise any portion of a byte to the next whole byte.
2.Parameter w is the first value in the parameter t calculation.
3.The data parameter is a string of hexadecimal numbers sent as a representation of the graphic
image. Each hexadecimal character represents a horizontal nibble of four dots. For example, if the first
four dots of the graphic image are white and the next four black, the dot-by-dot binary code is
00001111. The hexadecimal representation of this binary value is 0F. The entire graphic image is
coded in this way, and the complete graphic image is sent as one continuous string of hexadecimal
values.
4.To use data compression scheme for ~DG and ~DB command.
ZPL emulation printer offer a scheme to compress the data, to reduce the total time of downloading
image and bitmap fonts actual data bytes numbers.
Below 1,2,3,4,5,……19 represent the following hexadecimal value. (Note: Starting from G, from 0 to
9, and A to F, already used in hexadecimal value.)
G H I J K L M N O P Q R S T U V W X Y
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
g h i j k l m n o p q r s t u v w x y z
20 40 60 80 100 120 140 160 180 200 220 240 260 280 300 320 340 360 380 400
When decoding and parameter t bytes numbers are printed, printer returns to previous printing mode.
Notice: The line in your editor will be different from the line in ZPLII. The editor will combine the dot
and line. ZPLII will jump the text line and end. (Eg: Return ang line-feed)
54
THERMAL BARCODE PRINTER SERIES
Format ~DN
Note: If you need to stop a graphic from downloading, you should send a ^ or ~ command.
55
THERMAL BARCODE PRINTER SERIES
56
THERMAL BARCODE PRINTER SERIES
Format ~EG
57
THERMAL BARCODE PRINTER SERIES
Format ^FBa,b,c,d,e
a= width of text block line(in dots). From 0 to the width of the label
Default value: 0
Accepted value: 0~9999
Note: If the value is less than font width or not specified,
text does not print.
b= maximum number of lines in text block Default value: 1
Accepted value: 1~9999
Note: Text exceeding the maximum number of lines
overwrites the last line. Changing the font size
automatically increases or decreases the size of the
block.
c= add or delete space between lines Default value: 0
(in dots) Accepted value:-9999 to 9999
Note: Numbers are considered to be positive unless
preceded by a minus sign.Positive values add space;
negative values delete space.
d= text justification Default value: L (left)
Accepted value: L = left C= center
J= Justified R= right
Note: if J is used, the last line is left-justified.
e= hanging indent(in dots) of the second and remaining linew Accepted value: 0~9999
• If a word is too long to print on one line by itself (and no soft hyphen is specified), a hyphen is
automatically placed in the word at the right edge of the block. The remainder of the word is on the
next line. The position of the hyphen depends on word length, not a syllable boundary. Use a soft
hyphen within a word to control where the hyphenation occurs.
• Maximum data-string length is 3K, including control characters, carriage returns, and line
feeds.
• Normal carriage returns, line feeds, and word spaces at line breaks are discarded.
• When using ^FT (Field Typeset), ^FT uses the baseline origin of the last possible line of
text. Increasing the font size causes the text block to increase in size from bottom to top.
This could cause a label to print past its top margin.
58
THERMAL BARCODE PRINTER SERIES
• When using ^FO (Field Origin), increasing the font size causes the text block to increase in
size from top to bottom.
• When use ~SN to replace ~FD, field block will not print.
• ^FS terminates an ^FB command. Each block requires its own ^FB command.
59
THERMAL BARCODE PRINTER SERIES
Format ^FDa
a = data to be printed
The ^ and ~ characters can be printed through changing the prefixes. Refer to CC and CT
command. (Note: The new prefix could not be printed.)
Characters with codes above 127, or the ^ and ~ characters, can be printed using the ^FH and
^FD commands.
60
THERMAL BARCODE PRINTER SERIES
Format ^FHa
a = hexadecimal indicator Default Value: _ (underscore)
Accepted Values: any character except current format and control
prefix (^ and~ by default)
Example This is an example of how to enter a hexadecimal value directly into a ^FD
statement: This is an example for ascii data using ^CI0
61
THERMAL BARCODE PRINTER SERIES
The number of fields and data that can be stored is dependent in the available printer memory.
Format ^FNx
x= number to be assigned to the field
Accepted Values: 1 to 9999
Default Value: 1
Note:
The same ^FNx value can be stored with several different fields.
If a label format contains a field with ^FN and ^FD, the data in that field prints for any other field
containing the same ^FN value.
62
THERMAL BARCODE PRINTER SERIES
Format ^FOx,y
Note: If the value entered for the x or y parameter is too high, it could position the
field origin completely off the label.
63
THERMAL BARCODE PRINTER SERIES
Format ^FPd,g
Note: When you use reverse printing, the indicated position of the ~FT command is the bottom-left
position of the character at at rightest side.
Example:
^XA^FPV,10^AG^FDtest^XZ
^XA^FPR,10^AG^FDtest^XZ
64
THERMAL BARCODE PRINTER SERIES
Format ^FR
Example
^XA
^FO100,60^GB100,203,203^FS
^FO180,100
^CFG^FR^FDFIELD^FS
^FO130,170
^FR^FDREVERSE^FS
^XZ
Note: The ^FR command applies to only one field and has to be specified each time.
When multiple ^FR commands are going to be used, it might be more convenient to use the ^LR
~FR command result will not appear in other filed.(Eg: When the text is following with ~FR ~GB.)
65
THERMAL BARCODE PRINTER SERIES
Format ^FS
66
THERMAL BARCODE PRINTER SERIES
Format FTx,y
Below defines how ~FT command works in text, barcode, graphic boxes, images
• Text – Origin is the data string, press the baseline. Normally the baseline is the bottom side of the
most of the characters, except for the downward character like g, y and etc.
When a coordinate is missing, the position following the last formatted field is assumed. This
remembering simplifies field positioning with respect to other fields. Once the first field is positioned,
other fields follow automatically.
• Barcode – Origin is base of bar code, if there is explanation line under the bar code, or the bar
code comes with protective line, the origin is the same base
• Graphic Boxes -- Origin is bottom-left corner of the box
• Images – Origin is bottom-left corner of the image area
Note: There are several instances where using the ^FT command without specifying x and y
parameters is not recommended:
• when positioning the first field in a label format
• at any time with the ^FN (Field Number) command
• following an ^SN (Serialization Data) command
67
THERMAL BARCODE PRINTER SERIES
Format ^FV<data>
Example This is an example of how to use the ^MC and ^FV command:
^XA
VARIABLE DATA #2
^FO55,60^FVVARIABLE DATA #2^FS
FIXED DATA
^MCY^XZ
Note: ^FV fields are always cleared after the label is printed.
68
THERMAL BARCODE PRINTER SERIES
Format ^FWr,z
Example
^XA
^FWR
^FO150,90^A0N,25,20^FDPRINTER Technologies^FS
^FO115,75^A0,25,20^FD0123456789^FS
^FO150,115^A0N,25,20^FD333 Corporate Woods
Parkway^FS
^FO400,75^A0,25,20^FDXXXXXXXXX^FS
^XZ
69
THERMAL BARCODE PRINTER SERIES
^FX – Comment
Description The ^FX command is useful when you want to add non-printing informational
comments or statements within a label format. Any data after the ^FX command up to the next caret (^)
or tilde (~) command does not have any effect on the label format. Therefore, you should avoid using
the caret (^) or tilde (~) commands within the ^FX statement.
Format ^FX<data>
^XA
^LH100,100^FS
^FXSHIPPING LABEL^FS
^FO10,10^GB470,280,4^FS
^FO10,190^GB470,4,4^FS
^FO10,80^GB240,2,2^FS
^FO250,10^GB2,100,2^FS
^FO250,110^GB226,2,2^FS
^FO250,60^GB226,2,2^FS
^FO156,190^GB2,95,2^FS
^FO312,190^GB2,95,2^FS
^XZ
Note: Correct usage of the ~FX command includes following it with ~FS command.
70
THERMAL BARCODE PRINTER SERIES
Format ^GBw,h,t,c,r
For the w and h parameters, keep in mind that printers have a default of 8 or 12 dots/millimeter. This
comes out to 203 or 300 dots per inch. To determine the values for w and h, calculate the dimensions
in millimeters and multiply by 8 or 12.
If width and height are not specified, you get a solid box with its width and height as specified by value
t.
where the shorter side is the lesser of the width and height (after adjusting for minimum and default
values).
71
THERMAL BARCODE PRINTER SERIES
Format ^GCd,t,c
d = circle diameter (in dots) Accepted Values: 3 to 4095 (larger values are replaced with
4095)
Default Value: 3
t = border thickness (in dots) Accepted Values: 2 to 4095
Default Value: 1
c = line color Accepted Values: B = black
W = white
Default Value: B
72
THERMAL BARCODE PRINTER SERIES
Format ^GDw,h,t,c,o
Example This is an example of how to create a diagonal line connecting one corner with the
opposite corner of a box on a printed label
^XA
^FO150,100
^GB350,203,10^FS
^FO155,110
^GD330,183,10,,R^FS
^XZ
73
THERMAL BARCODE PRINTER SERIES
Format ^GEw,h,t,c
^XA
^FO100,100
^GE300,100,10,B^FS
^XZ
74
THERMAL BARCODE PRINTER SERIES
75
THERMAL BARCODE PRINTER SERIES
Example Use the ^GS command followed by ^FD and the appropriate character (A through E) within
the field data to generate the desired character:
^XA^CFD
^FO50,50
^FDPRINTER PROGRAMMING^FS ^FO50,75
^FDLANGUAGE II (ZPL II )^FS ^FO280,75
^GS^FDC^FS
^XZ
76
THERMAL BARCODE PRINTER SERIES
77
THERMAL BARCODE PRINTER SERIES
78
THERMAL BARCODE PRINTER SERIES
Format ^HH
79
THERMAL BARCODE PRINTER SERIES
Format ~HM
When ~HM command is sent to printer, a line of data contain s three data strings, the first string
represents the total amount of RAM (in Kilobytes) installed the printer. The second string represents
the maximum amount of RAM (in Kilobytes) available to the user; The third string represent the
amount of RAM (in Kilobytes) currently available to the user.
80
THERMAL BARCODE PRINTER SERIES
Note When a ~HS command is sent the printer will not send a response to the host if the printer is
in one of these conditions:
• MEDIA OUT
• RIBBON OUT
• HEAD OPEN
• HEAD OVER-TEMPERATURE
String 1 <STX>aaa,b,c,dddd,eee,f,g,h,iii,j,k,l<ETX><CR><LF>
aaa = communication (interface) settingsa
b = paper out flag (1 = paper out)
c = pause flag (1 = pause active)
dddd = label length (value in number of dots)
eee = number of formats in receive buffer
f = buffer full flag (1 = receive buffer full)
g = communications diagnostic mode flag (1 = diagnostic mode active)
h = partial format flag (1 = partial format in progress)
iii = unused (always 000)
j = corrupt RAM flag (1 = configuration data lost)
k = temperature range (1 = under temperature)
l = temperature range (1 = over temperature)
The nine-digit binary number is read according to this table:
81
THERMAL BARCODE PRINTER SERIES
String 2 <STX>mmm,n,o,p,q,r,s,t,uuuuuuuu,v,www<ETX><CR><LF>
mmm = function settings b
n = unused
o = head up flag (1 = head in up position)
p = ribbon out flag (1 = ribbon out)
q = thermal transfer mode flag (1 = Thermal Transfer Mode selected)
r = Print Mode
s = print width mode
t = label waiting flag (1 = label waiting in Peel-off Mode)
uuuuuuuu = labels remaining in batch
v = format while printing flag (always 1)
www = number of graphic images stored in memory
String 3 <STX>xxxx,y<ETX><CR><LF>
xxxx = password
y = 0 (static RAM not installed)
1 (static RAM installed)
82
THERMAL BARCODE PRINTER SERIES
83
THERMAL BARCODE PRINTER SERIES
Format ^ILd:o.x
d = location of stored object
Default Value: R:
Others: E:
o = object name
Default Value: if a name is not specified, UNKNOWN is used
Accepted Values: 1 to 8 alphanumeric characters
x = extension
Fixed Value: .GRF, .PNG
84
THERMAL BARCODE PRINTER SERIES
Format ^IMd:o.x
d = location of stored object
Default Value: R:
Others: E:
o = object name
Default Value: if a name is not specified, UNKNOWN is used
Accepted Values: 1 to 8 alphanumeric characters
x = extension
Fixed Value: .GRF, .PNG
Example • This example moves the image SAMPLE.GRF from DRAM and prints it in several
locations in its original size.
^XA
^FO100,100^IMR:SAMPLE.GRF^FS
^FO100,200^IMR:SAMPLE.GRF^FS
^FO100,300^IMR:SAMPLE.GRF^FS
^FO100,400^IMR:SAMPLE.GRF^FS
^FO100,500^IMR:SAMPLE.GRF^FS
^XZ
Comments By using the ^FO command, the graphic image can be positioned anywhere on the label.
The difference between ^IM and ^XG: ^IM does not have magnification, and therefore might require
less formatting time. However, to take advantage of this, the image must be at a 8-, 16-, or 32-bit
boundary.
85
THERMAL BARCODE PRINTER SERIES
Description: The ^JB command is used to initialize various types of Flash memory available in the
printers.
Format ^JBa
a = location of stored object
Default Value: R:
Others: E:
Note • Initializing memory can take several minutes. Be sure to allow sufficient time for the
initialization to complete before power cycling the printer.
87
THERMAL BARCODE PRINTER SERIES
Format ~JD
88
THERMAL BARCODE PRINTER SERIES
Format ~JE
89
THERMAL BARCODE PRINTER SERIES
Format ^JMn
n = set resolution
Accepted Values:
A = default resolution
B = Increase one times
Example • This example of the affects of alternating the dots per millimeter:
^XA
^JMA^FS
^FO100,100
^B2N,50,Y,N,N
^FD1234567890^FS
^XZ
^XA
^JMB^FS
^FO100,100
^B2N,50,Y,N,N
^FD1234567890^FS
^XZ
90
THERMAL BARCODE PRINTER SERIES
Format ^JUa
a = active configuration
Accepted Values:
F = reload factory settings
N = reload factory network settings
These values are lost at power-off if not saved with ^JUS.
R = recall last saved settings
S = save current settings
These values are used at power-on.
91
THERMAL BARCODE PRINTER SERIES
Format ^LHx,y
x = x-axis position (in dots)
Accepted Values: 0 to 9999
Initial Value at Power-up: 0 or last permanently saved value
Y = y-axis position (in dots)
Accepted Values: 0 to 9999
Initial Value at Power-up: 0 or last permanently saved value
Note: To be compatible with existing printers, this command must come before the first ^FS (Field
Separator) command. Once you have issued an ^LH command, the setting is retained until you turn off
the printer or send a new ^LH command to the printer.
92
THERMAL BARCODE PRINTER SERIES
Format ^LLy
y = y-axis position (in dots)
Accepted Values: 1 to 9999, not to exceed the maximum label size.
Default Value: to the maximum label length capability of the printer.
93
THERMAL BARCODE PRINTER SERIES
Format ^LRa
a = reverse print all fields
Accepted Values: N = no
Y = yes
Initial Value at Power-up: N or last permanently saved value
Example • This is an example that shows printing white over black and black over white. The
^GB command is used to create the black background.
Note The ^LR setting remains active unless turned off by ^LRN or the printer is turned off. ^GB
needs to be used together with ^LR. Only fields following this command are affected.
94
THERMAL BARCODE PRINTER SERIES
Format ^LSa
a = shift left value (in dots)
Accepted Values: ‐9999 to 9999
Initial Value at Power-up: 0
Comments : this command must come before the first ^FS (Field Separator) command. Once you
have issued an ^LS command, the setting is retained until you turn off the printer or send a new ^LS
command to the printer.
95
THERMAL BARCODE PRINTER SERIES
Format ^LTx
x = label top (in dot rows)
Accepted Values:: ‐120 to 120
Default Value: a value must be specified
96
THERMAL BARCODE PRINTER SERIES
Format ^MCa
a = map clear
Accepted Values: Y (clear bitmap) or N (do not clear bitmap)
Initial Value at Power-up: Y
Comments The ^MC command retains the image of the current label after formatting. It
appears in the background of the next label printed.
97
THERMAL BARCODE PRINTER SERIES
Format ^MDa
a = media darkness level
Accepted Values: ‐30 to 30, depending on current value
Initial Value at Power-up: 0 If no value is entered, this command is ignored.
Comments The ~SD command value, if applicable, is added to the ^MD command. The darkness
setting range for the XiIIIPlus, Xi4, and RXi4 is 0 to 30 in increments of 0.1.
The firmware is setup so that the ^MD and ~SD commands (ZPL darkness commands) accepts that
range of settings.
98
THERMAL BARCODE PRINTER SERIES
Format ^MMa
a = desired mode
Accepted Values: P,R,A,C,D,F,L,U,L,V,S (No action mode
Default Value:
T = Tear-off
99
THERMAL BARCODE PRINTER SERIES
Format ^MNa,b
a = media being used
Accepted Values:
N = continuous media
Y = non-continuous media web sensing a, b
W = non-continuous media web sensing a, b
M = non-continuous media mark sensing
A = auto-detects the type of media during calibration a, c
Default Value: a value must be entered or the command is ignored
100
THERMAL BARCODE PRINTER SERIES
Format ^MTa
A = media type used
Accepted Values:
T = thermal transfer media
D = direct thermal media
Default Value: a value must be entered or the command is ignored
101
THERMAL BARCODE PRINTER SERIES
Format ^MUa,b,c
a = units
Accepted Values:
I = inches
M = millimeters
Default Value: D
102
THERMAL BARCODE PRINTER SERIES
103
THERMAL BARCODE PRINTER SERIES
Format ^PMa
a = print mirror image of entire label
Accepted Values:
Y = change
Default Value: N= no change
104
THERMAL BARCODE PRINTER SERIES
Format ^PO
a = invert label 180 degrees
Accepted Values:
N = normal
I = invert
Default Value: N
The ^POI command inverts the x, y coordinates. All image placement is relative to these
inverted coordinates. Therefore, a different ^LH (Label Home) can be used to move the print
back onto the label.
Comments If multiple ^PO commands are issued in the same label format, only the last
command sent to the printer is used.
Once the ^PO command is sent, the setting is retained until another ^PO command is received or
the printer is turned off.
105
THERMAL BARCODE PRINTER SERIES
Comments If the o parameter is set to Y, the printer does not pause after every group count of labels
has been printed. With the o parameter set to N (default), the printer pauses after every group count of
labels has been printed until pressed the FEED button.
106
THERMAL BARCODE PRINTER SERIES
Format ^PRp
p = print speed
Accepted Values:
2 to 5, A to E
Default Value: 3
107
THERMAL BARCODE PRINTER SERIES
Format ~PS
108
THERMAL BARCODE PRINTER SERIES
Format ^PWa
109
THERMAL BARCODE PRINTER SERIES
Format ~SD##
## = desired darkness setting (two-digit number)
Accepted Values: 00 to 30
Default Value: last permanently saved value
110
THERMAL BARCODE PRINTER SERIES
Format ^SEd:o.x
d = location of encoding table
Accepted Values: R:, E:
Default Value: R:
o = name of encoding table
Accepted Value: 1 to 8 alphanumeric characters
Default Value: a value must be specified
x = extension
Fixed Value: .DAT
Comments It is better to printer out all the instore message before choose the code, as the name is
fixed value, if not, the commonds will be ignore.
111
THERMAL BARCODE PRINTER SERIES
Format ^SFa,b
a = mask string
The mask string sets the serialization scheme. The length of the string mask defines the
number of characters in the current ^FD string to be serialized. The mask is aligned to the
characters in the ^FD string starting with the right-most in the backing store position.
Mask String placeholders:
D or d – Decimal numeric 0–9
H or h – Hexadecimal 0–9 plus a-f or A-F
O or o – Octal 0–7
A or a – Alphabetic A–Z or a–z
N or n – Alphanumeric 0–9 plus A–Z or a–z
% – Ignore character or skip
b = increment string
The increment string is the value to be added to the field on each label. The default value is
equivalent to a decimal value of one. The string is composed of any characters defined in the
serial string. Invalid characters are assumed to be equal to a value of zero in that characters
position.
Example 1 This is an example of serializing a ^FD string. The ZPL II code generates three separate
labels.
^XA
^FO100,100
^CF0,100
^FD12A^SFnnA,F^FS
^PQ3
^XZ
112
THERMAL BARCODE PRINTER SERIES
The print sequence on this series of labels is:
BL00‐0, BL01‐1, BL02‐2,...BL09‐9,
BL11‐0, BL12‐1...
Example 2 • In this example, the printer cycles with every two printed labels and alternates between H
and then Z.
^XA
^FO100,50^A0N,50,50^FDzzZ^SFnnN,I^FS ^PQ10
^XZ
Example 3 • In this example, lower case i increments with a mask string of i. Nothing changes
because the first cluster (Z) never triggers the second cluster (zz) to change.
^XA
^FO100,50^A0N,50,50^FDzzZ^SFnnN,i^FS ^PQ10
^XZ
113
THERMAL BARCODE PRINTER SERIES
Format ^SNv,n,z
v = starting value
Accepted Values: 12-digits maximum for the portion to be indexed
Default Value: 1
n = increment or decrement value
Accepted Values: 12-digit maximum
Default Value: 1
To indicate a decrement value, precede the value with a minus (–) sign.
z = add leading zeros (if needed)
Accepted Values:
N = no
Y = yes
Default Value: N
114
THERMAL BARCODE PRINTER SERIES
Format ~TA###
### = change in media rest position (3-digit value in dot rows must be used.)
Accepted Values: –120 to 120
Default Value: last permanent value saved
115
THERMAL BARCODE PRINTER SERIES
Note • ^TB is the preferred command for printing fields or blocks of text, instead of ^FB.
Format ^TBa,b,c
a = block rotation
Accepted Values:
N = normal
R = rotate 90 degrees clockwise
I = invert 180 degrees
B = read from bottom up-270 degrees
Default Value: which has the default of ^FW
b = block width in dots
Accepted Values: 1 to the width of the label in dots
Default Value: 1 dot
c = block height in dots
Accepted Values:1 to the length of the label in dots
Default Value: 1 dot
116
THERMAL BARCODE PRINTER SERIES
Format ^TOs:o.x,d:o.x
s = source device of stored object
Accepted Values: R:, E:
Default Value: R:
o = stored object name
Accepted Values: any existing object conforming
Default Value: if a name is not specified, * is used
x = extension
Accepted Values: any existing object conforming
Default Value: if a name is not specified, * is used
d = destination device of the stored object
Accepted Values: R:, E:
Default Value: R:
o = name of the object at destination
Accepted Values: any existing object conforming
Default Value: if a name is not specified, * is used
x = extension
Accepted Values: any existing object conforming
Default Value: if a name is not specified, * is used
117
THERMAL BARCODE PRINTER SERIES
Format ~WC
118
THERMAL BARCODE PRINTER SERIES
Format ^WDd:o.x
d = source device
Accepted Values: R:, E:
Default Value: R:
o = object name
Accepted Values: 1 to 8 alphanumeric characters
Default Value: *, The use of a ? (question mark) is also allowed.
x = extension
Accepted Values: any extension conforming to ZPL
Default Value: *, The use of a ? (question mark) is also allowed.
119
THERMAL BARCODE PRINTER SERIES
Format ^XA
Comments Valid ZPL format requires that label formats should start with the ^XA command and end
with the ^XZ command
120
THERMAL BARCODE PRINTER SERIES
121
THERMAL BARCODE PRINTER SERIES
Format ^XGd:o.x,mx,my
d = source device of stored image
Accepted Values: R:, E:
Default Value: E:
o = name of stored image
Accepted Values: 1 to 8 alphanumeric characters
Default Value: if a name is not specified, UNKNOWN is used
x = extension
Fixed Value: .GRF
mx = magnification factor on the x-axis
Accepted Values: 1 to 10
Default Value: 1
My = magnification factor on the y-axis
Accepted Values: 1 to 10
Default Value: 1
Example • This is an example of using the ^XG command to recall the image SAMPLE.GRF from
DRAM and print it in five different sizes in five different locations on the same label:
^XA
^FO100,100^XGR:SAMPLE.GRF,1,1^FS
^FO100,200^XGR:SAMPLE.GRF,2,2^FS
^FO100,300^XGR:SAMPLE.GRF,3,3^FS
^FO100,400^XGR:SAMPLE.GRF,4,4^FS
^FO100,500^XGR:SAMPLE.GRF,5,5^FS
^XZ
122
THERMAL BARCODE PRINTER SERIES
Format ^XZ
Comments Label formats must start with the ^XA command and end with the ^XZ command to be in
valid ZPL format.
123
Thanks for Choosing Gprinter Thermal Barcode Printers!
124