16. Downloading character sets to memory Vt, x, y, x_mul, y_mul, gap, rotation, data 11
1-2. Language Description
Rules and syntax
EZPL commands have parameter strings associated with them;
• The commands begin with a letter as ID for each function.
•
The comma (,) is the delimiter to separate each parameter.
• The CR [Carriage Return: decimal (13), hex (oD) signifies the end of every command.
• Control and Setup commands use the tilde (~) and caret (^) prefix.
• Label Formatting commands have no prefix.
Example: “~Ea,name,length “ . ”E” is an image download command, and (a,name,length) are three parameters.
Setup commands
1. Printing mode
Syntax : ^Ax
Parameter : x = D or T
Description : x = D , Direct thermal mode
2. Stop position setting
Syntax : ^Ex
Parameter : X = 0~40 (unit : mm)
Description : Feed paper to desired stop position.
3. Setting Print darkness
Syntax : ^Hx
Parameter : X = 00 ~ 19
Description : Set printing darkness.
x = T , Thermal transfer mode
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
3
Page 5
4. Number of pages printed
Syntax : ^Px
Parameter : x = 1 ~ 32767
Description : Set how many labels to print; and it will initiate the program.
5. Label length
Syntax :
^Qx,y(,z±)
Die cut label:(See fig. 1)
x = Label length (unit : mm)
y = Gap length (mm)
Parameter : EX.
^Q25,3
y
x
(x=25,y=3) mm
paper feed
direction
Plain paper:
x = Label length (unit : mm)
y = 0 (constant)
z = Feed paper length (unit : mm)
Black mark label:
x = Label length (unit : mm)
y = Black mark width (mm)
z = Black line to top of form position.
z+ : When the position is outside the black mark.
z- : When the position is within the black mark.
EX.
^Q25,4,3+
^Q,x,y,0+
x
(x=25, y=4, z=3+) mm
^Q25,4,3(x=25, y=4, z=3-) mm
^Q,x,y,z-
^Qx,y,z+
x
Description : Set label size (length, gap length, [plain paper feed length])
6. Speed setting
Syntax : ^Sx
Parameter : x=1 to 6 (inch/sec)
Description : Set printing speed
7. Number of copies per label
Syntax : ^Cx
Parameter : X = 0 ~ 32767
Description : Number of copies of the same label.
8. Row column adjustment
Syntax : ^Rx
Parameter : x = 0 ~ 399 dots
Response : None
Description : Set left margin
9. Label format begin sign
Syntax : ^L
Parameter : None
Descripton : Set label begin sign
y
paper feed
direction
x
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
Description : Enable or disable the stripper sensor. When you use this command, it should be matched
with^Ex. (refer page 16)
11. Download label format
Syntax : ^Fname
data
Parameter : Name = name of label format (up to 20 characters)
Data = the data containing the label formatting command for this stored format
Description : Download label format into memory. After the download is finished, the printer will beep once
(refer page 19).
^Fname
:
Control/Setup command
:
data
^L
:
Label format command
:
E
Same name inspection : If you use the same file name, the printer will print ”REPEAT FILE
NAME”, and the download will be not be accepted.
12. Recall label format
Syntax : ^Kname
Parameter : Name = name of recall label format (up tp 20 characters)
Description : Recall label format from external format (refer page 19)
Description : Number of labels per cut (refer page 16)
15. Serial Port translation setting
Syntax : ^Yp1.p2,p3,p4
Parameter : p1 : Baud Rate (48 or 96 or 19 or 38) ; 48=4800bps; 96=9600bps; 19=19200bps;
38=38400bps
p2 : Parity (N, O, E) ; N=none parity; O=odd parity; E=even parity
p3 : Number of data bits (7 or 8)
p4 : Number of stop bits (1 or 2)
Description : Serial Port translation setting
Control/Setup command [option]
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
5
Page 7
16. Set the forward length
Syntax : ^Mx
Parameter : x = forward length (mm)
Description : Set the forward length of the paper
17. Set the backward length
Syntax : ^Bx
Parameter : x = backward length (mm)
Description : Set the backward length of the paper
CONTROL COMMAND
1. Graphic download memory
Syntax : ~Ea, name, length
Parameters : a = P or p : PCX file
a = B or b : BMP file
name : Name of image (up to 20 character)
length : Length of image (bytes), maximum 512K byte.
Description : Download monochrome image onto memory. Printer will beep 1 time after completely
downloaded. If you use the same file name, the printer will show ”REPEAT FILE NAME”, and
the download will be not be accepted (refer page 18).
2. Bit-Mapped font download
Syntax : ~Jn
Parameters : n = character; From a ~ z or A ~ Z; at least up to 26 characters.
Description : The command used for font loading is usually generated by Qlabel-III label creation
software. The printer will beep once after downloaded. If you use the same file name, the
printer will show ”REPEAT FILE NAME”, and the download will be not being accepted. The
downloaded font are compatible with the HP Laser Jet II Plus (PCL-4).
Example :
3. Graphic mode
Syntax : ~G
Parameter : None
Decription : Printer is in the image-receiving mode. Image data is directly sent from host to the printing
4. Print last label
Syntax : ~Px
Parameter : x = 1 ~ 32767
Description : This command will repeatedly print the indicated copies of the last label format.
Syntax : ~Dm,d,y,h,I,s
Parameter : m = Month (01 to 12)
Description : Set real time clock.
Download the “HVR0OE1A.SFP” text file to external memory card. Use “A” to do the
character code name.
~JA ; Define A as HVR0OE1A.SFP
COPY HVR0OE1A.SFP PRN/B ; Send the order with the DOS mode
buffer (refer page 17)
h = Hour (00 to 23)
d = Date (01 to 31)
y = Year (last two digits of year)
i = Minutes (00 to 59)
s = Seconds (00 to 59)
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
6
Page 8
7. Reset printer
Syntax : ~Z
Parameter : None
Description : Reset the printer, the LED will flash once.
8. Printer head testing
Syntax : ~T
Parameter : None
Description : Print a pattern for the user to determine if the print head is damaged (refer page 19)
9. Clear all
Syntax : ~MDEL
Parameter : none
Description : Clear all in the memory (not include Asia font)
10. Clear memory
Syntax : ~MDELx,name
Parameter : x = type
G, graphic
F, label form
E, Bit-Mapped font (not included Asia font)
name: The name of the graphic, form and Bit-Mapped font
Description : Able to delete individual files or erase entire flash memory.
Example : ~MDELG,Bus ; the graphic “Bus” will be deleted
11. Rotate printing
Syntax : ~Rx
Parameter : x = label width; from 1 to 104 (mm)
Description : Rotate the label format 180-degrees when printing (refer page 18). To return to the original
print direction, set the x value greater than 104 (ie. ~R105).
12. .Print the available space and data name in the memory
Syntax : ~Xn
Parameter : n = 1, print label format names and available space in memory.
n = 2, print graphic names and available space in memory.
n = 3, print Bit-Mapped font names and available space in memory.
n = 4, print the name of the label formats, graphics, fonts, and available space in memory.
n = 5, print Asia font names and available space in memory
n = 6, display the total printed length on the LCD
Description : Print the available space in the memory card (unit: bytes)
13. Acknowledge from RS-232
Syntax : ~Kn
Pararmeter : n = 0, disable.
n = 1, enable.
Return value : Y8
Description : Acknowledge a “Y(0D0A)” from RS-232 back to host each printing label.
14. Row Offset Adjustment
Syntax : ~Q± n
Pararmeter : n=-36 ~ +36
Return value : none
Description : If the printing doed not appear in the same place on every label, this command instructs the
printer to print label formats +n increments above the position the format specifies, and –n
decrements below the position the format specifies.
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
7
Page 9
Label formatting commands
1. Define date layout
Syntax : Daa|bb|cc
Parameter : aa = Year
y2 : Year with two digits (such as 97)
y4 : Year with four digits ( such as 1997)
bb = Month
me : Month in letters (JAN, FEB, .... )
mn : Month in numeric (01, 02, .... )
cc = 2 digits day
| = Separator, can be any ASCII character between decimal 32 to 63.
Description : Define the date layout for print out (refer page 14)
2. Serial number setting
Syntax :
Parameter : x: 0 to 9(up to10group), maximum combination up to 3 groups.
Description : Set the serial number (refer page 17)
Example : ^Q50,0,0
3. Terminate label formatting mode and print label
Syntax : E
Parameter : None
Description : End of formatting command; printer will print label after receiving this command.
w : byte number of image data (xxx...)
image data (refer page 17). For example, if the image file is 50 bytes, the command is G2xxx . (2:
ASCII is 50 decimal)
000EEZYY
001EFZYZ
002F0ZZ0
003F1ZZ1
004F2ZZ2
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
8
Page 10
5. Line command
Syntax : La,x, y, x1, y1
Parameter : a = o, overwrite line
a = e, exclusive or line
x : left-up; per horizontal(Hori.) pos. (dot; 1mm=
8dots)
y : left-upper vertical (Vert.) pos. (dots)
x1: right-bottom Hori. Pos. (dots)
y1: right-bottom Vert. Pos. (dots)
Description : Define a line to render in the label (refer page 15)
** The diagonal line draw is not available **
6. Rectangle
Syntax : Rx, y, x1,y1, lrw, ubw
Parameter : x : left-upper Hori .pos. (dots)
y : left-upper Vert. Pos. (dots)
(x,y)
lrm
x1 : right-bottom Hori. Pos. (dots)
y1 : right-bottom Vert. Pos. (dots)
lrw : thickness of left, right border (dots)
ubw : thickness of upper bottom border
ubw
(x1,y1)
(dots)
Description : Draw a rectangle in the label (refer page 15)
7. Table
Syntax : Hx,y,row_count,col_count,row_width,col_width,line_width
Parameter : x : left-upper Hori .pos. (dots)
y : left-upper Vert. Pos. (dots)
row_count : numbe of rows
col_count : number of columns
row_width : row width
col_width : column width
line_width : line width
Description : Draw a table in the label.
Example : H20,20,2,3,30,20,10
8. Define time layout formatting
Syntax : Th|m|s
Parameter : h = Hour format ( 2 digits, 00 ~ 23)
m = Minute format ( 2 digits, 00 ~ 59)
s = Second format (2 digits, 00 ~ 59)
| = Separator (It can be any separator between dec. 32 to 63 of ASCII).
Descripton : Define the time layout for internal real-time clock (refer page 14)
9. Graphics
Syntax : Yx, y, name
Parameter : x : Hori. Pos. of left-upper of graphics (dots)
y : Vert. Pos. of left-upper of graphics (dots)
name : Name of graphics download
Description : This command is print a graphic that has been previously stored in printer memory (refer page
18)
Example:
A graphic in printer named “Graphic1”,
x
(20,40)
y
command Y20,40,Graphic1 ↵ will put
this graphic into label at position
(20,40).
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
9
Page 11
10. Text
Syntax : At, x, y, x_mul, y_mul, gap, rotation, data
Parameter : t :Font(A~H for Code page 850; I for ASCII)
Description : Prints an ASCII or ASIA text string (refer page14). The ASCII text oriented form left to right, the
6. Barcode
Syntax : Bt,x,y,narrow,wide,height,rotation,readable,data
Parameter : t : bar-code type
A Code 39 L UPC E - Add ON 2
A2 Code 39 with check digit M UPC E - Add ON 5
B EAN 8 N I 2 of 5
C EAN 8 - Add ON 2 N2 I 2 of 5 with check digit
D EAN 8 - Add ON 5 O Codabar
E EAN 13 P Code 93
F EAN 13 – Add ON 2 Q Code 128 (auto subset A/B/C)
G EAN 13 – Add ON 5 Q2 Code 128 (subset A/B/C)
H UPC A R UCC 128
I UPC A - Add ON 2 S Post NET
J UPC A - Add ON 5 T DUN 14 ONLY 90
K UPC E U EAN 128
V RPS 128
Description : Used to print standard barcodes (refer page 14)
Font Points Font style
A 6 CG Triumvirate
B 8 CG Triumvirate
C 10 CG Triumvirate
D 12 CG Triumvirate
E 14 CG Triumvirate
F 18 CG Triumvirate
G 24 CG Triumvirate
H 30 CG Triumvirate
I 16x26 dots for US ASCII 8 bit
t = Zn Asia font from 1 to 4
x : Hori of left-bottom position of text (unit : dot, 1 mm = 8 dots)
y : Vert of left-bottom position of text (unit : dot, 1 mm = 8 dots)
x_mul : Horizontally magnified up to 8 times as large
y_mul : Vertically magnified up to 8 times as large
gap : Distance of the character (unit : dot, 1 mm = 8 dots)
rotation : The rotation of ASCII text from 0 to 3, the Asian text rotation form 0 to 7
0) 0° 1) 90° 2) 180° 3) 270°
data : Data string (up to 239 characters).
1. Constant
2. Date information (^D)
3. Time information (^T)
Asian text from left to right or top to bottom.
x : Hori. of left-bottom pos. of barcode (unit: dot, 1 mm = 8 dots)
y : Vert. Of left-bottom pos. of barcode (unit: dot, 1 mm = 8 dots)
narrow (x dimension): narrow bar from 1 ~ 10 dots (0.125 ~ 1.25 mm)
** DUN 14 narrow setting from 5 ~ 8 dots; UPC/EAN narrow setting from 2 ~ 4 dots **
wide : wide bar from 2 ~ 30 dots (0.25 ~ 0.5 mm) ; **CODE 39, 93, CODABAR & I 2 of 5**
height : height of barcode from 24 ~ 1200 dots.
rotation : rotation of barcode (0 ~ 3)
0) 0° 1) 90° 2) 180° 3) 270°
readable : 0- label off, 1- label on
data : bar-code data.
1. Constant
2. Date information (^D)
3. Time information (^T)
4) 0° 5) 90° 6) 180° 7) 270°
4. Serial variable (^Cx)
5. Variable data (^Vxx)
4. Serial variable (^Cx)
5. Variable data (^Vxx)
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
10
Page 12
6. PDF 417
Syntax : Px,y,w,h,r,c,ec,len
Data
Parameters : x : Hori. of left-bottom pos. of barcode ( unit : dots)
y : Vert. of left-bottom pos. of barcode (unit : dots)
w : Width (x dimension) of the narrowest element (bar or space) in the barcode.
h : Height (y dimension) of each barcode row in the symbol.
r : number of barcode rows, from 3 to 90. If you key in 0, printer will count all the rows.
c : number of barcode columns, from 1 ~ 30. If you key in 0, printer will count the all columns.
ec : error correction level: 0 ~ 8.
len :number of encoded data bytes, including carriage returns ↵ and line feed.
Data : data to be encoded(the length of the data is equal to len; up to 1024 characters)
7. Maxicode
Syntax : Mx, y, sno, nos, mode, ccode, zip, class, rotation, message
Parameter : x : Hori. of left-bottom pos. of barcode (unit: dots).
y : Vert. of left-bottom pos. of barcode (unit: dots).
sno : symbol number, in set of symbols: 1 ~ 8.
nos : number of symbols in set of symbols:1 ~ 8 sets.
mode : mode of maxicode 2, 3, 4 or 6.
Ccode : 3
zip : postal code
9 digits for US style postal code. If there is a 5 digits zip code, 4 zeros must be padded
class : service class, 3 digits numeric.
rotation : rotation of barcode (0 : 0°).
message : 1 ~ 84 characters.
Description : Print a 2 dimensional Maxicode (refer page 15)
8. Define variable field
Syntax : Vxx, length, prompt
Parameters : xx = from 00 ~ 29
length = number of characters (up to 98characters).
prompt = prompt of variable (maximum up to 20 characters)
Description : User defined variable field setting (refer page 19 )
9. Pattern command
Syntax : Qx, y, width, height
Data...
Parameters : x = Hori. of left-bottom pos. (unit : dots).
y = Vert. of left-bottom pos. (unit : dots).
width = width of graphic (unit : byte)
height = height of graphic (unit : dots)
(data length = width x height)
Description :
10. Downloading character sets to memory
Syntax : Vt, x, y, x_mul, y_mul, gap, rotation, data
Parameter : t: arbitrary name of font; from a ~ z (or A ~ Z)
Description Download Bit-Mapped font to memory. All the parameters are the same as the text command
Example : VA,5,10,1,1,1,0,data ;The arbitrary name of font “A”
digits country code.
6 digits alphanumeric zip code for non-US style postal code.
4
1234
5678
77 78 79 80
20
Data send out
1 2 3 4 ......77 78 79 80
width = 4 ; height = 20
(data length : 4x20 = 80)
(refer page18)
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
11
Page 13
1-3. Barcode
CODE SAMPLE CODE SAMPLE
Code 39
EAN 8
EAN 8
Add on 2
EAN 8
Add on 5
EAN 13
EAN 13
Add on 2
UPC E
Add on 2
UPC E
Add on 5
I 2 of 5
CODABAR
Code 93
Code 128
EAN 13
Add on 5
UPC A
UPC A
Add on 2
UPC A
Add on 5
EAN 128
MAXICODE
PDF 417
UPC E
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
12
Page 14
2. Examples
How to construct a label using EZ-Series command
To create a label, it must be an order command combination.
Control command
And
Setup up command
^L ^L is precedent for the beginning of label format
Label format command Label format command must be included
E E is ending of label format
** Control or setup commands to be used in the label command area will be ineffective.
Example:
The following program example is printing a label with EAN8. Program is a text file. No matter what language you
use in programming, simply send out the text file of the contents and you can control what the EZ-Series prints.
Save the following contents (command file named: EX1.TXT).
Program command Description
^Q25,3 Setting up the height 25mm, gap 3mm
^W32 Setting up the width 32mm
^H10 Setting up the darkness 10
^S6 Setting up the speed 6 inches per second
^P1 Setting up the number of printing 1
^E10 Setting up the paper advance length to 10 mm from the print head after printing.
^C1 Setting up the number of copies (start value is 1)
^O0 Setting up the auto stripper function to be turned OFF
^R0 Setting up the left margin 0 dot
^D0 Turning the cutting function off
^L The label content of start symbol
BB,42,39,2,5,100,0,1,12345
67
E Label content of stop symbol
The label can be created by the following MS-DOS command:
C:\>COPY EX1.TXT PRN↵
To send the label to serial port by the following MS-DOS command:
C:\>MODE COM1 96,N,8,1
C:\>TYPE EX1.TXT >> COM1
Setting the x and y values:
(x,y)
(0,0)
between the ^L and E command
The label will move back 10 mm when the next label is printed.
Select EAN8 label, data content is 1234567(See Charapter 2 section 2)
(0,0)(0,0)
(0,0)
abcd
0°
(x,y)
abcd
abcd
(x,y)
180°
90°
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
AZ,220,50,1,1,0,5,中文
AZ,75,83,1,1,0,6,中文
AZ,121,144,1,1,0,7,中文
E
E
l The data output is a default setting and user can change it with ~D command (refer page8).
l The time output format is a default setting and user can change it with T command.
2. Barcode
Example Result Rotation of barcode Result
^H10
^S6
^Q30,0,2
^W60
^L
BB,20,100,3,3,100,0,1,1234567
E
^H10
^S6
^W25
^Q30,0,2
^L
BE,100,20,2,4,80,1,1,123456789
012
E
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
15
Page 17
8. Stripper setting
Example Result
^Q50,2 ; Label height= 50mm, gap= 2mm
^W50 ; Label width= 50mm
^S6 ; Speed =2 inch/second
^O1 ; Stripper enable
^E10 ; Set stop position to 10 mm
^P1 ; Printing one label
^H10 ; Darkness = 5
^L ; Label format begin sign
AD,20,20,1,1,3,0,Stripper Function
E ; Label format end and begin print
9. Cutter setting
Example Description Result
^Q20,0,0
^H5
^S2
^P10
^D2
;plain paper length:20mm
feed label length :0mm
;print 10 labels
;2 labels per cut
a001
a002
a003
a004
^C1
^L
R10,10,120,90,2,2
C0,001,+1,A1
AC,20,30,1,1,1,0,a^C0
E
a005
a006
a007
a008
a009
a010
PDF created with FinePrint pdfFactory trial version http://www.fineprint.com
If you want to continue printing 10
more serial numbers starting from
0018, enter the command “~P10”.
With this command you do not have
to re-enter all the prior
specifications.