A1. Coordinates System A2. Command Categories: (Exit)
A1. Coordinates System A2. Command Categories: (Exit)
According to functions, the PPLA programming commands in this manual are divided
The PPLA coordinates system is depicted in Figure A1-1. into the following five categories:
♦ Interaction commands
↑ (Blank Label Roll) ♦ System setting commands
+y ♦ System level commands
♦ Label formatting commands
♦ Font downloading commands
Label
(0,0) Feed Only the label formatting commands must be grouped to send, other commands can be
+x → Direction (exit) sent separately. For example:
The measurements of the X- and Y-axis of the coordinates system can be in inches or in Label formatting command N
2
1
January 23, 2013
Upon receiving this kind of command, the printer will either perform the command or
send back the corresponding data to the host so that the user and programmer can Byte 1 Y - Firmware parser is busy.
6
5
January 23, 2013
8
7
January 23, 2013
10
9
January 23, 2013
12
11
January 23, 2013
The above example will set SHIFT JIS code for Japanese fonts.
Note: This command is only for X2000+/X3000+/G6000.
Command Description Parameter Range
<ESC>KI;_ Sets offset value for _ is a binary signed byte in terms
cutting or peeling of pixels. 00H ~ 7FH are positive
position. values and 80H ~ FFH are
negative values.
This command set the cut position for specific labels.
Command Description
<ESC>@0 Clears the flash memory that is used for soft fonts, forms or
graphics.
This command clears the flash memory. All objects in the flash memory will be deleted
after this command is sent. This command will affect flash memory life.
Example: <STX>KIJ1<CR>
14
13
January 23, 2013
16
15
January 23, 2013
port.
Command Description Default Parameter: xxxxxxx
<STX>cxxxx Sets continuous label length 0000 A 6 or7-digit HEX value used for specify internal memory address of the printer (7
This command disables the edge sensor sensing the gap or mark between the labels digits for models OS314/R400/R600/X2000+/X3000+/G6000 and 6 digits for models
and sets a page length for the printer to feed. (Otherwise the printer will feed the label OS203/OS204/214/202/X1000+).
This command will overwrite <STX>e and <STX>r commands, which are in conflict Dump the memory from 9090000H for 4 K bytes.
with it. The label length means the distance between the start printing position to the Response:
Parameter: xxxx … … …
4-digit decimal used to set label length. (e.g.X2000+ maximum value: 43 inches) 9090FF0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Example: <STX>c0200
Set two-inch continuous label. Command Description Default
<STX>Exxxx Sets copy count for stored label 0001
Provided the print object is longer than the set paper length, the paper length will This command should be sent in conjunction with <STX>G, as both commands are
automatically increase to cover the object. In consequence, it becomes 0200*N. related to label storage. The stored label format is the last printed format, kept in the
print buffer.
Make sure the object ready to be printed no longer than 30 inches, otherwise
unexpected outcome will occur. Example: <STX>E0003<CR>
<STX>G<CR>
Result: Print out 3 pieces of the last printed label format.
Command Description
<STX>Dxxxxxxx Dumps the memory contents Command Description
This command is used for debugging program or maintenance purpose only. It dumps <STX>e Selects edge sensor for gap
the memory contents for 4 K memory and sends them to the host through the RS232 18
17
January 23, 2013
1. This command is used for see-through media. It sets the printer to sense the gap Result: Label stock feeds backward for one inch before the next label format is
**
between labels. printed.
2. Refer to <STX>r for reflective media. Command Description
3. Once received this command, the printer will ignore the previous command for <STX>G Prints stored label format
continuous label (<STX>cxxxx). This command should be used in conjunction with <STX>E.
The stored label format is the last printed label format kept in the buffer.
**
: Only for X2000+/X3000+/G6000.
Example: <STX>L<CR>
121100000200100This is a label<CR>
Command Description E<CR>
<STX>F Feeds a label <STX>E0002<CR>
1. This command will feed a label till where the gap is being detected, in case that <STX>G<CR>
the paper type is set to non-continuous. Result: Print the label 3 times (1+2 copies).
2. The media paper will be fed for certain length, when the paper type is set to
continuous.
3. Basically this function is the same as pressing the “Feed” button.
Command Description
<STX>Imbfnn…n Downloads the graphics file
Command Description Default Parameters:
<STX>fxxx Sets stop position and automatic f220 m : Memory module. ‘A’ for RAM module, ‘B’ for flash memory module and ‘C’ for
back-feed for the label stock default module (Normally, the default module is RAM module).
1. This command causes the label stock to stop at a position convenient for the user
to tear off. When the next label format is sent to the printer, it will automatically Note: The flash memory module is an optional item. Suppose you select ‘B’ flash
back-feed to the start of print position. memory and the flash module is not installed, the printer will automatically
2. Back-feed will not be activated if xxx is less than 220. save the graphics into RAM. Delete or store flash data will affect flash
3. Under multi-copy or continuous printing, this command is valid only for the first memory life.
label and last labels.
b : ’A’ - 7-bit data image file.
Example: <STX>f320<CR> 20
19
January 23, 2013
f : Image file format. The printer supports 4 image file formats, PCX, BMP, IMG and E<CR>
HEX formats. This parameter specifies graphic format type and direction.
Result: The HEX graphics image file “hexfile” will print on the same label.
1. nn…n : file name, maximum 16 characters. The file name can be accessed with Command Description
2. The file name must be same as defined. This command cancels the pause function generated by <STX>J.
This command sets the offset value for start print position. The default 0220 sets the <STX>p Enters pause mode
start print position exactly below the TPH (print head) line. You may change it to meet This command drives the printer to enter pause mode, often applied between batches of
This parameter will be ignored if continuous label command is sent. (<STX>cxxxx). Example: <STX>p
Command Description
Command Description
<STX>Q Clears memory
<STX>P Enters data dump mode
This command instructs the printer to clear both of the RAM and flash memory.
This command drives the printer to dump the HEX value of the data that is transmitted
Normally, this command is sent at the end of each job to avoid that the graphics and
to the printer afterwards. The printer will not return to normal function, unless restarted.
fonts become accumulated up and overflow the memory.
Example: <STX>P
In case of the memory full, the printer will erase the first-in graphics or fonts. To avoid
Output:
this situation and to save the data re-processing time, you are advised to send this
command at the end of a job.
Example: <STX>IAFhexfile<CR>
… (HEX file)
<STX>L<CR>
…
1Y1100001000100hexfile<CR>
E<CR>
<STX>Q<CR>
Fig. A5-2
26
25
January 23, 2013
Command Description
<STX>qn Clears memory module
This command clears the selected memory module.
Parameter: n
‘A’ - RAM module, ‘B’ - flash memory and ‘C’ - default module.
Command Description
<STX>r Selects reflective sensor for gap Fig. A5-3
This command selects the reflective sensor for label detection. It is used for “Black
stripe” media sensing. If the label stock is non-continuous type, refer to <STX>e for Command Description
see-through media. Once this command is received, the previous continuous paper <STX>Unncccc Replaces the data of the specified data
This command is used to replace the field data in a form. Other data are kept the
debugging or maintenance purpose. Normally users do not use this command. D11
121100000100020filed 1 data
Output: Q0001
E
Output:
28
27
January 23, 2013
version. The printer will response with version and date code through RS232C.
Fig. A5-5 The command inquires the printer of the contents of graphics/fonts/labels as well as the
available RAM size. The printer will check its memory and response through RS232C.
The “IMGFILE1” and “BMPFILE1” are graphics that were downloaded before.
Command Description
<STX>v Inquires the printer version
This command is used for maintenance purpose. It inquires the printer of the firmware
30
29
January 23, 2013
This command sets the default memory module when loading PCL bitmap fonts (Refer …
Parameter: n <STX>xAGstar<CR>
‘A’ for RAM module and ‘B’ for flash memory module.
Results:
Note: The flash memory module is an optional item. Suppose you select ‘B’ flash Download the graphics with file name “star”.
memory and the flash module is not installed, the printer will automatically save Print the graphic image.
the soft font into RAM. Delete the “star” image file.
Command Description
<STX>xmtn…n Releases file from memory
This command deletes the specific file from the specified memory module, evacuating
memory space to load other data, further to avoid memory overflow.
Parameters:
m: The memory module identification character.
Please refer to <STX>I cmmand.
t : The file type identification code.
‘G’ for graphics.
‘F’ for fonts.
n…n : file name (maximum 16 characters).
Example: <STX>IAFstar<CR> 32
31
January 23, 2013
Different from other group commands, the label formatting commands have no leading Example 1: <STX>L<CR>
control code, e.g. SOH, STX or ESC. A1<CR>
151100002000050ABC<CR>
151100002000050---<CR>
Command Description Default E<CR>
:xxxx Sets cut by amount 0001 Output 1:
This command is valid only when the cutter is installed. It allows a predetermined
number of labels to be printed before a cut is made. Please refer to [cxx].
Fig. A6-1
Example: <STX>V1<CR>
<STX>L<CR> Example 2: <STX>L<CR>
Q0010<CR> 151100002000050ABC<CR>
:0003<CR> 151100002000050---<CR>
E<CR> E<CR>
Output 2:
Result: Enable the cutter to cut after 3 labels have been printed.
34
33
January 23, 2013
Parameters:
w – is pixel width (‘1’ or ‘2’, default is ‘2’).
Command Description Default h – is pixel height ( ‘1’, ‘2’ or ‘3’, default is ‘2’).
Cxx Sets cut by amount c01
This command is valid only when the cutter is installed. It instructs the printer to cut the Example: <STX>L<CR>
label media after the specified numbers of labels have been printed. D23<CR>
120000002000050PIXEL SIZE FOR D23<CR>
Its function is same as the command “:xxxx”, except only a 2 digit value can be entered. E<CR>
Output:
Example: <STX>V1<CR>
<STX>L<CR>
131100002000050CHCK THE CUT FUNCTION<CR> Fig. A6-3
Q0010<CR>
c03<CR>
E<CR>
Result: Enable the cutter to cut the label media after 3 labels have been printed. Command Description
36
35
January 23, 2013
When the printer is in label formatting mode and receives an “E” command, it will
immediately exit from the mode and will print a label based on the data that has already
been received. Even if no printable data has been received, the printer will generate and
feed a label.
Fig. A6-4
Command Description
G Stores previous data to global register
<STX>Sn Retrieves the global register contents Command Description Default
The command saves the previous data to global register and retrieves it to print only Hxx Sets heat value (H00~H20) H10
when the restore command <STX>Sn is sent. This command may be used more than The heat value affects the darkness of the image. To get a better quality printout, some
one time and the global registers are named in the order created, beginning with register of the factors like paper media, ribbon types (wax, semi-resin and resin) and image
‘A’ and ending at register ‘Z’. pattern itself etc. should also be taken into consideration.
Parameter: n
The Name of the register ranges from ‘A’ to ‘Z’. Command Description
M Toggles the mirror mode.
Example: <STX>L<CR> This command toggles the mirror mode. At mirror state the printer mirrors
D11<CR> the following field data.
140000000700150DATA A<CR>
G<CR> Example: <STX>L<CR>
140000000700050DATA B<CR> 150000001800000NORMAL<CR>
G<CR> M<CR>
140000001000050<STX>SA<CR> 150000001400100MIRROR<CR>
140000001300050<STX>SB<CR> M<CR>
140000001600050<STX>SA<CR>
E<CR> 38
37
January 23, 2013
Example: <STX>c0060<CR>
Command Description Default <STX>L<CR>
Pn Sets print speed PC D11<CR>
Parameter: n E<CR>
<STX>L<CR>
rSLAB<CR>
130000000500100TEXT 1<CR>
E<CR>
Fig. A6-5
Output:
Command Description Default
Rxxxx Sets vertical offset R0000
The command sets the vertical start point to be printed. By this command the print
Fig. A6-6
image can be shifted vertically.
Example: R0100
Result: Set 1 inch vertical offset. Command Description Default
Tnn Sets end-of-line code. The nn is T<0x0D>
represented by HEX value
Command Description
rn… Retrieves label data to printer buffer Example: <STX>L<CR>
D11<CR>
smn… Stores label data to printer buffer
T40<CR>
The data of the label format can be stored in the printer memory and recalled.
130000000200100ABC@
With ‘store’ commands, the printer will exit from label formatting mode.
E<CR>
Output:
Parameters:
m: Name of the memory module. ‘A’ for RAM module, ‘B’ for flash memory module
and ‘C’ for default module (Normally, the default module is RAM module.). Fig. A6-7
n … n : File name with maximum 16 characters.
The above example changes the end-of-line code from <CR> to <0x40>
Example: <STX>L<CR> (ASCII character: ‘@’).
D11<CR>
130000000200100STORED LABEL<CR>
sASLAB<CR>
42
41
January 23, 2013
Command Description
X Exits from Label Formatting mode.
The command will exit from Label Formatting mode and switch to the System Level
command mode. If you have data in Label Formatting mode, it will not be printed out.
Fig. A6-8
Unless sending <STX>G command.
Example: <STX>L<CR>
Command Description
130000000200100TEST<CR>
X<CR> +xx Makes auto increment for numeric
>xx Makes auto increment for alphanumeric
This command can increment field on each label printed to save the time used in
Command Description Default communication and data processing between the host and the printer.
44
43
January 23, 2013
Fig. A6-10
Fig. A6-11
46
45
January 23, 2013
Command Description
<STX>T<string> Prints date and time The following group of commands is the subset of label formatting commands. They
This command takes effect only when the RTC board is installed. It prints current date control the position and the scale of the image and put the image directly into the frame
and time. The <string> is any set of characters A ~ Z or a~f. buffer of the printer memory. All of them are led by ‘1’, ‘2’, ‘3’ ‘4’ respectively. These
numbers represent the orientation or rotation direction. The image types include:
BCD Day of week name XY Hour, 12 format. ♦ Bar Codes - both one and two dimension (2D) bar codes.
EF Month number Za Minutes. ♦ Graphics - PCX, BMP, IMG and HEX format files.
Fig. A7-1
There are 4 print directions shown as figure A7-1. The leading character controls the
direction or rotation.
1- Portrait.
48
47
January 23, 2013
2- Reverse landscape.
3- Reverse portrait. t character ooo sub font type Font type
4- Landscape. ‘0’, ‘1’, ‘2’, ‘3’, ‘4’, ‘000’ font 0 ~ font 8 respectively.
‘5’, ‘6’, ‘7’, ‘8’
Example: ‘9’ ’000’ ~ ‘006’ ASD smooth fonts. **
<STX>L<CR> ‘000’ : 4 points, ‘001’ : 6 points,
D11<CR> ‘002’ : 8 points, ‘003’ : 10 points,
141100000800060R1 - PORTRAIT<CR> ‘004’ : 12 points,‘005’ : 14 points,
241100002150200R2 - REV LAND<CR> ‘006’ : 18 points.
341100002400217R3 - REV PORT<CR> ‘9’ ’xxx’ For PCL soft font selection.
441100001030079R4 - LANDSCAP<CR> xxx : A 3-digit decimal represents
E<CR> the soft font ID.
Refer to section A8.
Output: ‘:’ ‘000’ ~ ‘007’ Courier fonts, (ooo represents
Please see Fig. A7-1. symbol set)++
000 - Roman-8, 001 - ECMA-94,
002 - PC set, 003 - PC set A,
Text 004 - PC set B, 005 - Legal,
006 – Greek and 007 - Russian.
The format is: **
Notes: : Models OS203/OS214/R400/X1000+/X2000+/G6000 do not support
4-point smooth font.
Rthvoooyyyyxxxx[data string] ++
: Models OS203/OS314/R600/X3000+ do not support Courier fonts.
Parameters: h : Horizontal scale. ‘0’ through ‘9’ and ‘A’ through ‘O’ represent scale factors.
(‘A’=10, ‘B’=11, .. and ‘O’=24).
R : Print direction. ‘1’, ‘2’, ‘3’ or ‘4’.
v : Vertical scale. ‘0’ through ‘9’ and ‘A’ through ‘O’ represent scale factors. (‘A’=10,
t : Font type. Please refer to the font tables in User’s Manual ‘B’=11, .. and ‘O’=24).
50
49
January 23, 2013
yyyy : A 4-digit value for Y coordinate. The lower left corner is the origin point of the
XY coordinate system and the Y value is the vertical offset from the origin point.
xxxx : A 4-digital value for X coordinate. The lower left corner is the origin point of the
Fig. A7-2
XY coordinate system. The X value is the horizontal offset from the origin point.
Bar Codes
data string: A string of printable data with maximum 255 characters in length. The data
string ends with a <CR> control code or pre-defined code by Txx command.
The format is:
t : Bar code type. The range can be ‘A’ through ‘T’ and ‘a’ through ‘z’, each character
represents a bar code type and rule. Refer to section A10 for more details on bar
Example: <STX>L<CR>
codes.
D11<CR>
121100001000000FONT2, H=1, V=1<CR>
h : ‘0’ through ‘9’ and ‘A’ through ‘O’ represent the width of wide bar. (‘A’=10,
122100001200000FONT2, H=2, V=1<CR>
‘B’=11, .. and ‘O’=24).
121200001400000FONT2, H=1, V=2<CR>
191100201700000SMOOTH, 8 POINTS<CR>
v : ‘0’ through ‘9’ and ‘A’ through ‘O’ represent the width of narrow bar. (‘A’=10,
191100302000000SMOOTH, 10 POINTS<CR>
‘B’=11, .. and ‘O’=24).
E<CR>
ooo : A 3-digit value that represents the bar code height.
Output:
52
51
January 23, 2013
yyyy : A 4 digit value for Y coordinate. The lower left corner is the origin of the XY
coordinate system. The Y value is the vertical offset from origin point.
xxxx : A 4-digit value for X coordinate. The lower left corner is the origin point of the
XY coordinate system. The X value is the horizontal offset from origin point.
Fig. A7-3
Data string: A string of data with maximum 255 characters in length, ended by <CR>
or pre-defined EOL (end of line) code. The length of the string may be
Line
varied from the type of the bar code.
yyyy : A 4-digit value for Y coordinate. The lower left corner is the origin point of the
Example: <STX>L<CR>
XY coordinate system. The Y value is the vertical offset from origin point.
D11<CR>
1A0000000200000BC 1<CR>
xxxx : A 4-digit value for X coordinate. The lower left corner is the origin of the XY
1A0005000200120BC 2<CR>
coordinate system. The X value is the horizontal offset from origin point.
1A6300000200240BC 3<CR>
E<CR>
aaa or aaaa : A 3 or 4-digit value that specifies the width of line.
Output:
bbb or bbbb : A 3 or 4-digit value that specifies the height of line.
54
53
January 23, 2013
Box
ignored line with 3-digit width and height
1X1100001000200L200030<CR> The format is:
y coord. line height
x coord. line width RX11000yyyyxxxxBaaabbbtttsss or RX11000yyyyxxxxbaaaabbbbttttssss
ignored
line or box Parameters:
ttt or tttt : A 3 or 4-digit value that specifies the thickness of top and bottom box edges.
sss or ssss : A 3 or 4-digit value that specifies the thickness of side edges.
Fig. A7-4
56
55
January 23, 2013
Output: Example:
<STX>IAFHEXFILE<CR>
802000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF<CR>
802000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF<CR>
802000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF<CR>
802000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF<CR>
8020FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00<CR>
8020FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00<CR>
Graphic 8020FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00<CR>
0000FF10<CR>
Before sending the graphic selection command, make sure that the graphic was already 8020FFFFFF0000000000000000000000000000000000000000000000000000FFFFFF<CR>
loaded into the flash memory, otherwise send the command led by <STX>I to download
58
57
January 23, 2013
<STX>L<CR>
D11<CR> The following commands are used for downloading the soft fonts with the PCL bitmap
1Y1100001000050HEXFILE<CR> format. Refer to the PCL technical manual for their descriptions. (PCL4 or PCL5).
E<CR>
Command Description
Output: <ESC>*c###D Assigns the soft fonts ID number (### : 0 ~ 999)
<ESC>)s###W Downloads font descriptor (### : length of
font descriptor)
Fig. A7-6
<ESC>*c###E Sets character code (### : 1 ~ 255)
<ESC>(s###W Downloads character descriptor and image
(### : length of character descriptor and image)
For more information on the soft font format, please refer to the related PCL technical
manual.
Example: <ESC>*c100D
<ESC>)s26W ...
<ESC>*c33E
<ESC>(s32W ...
. . .
. . .
<STX>XB
<STX>L
190010002000200THIS IS A TEST FOR PCL SOFT FONT.
E
60
59
January 23, 2013
Fig. A9-1
Fig. A9-2
62
61
January 23, 2013
Fig. A9-3
Font 3: This font includes numeric and uppercase letters. Font 6: This font includes numeric and uppercase letters.
Example: Example:
130000000900000Font 3 : Alphanumeric Uppercase font<CR> 160000001000000Font 6 : Alphanumeric<CR>
160000000500000 Uppercase font<CR>
Fig. A9-4
Font 5: This font includes numeric and uppercase letters. Fig. A9-8
Example:
150000001600000Font 5 : Alphanumeric Uppercase font<CR>
Font 8: This font includes numeric and some special characters only. It is an
OCR-B set.
Example:
Fig. A9-6 170000002000000Font 8 : OCR-B font<CR>
1800000020002000123456789<><CR>
64
63
January 23, 2013
The smooth font set includes USASCII and the extension characters with multiple point 001 ECMA 94
sizes. The font type is ‘9’ for a smooth font and the height field represents the point 002 PC
Fig. A9-10
Courier Fonts
The Courier font includes 8 symbol sets with 15 points. It is only for models OS204/
66
65
January 23, 2013
Type for
A10. PROGRAMMING EXAMPLES FOR BAR CODES Type for Valid
Length Check sum non-readable Bar ratio
readable string codes
string
12 digits
This printer supports 24 bar code types, including 21 of one dimension and 3 of two Yes ’B’ ’b’ 0~9 2:3:4
(11+1)
dimension bar codes. The functions of parameters are varied from the specific bar codes.
The bar code cannot be printed out, if the input code is invalid or its length is not up to
Example: 130000002000000BAR CODE B : UPC-A<CR>
the specification.
1B000000180015502281234567<CR>
Type for
Check Type for
Length non-readable Valid codes Bar ratio
sum readable string
string Fig. A10-2
0 ~ 9, A ~ Z,
variable No ’A’ ’a’ 2 : 1 ~3 : 1
$%*+-./ and space Bar code C: UPC-E
68
67
January 23, 2013
Fig. A10-3 Subset B: place an ASCII ‘B’ (DEC 66 or HEX 42) before the data to be encoded.
Subset C: place an ASCII ‘C’ (DEC67, HEX43) before the data to be encoded. Subset
C can only encode numeric data with even byte count (DEC 30~DEC 39).
Bar code D: Interleaved 2 of 5 (I25) If user not place an ASCII ‘A’,’ B’ or ‘C’ before the data to be encoded, the barcode
will be judged into Subset B.
Type for
Check Type for readable Valid
Length non-readable Bar ratio Example 1: Encoded data: “BBar code”, Output data: “Bar code”
sum string Codes
string Example 2: Encoded data: “12345”, Output data: “12345”
Fig. A10-5
Fig. A10-4
70
69
January 23, 2013
72
71
January 23, 2013
Bar code J: Interleaved 2 of 5 with a modulo 10 checksum Example: 130000001100000BAR CODE K :<CR>
130000000900000PLESSEY<CR>
Same as bar code D (Interleaved 2 of 5), except that it includes an additional modulo 10 1K000000080012050381978<CR>
checksum.
Type for
Check Type for readable Valid Bar
Length non-readable
sum string codes ratio Fig. A10-11
string
0~9
Variable Yes ’J’ ’j’ 2 : 1 ~3 : 1 Bar code L: Interleaved 2 of 5 with a modulo 10 checksum and shipping bearer
bars
Fig. A10-12
Fig. A10-14
76
75
January 23, 2013
130000000900000128<CR>
1Q00070010000857812989089990899998<CR>
Fig. A10-15
Example: 130000001300000BAR CODE Q<CR> Bar code S: UCC/EAN Code 128 Random weight
130000001100000: UCC/EAN<CR>
78
77
January 23, 2013
Fig. A10-19
Fig. A10-21
Check Type for Type for Valid
Length Bar ratio
sum readable string non-readable string codes
Variable Yes ’T’ ’t’ From 0 to 127 2:3:4 Bar code U: UPS MaxiCode
This is a two dimensional bar code defined by UPS and AIM International. It applies
Example: 130000000900000BAR CODE T :<CR>
the Reed-Solomon encoding rule. The bar code’s data stream consists of 5 different
130000000700000TELEPEN<CR>
sections:
1T0005000600120ABC!-=.<CR>
- a 5-digit primary zip code
80
79
January 23, 2013
The Datamatrix is a two dimensional bar code (Only for ECC200 of Datamatrix symbol)
Fig. A10-23
aW1cbdeeeffffgggg2000jjjkkkddddddddd...dd
Parameters:
QR Code is only supported on OS-214Plus, OS-2140, A-2240, A-3140 X-1000VL, 121100000400050QR Code-auto format(W1d)<CR>
X-2000v, X-2300E, X-3200 and CP-2140. E<CR>
QR Code has four type valid characters (Numeric data, alphanumeric data, 8-bit byte
data, and Kanji). QR Code also has variable length.
aW1dcdeeeffffgggghh…h
Fig. A10-24
Parameters:
a : Print direction: ‘1’, ’2’, ’3’ or ’4’. Bar code W1D: QR Code (Manual formatting)
W 1d: Fixed value, for extended bar code set.
Automatic format. The data string (hh...h) to be data only. QR Code has four type valid characters (Numeric data, alphanumeric data, 8-bit byte
c : Horizontal multiplier for module size. The “c” and “d” must be equal, data, and Kanji). QR Code also has variable length.
because each cell in the bar code is square. The cell unit depends on the
Command for QR Code:
the conversion mode (<STX>n or <STX>m). Value: 1~9, A~Z and a~z.
d : Vertical multiplier for module size. Value: 1~9, A~Z and a~z. aW1Dcdeeeffffgggg[q,][e[m]i,]cdata cdata cdata…cdata
eee : Value:000~999.(Ineffective; must be numeric)
Parameters:
ffff : Y coordinate.
gggg : X coordinate. a : Print direction: ‘1’, ’2’, ’3’ or ’4’.
hh…h: Data string. W 1D: Fixed value, for extended bar code set.
Manual format. The data string (hh…h) to be entered with a comma
(,)
Example:
as a separated field, the separated fields are optional in each QR
<STX>L<CR>
code specifications, and the first field indicates Model1 or Model 2
1W1d44000010001001233214567<CR>
QR Code. Default model: model 2.
1W1d4400001000200 立象科技<CR>
1W1d4400001000300CHINESE 中文<CR> c : Horizontal multiplier for module size. The “c” and “d” must be equal,
1W1d550000200010012ABCD456as 印表機<CR>
84
83
January 23, 2013
because each cell in the bar code is square. The cell unit depends on the K=Kanji, K data
the conversion mode (<STX>n or <STX>m). Value: 1~9, A~Z and a~z. (The four values are immediately followed by data.)
Example:
d : Vertical multiplier for module size. Value: 1~9, A~Z and a~z. <STX>L<CR>
eee : Value:000~999.(Ineffective; must be numeric) 1W1D55000008001002,HA,Athis QR is OK<CR>
1W1D55000008002002,Ha,B0016 立象科技 is GOOD<CR>
ffff : Y coordinate.
1W1D55000008003002,HM,N7533967<CR>
gggg : X coordinate. 1W1D55000018001002,Hm,Athis QR is OK<CR>
121100000400020QR Code-Manual format(W1D)<CR>
q : QR Code model number; optional. E<CR>
Values: 1, 2
Default value: Model 2.
e : Error correction level.
Values: H= Ultra reliability level (30%)
Q= High reliability level (25%)
M= Standard reliability level (15%)
L= High density level (7%)
m: Mask number; optional.
Values: None= Automatic selection Fig. A10-25
Default: 0; Value: 1~9, A~Z and a~z. Aztec Bar Code is only supported on OS-2140 series/A-2240 series/A-3140 series/ CP
88
87
January 23, 2013
001~099: Error correction percentage. c: Bar width ratio. No reference. (Value= bar narrow ratio.)
101~104: 1 to 4 layers in compacted symbol d: Bar narrow ratio. Default value=2. (Valid value=1~9)
201~232: 1 to 32 layers in full symbol. eee: Barcode height. Default value: refer to the following table.
300: Rune symbol (If barcode height value=0,
kk…k: Data string. the actual barcode height=’default’*’d’*’i’,
Example: the actual barcode height=’eee’.
<STX>L<CR>
1W1F880000025010000220000AZTEC barcode(W1F)<CR> The ‘eee’ unit is set by the “<STX>n” or “STX>m” command.)
122200001250100Aztec Barcode(W1F)<CR>
E<CR>
Barcode Description
R RSS-14
(GS1 DataBar Omnidirectional)
Width multiplier: 96 pixels;
Min. Height Multiplier: 33 pixels (default)
Fig. A10-27 L RSS Limited
(GS1 DataBar Limited)
Width multiplier: 74pixels;
Bar code W1k: RSS (GS1 DataBar) Min. Height Multiplier: 10 pixels (default)
S RSS Stacked
This command can print all RSS-14 bar code. (RSS-14, RSS Limited, RSS-14 Stacked,
(GS1 DataBar Stacked)
RSS-14 Truncated, RSS Expanded and RSS Stacked Omnidirectional)
Width multiplier: 50 pixels;
Min. Height Multiplier: 13 pixels (default)
Command for RSS:
T RSS Truncated
(GS1 DataBar Truncated)
aW1kcdeeeffffgggghijmn…n| p…p (parameter1)
aW1kcdeeeffffgggghijmnn p…p|q…q (parameter2) Width multiplier: 96pixels;
Min. Height Multiplier: 13 pixels (default)
Parameter1:
a: Print direction: ‘1’, ’2’, ’3’ or ’4’.
W1: Fixed value, for extended bar code set.
k: RSS bar code.
90
89
January 23, 2013
D11<CR>
1W1k0000000200050R10089121121|RSS-14<CR>
1W1k0000000800050L10089121121|RSS Limited<CR>
1W1k0000001300050S10089121121|RSS Stacked<CR>
1W1k0000002000050T10089121121|RSS Truncated<CR>
1W1k0000002500050D10089121121|RSS Stacked
Omnidirectional<CR>
1W1k0000003700050E100220188689121121|RSS Expanded<CR>
1W1k0000004500050E100040188689121121|RSS Expanded
Stacked<CR>
121100000200200RSS-14<CR>
121100000800200RSS Limited<CR>
121100001300200RSS Stacked<CR>
121100002000200RSS Truncated<CR>
121100002500200RSS Stacked Omnidirectional<CR>
121100003700240RSS Expanded<CR>
121100004500200RSS Expanded Stacked<CR>
Q0001<CR>
E<CR>
Fig. A10-28
This is a two dimensional bar code defined by AIM International. It applies the
Reed-Solomon encoding rule and includes all ASCII characters. It provides the function
of multiple-level error detection and correction. The bar code’s data stream consists of 6
different sections:
94
93
January 23, 2013
Parameters:
1 F : normal, T : truncated W 1z: Fixed value, for extended bar code set.
aW1zcdeeeffffgggghijkom…m 96
95
January 23, 2013
2 1 2 11 14 24 35
This barcode is only supported on OS-2140 series/A-2240 series/A-3140 series/ CP
2 2 2 14 21 36 52
2 3 2 17 27 46 67 series/X-2300E/X-3200.
2 4 2 20 33 56 82
2 5 2 23 38 67 93
2 6 2 26 43 72 105 Command for MicroPDF417 (with Specified Byte Count):
3 0 3 6 6 10 14
3 1 3 8 10 18 26 aW1Zcdeeeffffgggghhhhm…m
3 2 3 10 15 26 38
3 3 3 12 20 34 49 Parameters:
3 4 3 15 27 46 67
3 5 3 20 39 66 96
a : Print direction: ‘1’, ’2’, ’3’ or ’4’.
3 6 3 26 54 90 132
3 7 3 32 68 114 167 W 1Z: Fixed value, for extended bar code set.
3 8 3 38 82 138 202 This parameter sets MicroPDF417 (with Specified Byte Count).
3 9 3 44 97 162 237
4 0 4 4 8 14 20 c : Horizontal multiplier for module size.
4 1 4 6 13 22 32
4 2 4 8 20 34 49
Default: 0; Value: 1~9, A~Z and a~z.
4 3 4 10 27 46 67
d : Vertical multiplier for module size.
4 4 4 12 34 58 85
4 5 4 15 45 76 111
Default: 0; Value: 1~9, A~Z and a~z.
4 6 4 20 63 106 155
4 7 4 26 85 142 208
eee : Ineffective; must be 000.
4 8 4 32 106 178 261
4 9 4 38 128 214 313 ffff : Y coordinate.
4 A 4 44 150 250 366 gggg : X coordinate.
hhhh: Specify Byte count.
Example: m…m: Data string; data string must refer to hhhh.
<STX>L<CR>
1W1z460000130002044000MICROPDF417<CR>
121100001800030Micro PDF417(W1z)<CR>
E<CR> Example:
<STX>L<CR>
1W1Z4600001300020001220000MICRO<0X0D)Z<CR>
121100001800030Micro PDF417(W1Z)<CR>
E<CR>
Fig. A10-30
Bar code W1Z: MiocroPDF417 (with Specified Byte Count) Fig. A10-31
98
97
January 23, 2013
Unlike the PCX, BMP and IMG formats, the HEX format is a proprietary one.
100
99
January 23, 2013
The way to send a command file edited under MS-DOS in PC system is subject to your 3 ' 2 copies
1. Suppose you connect the serial cable to COM1: 20 PRINT #1, CHR$(2) + "KI7" + CHR$(0) ' for direct thermal
- Set the baud rate and data format (the default baud rate under DOS is 2400) 30 ' CHR$(2) + "KI7" + CHR$(1) : for thermal transfer
- Copy the command file to COM1 port 40 PRINT #1, CHR$(2) + "c0200" ' continuous, 2-inch height
2. Suppose you connect the Centronics cable to LPT1: 85 PRINT #1, "Q0002" ' Copy count
- Just copy the command file to LPT1: port 90 PRINT #1, "E" ' FEED
100 END
>COPY/B CMDFILE LPT1:
3. Suppose you connect the serial cable to COM1: and use Quick Basic
- Open a device file and set related parameters
- Run the Basic program
102
101
January 23, 2013
APPENDIX AC: FONT SELECTION FROM FONT APPENDIX AD: FONTS AND BAR CODES FOR PPLA
BOARD
Internal Fonts
The special font board is used for special font styles or different languages like Chinese, Fonts 0~8 have single symbol set.
Japanese and Korean. And the commands for extension fonts are similar to those of
standard fonts (font 0 ~ font 9).
Font type Command 200 dpi font size 300 dpi font size
Chinese-Traditional font ‘;’ 24x24 24x24
Chinese-Simplified font ‘;’ 24x24 24x24
‘;’ 24x24 32x32
Japanese font
‘<’ 16x16 24x24
‘;’ 24x24 32x32
Korean font
‘<’ 16x16 24x24
The command of extension fotn is ‘;’ or ‘<’ and that can offer different font size.
Example:
1;1100001000200THIS IS EXTENSION FONT IN BOARD
104
103
January 23, 2013
Font 4 Font 6
Font 5
Font 7
Font 8
106
105
January 23, 2013
Font 9 10 points
Font 9 (ASD smooth font set) includes 8 symbol sets, USASCII, UK, German,
French, Italian, Spanish, Swedish, and Danish/Norwegian.
The sizes are 4, 6, 8, 10 12, 14 and 18 points. The 4-point font is for the model
OS-314 /R600/X3000+only.
12 points
14 points
108
107
January 23, 2013
Roman-8
18 points
ECMA-94
The Courier font set is only for 200dpi printers. It includes Roman-8, PC, PC-A,
PC-B, EAMA-94, Legal, Greek and Russian symbol sets.
110
109
January 23, 2013
PC PC-B
PC-A
Legal
112
111
January 23, 2013
Russian
114
113
January 23, 2013
116
115
January 23, 2013
118
117
January 23, 2013
120
119
January 23, 2013
122
121
January 23, 2013
123