0% found this document useful (0 votes)
131 views

A1. Coordinates System A2. Command Categories: (Exit)

The document describes various command categories and interaction commands for a PPLA printer. It discusses five categories of commands: interaction commands, system setting commands, system level commands, label formatting commands, and font downloading commands. It then provides details on several interaction commands, which demand immediate response from the printer, and describes the printer's response to each command.

Uploaded by

Adriano P.Pratti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
131 views

A1. Coordinates System A2. Command Categories: (Exit)

The document describes various command categories and interaction commands for a PPLA printer. It discusses five categories of commands: interaction commands, system setting commands, system level commands, label formatting commands, and font downloading commands. It then provides details on several interaction commands, which demand immediate response from the printer, and describes the printer's response to each command.

Uploaded by

Adriano P.Pratti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 62

January 23, 2013

A1. COORDINATES SYSTEM A2. COMMAND CATEGORIES

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:

Command/data from host Data from printer (RS232C)


Fig. A1-1 PPLA coordinates system Interaction command 0 Printer status
System level command 0
The point of origin (0,0) of this coordinates system is at the left bottom corner. The Interaction command 1 Printer status
origin point remains unchanged, while the texts, bar codes or other objects are being System level command 1
rotated. Negative coordinate value is not allowed. The ranges of X and Y coordinates Font downloading 0
are shown in the table below: …
Font downloading N

Minimum Maximum System level command 2

X coordinate 0 It depends on printer models <STX>L (system command)

Y coordinate 0 It depends on printer models Label formatting command 0


The measurements of the X- and Y-axis of the coordinates system can be in inches or in Label formatting command N

millimeters. E (Label formatting command)

2
1
January 23, 2013

A3. INTERACTION COMMANDS

Command Description Response from printer


The interaction commands demand the printer’s immediate interaction. But the printer
<SOH>A Sends a readable status string XXXXXXXX<CR>
only communicates a detailed status to the host via the printer’s serial (RS232C) port,
This command drives the printer to retrieve an 8-byte data string followed by a <CR> to
since only serial port supports bi-direction communication.
the host. Each ’X’ will be ‘Y’ or ‘N’ reporting the printer status.

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.

determine what to do with the next step. N – Firmware parser is idling.

Byte 2 Y - Paper out.


N - Paper installed.
Command Description Response from printer
Byte 3 Y - Ribbon out.
<SOH># Resets the printer <XOFF> <XON> T
N - Ribbon installed.
1. This command resets the printer like “power on” step. Resetting the Printer returns
all settings to default value, except the downloaded graphics and fonts. Byte 4 Y - Printing batch file.
2. The printer sends <XOFF>, suspending the data input. N - Others.
3. The printer sends <XON> and ‘T’, ready to resume work.
Byte 5 Y – At printing state.
4. Since this command will delay communication for one second, if not necessary, the
N - Not at printing state.
user is advised to send other alternative system level command instead of this one.

Byte 6 Y - Printer is paused and waiting


for the second press.
N - Printer is not paused.
Command Description Response from printer
Byte 7 Y - Label is present.
<SOH>* Restarts the printer <XON> R
N – Label is not present.
1. This command restarts the printer. Printer has “power off” and “power on” steps.
2. This command will clear DRAM memory.
Byte 8 N – Always ‘N’.
Note: This command is for X-1000V/VL/ X-2000V/ OS-2140/ A-2240(E)/ A-3140/
X-2300(E)/X-3200(E)/ CP-2140(E)/ CP-3140.
4
3
January 23, 2013

Command Description Response from printer


<SOH>F Sends one byte printer status X<CR>
This command instructs the printer to send a single byte where each bit (1 or0)
Command Description Response from printer represents one of the printer’s status flags, followed by a <CR>.
<SOH>B Toggles pause condition None
This command toggles the pause state on or off. Byte 6 generated from <SOH>A will
reflect the change of the status.

Command Description Response from printer Bit 1 1 - firmware parser busy.


<SOH>D Disables the interaction command. None 0 - firmware parser idling.
Interaction commands will be ignored after this command is sent. Bit 2 1 - paper out,
The <SOH>D command must be sent prior to loading graphic images or fonts, since 0 - paper installed.
some graphic images or fonts may contain data sequences that can be misinterpreted Bit 3 1 - ribbon out,
as commands by the printer. 0 - ribbon installed.
Bit 4 1 - printing batch file
0 - others.
Bit 5 1 - at printing state.
Command Description Response from printer 0 - not at printing state.
<SOH>E Sends preset label to be printed XXXX<CR> Bit 6 1 - printer is paused and waiting for
This command drives the printer to report the numbers of labels queued to print. the second press.
This ‘XXXX’ is a 4-digit decimal number, e.g. 0 - printer is not paused.
0020<CR> Bit 7 1 - label present.
(There are still 20 labels left in printer buffer waiting to be printed.) 0 - label not present.
Bit 8 0 – always ‘0’.

6
5
January 23, 2013

A4. SYSTEM SETTING COMMANDS Command Description Parameter Range


<STX>KI5__ Sets the gap height __ is a two digit value and in terms
of millimeters.
System setting commands are used to control the printer configuration and will be If the gap height is more than 6 mm the command must be sent otherwise the label
2
written into the printer E PROM. This kind of commands will remain in effect, detection may be incorrect.
whenever the printer is turned on, unless the command with different parameters to
replace it. This command is for OS202/204/214//314/R400 PPLA only.

The factory default settings are Example: <STX>KI508<CR>


Sets the gap height to 8 mm.
Parameter Description Default Value Remark
RS232 baud rate 9600 baud **
Print darkness Normal darkness (H10)
Transfer type Thermal transfer **
Gap length 3 ~ 5 mm (normal) ++
Cut position Center of gap ** Command Description Parameter Range
Command mode Standard control codes ** <STX>KI7n Sets transfer type n : ‘0’ for direct thermal or
Label length for continuous label 0 ** ‘1’ for thermal transfer
(under Windows) From top to last black pixel This command should comply with other settings for printer configuration. In case that
Symbol set for ASD smooth fonts USASCII the setting is not correct, the printer may hang to work or miss-detect the gap. For
instance, if the setting is thermal transfer and the ribbon is not installed, the printer will
**: For X2000+/X3000+/G6000, these settings are controlled by the DIP switches or stop working and blink both LEDs.
the panel. No command is required.
++: For X3000+/G6000, this setting is controlled by the DIP switches. Note: This command is invalid for X2000+/X3000+/G6000.

8
7
January 23, 2013

Command Description Parameter Range Command Description Parameter Range


<STX>KI8n Sets baud rate** n : ‘0’ - 9600, <STX>KI9bdpt Sets baud rate, data b : ‘0’ - 9600, ‘1’- 600, ‘2’ - 2400,
‘1’ - 600, ‘2’ - 2400, length, parity and ‘3’ - 19200, ‘4’ - 4800,
‘3’ - 19200, ‘4’ - 4800, stop bit no. ‘5’ - 38400, ‘6’ - 1200,
‘5’ - 38400, ‘6’ - 1200, ‘7’ - 9600, ‘8’ - 57600++,
‘7’ - 9600 baud, ‘8’ - 57600++, ‘9’ - 115200++
‘9’ - 115200++ d : ‘7’ - 7-bit data, ‘8’ - 8-bit data.
p : ‘N’ - none parity,
Above command is used for RS232C communication. It becomes effective after the ‘E’ - even parity,
printer is being restarted. This command can be sent either through the serial port or the ‘O’ - odd parity.
parallel port, provided that the host and the printer are under the same protocol (baud t : ‘1’ - 1 stop bit, ‘2’ - 2 stop bits.
rate and data format).
Example: <STX>KI937E1<CR>
Example: <STX>KI83<CR>
The above example will set baud rate to 19200 for RS232C. The above example will set baud rate to 19200, bit data to 7, parity to even and stop bit
to 1. This command is invalid for X2000+/X3000+/G6000.
**
This command is not valid for X2000+/X3000+/G6000.
++
Only OS-214 plus supports baud rate 57600 and 115200.

Command Description Parameter Range


<STX>KI<m Sets symbol set for m : ‘0’ - USASCII,
ASD smooth fonts ‘1’ - United Kingdom,
‘2’ - Spanish,
‘3’ - Swedish,
‘4’ - French,
‘5’ - German,
‘6’ - Italian,
‘7’ - Danish/Norwegian.

10
9
January 23, 2013

Note: This command is not for X2000+/X3000+/G6000.


Above command is used to select the European symbol set. It is for the use of ASD Command Description Parameter Range
smooth font set, which is prevailing in Europe. <STX>KI;n Sets control code set. n value :
‘0’ : Standard control codes.
Example: <STX>KI<7<CR> ‘1’ : Alternative control codes.
<STX>L<CR> Refer to the list below for standard and alternative control codes. To exit from the
D11<CR> alternative mode, just reset the menu on the printer panel or send the command of
191100300100020Special characters: æÆÅ<CR> “!KI;0” in alternative mode 1 or send the command of “~KI;0” in alternative mode 2.
E<CR>

Standard (default) Alternative 1 Alternative 2 Alternative 3


Suppose you are using the Danish system and keyboard, the above command will select Control Hexadecimal Control Hexadecimal Control Hexadecimal Control codes
Danish/Norwegian symbol set and enable the printer to print some special characters. codes value codes value codes value
ESC 0x1B [ 0x5B ESC 0x1B [1B

CR 0x0D \ 0x5C CR 0x0D 0x0D

STX 0x02 ! 0x21 ~ 0x7E [02


Fig. A4-1
SOH 0x01 SOH 0x01 ^ 0x5E [01

Note1: Both DIP and alternative commands must be set in X2000+/X3000+/G6000 so


that the alternative mode can be enabled.
Command Description Parameter Range Note2: Alternative 3 is only effective in R-400Plus.
<STX>KXxxxx Sets label length for xxxx is a 4 digit decimal value in
continuous label. millimeters (mm).
This command is valid for using Label Dr. driver under Windows. Without this Command Description Parameter Range
command (setting) the label length ranges from the start printing position to the last <ESC>KI:_ Sets horizontal shift. _ is a binary signed byte and in terms of
black image (pixel). pixels. 00H ~ 7FH are positive and 80H ~
FFH are negative.
Example: <STX>KX0100<CR>
This command shifts the image print position in the X coordinate.
Sets the continuous label length to 100 mm.

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.

Note: This command is not for X2000+/X3000+/G6000.

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.

Command Description Parameter Range


<ESC>KIJn Select JIS code or n value:
SHIFT JIS code when ‘0’ : for JIS code with Japanese
using Japanese fonts. font.
‘1’ : for SHIF JIS code with
Japanese font.

Example: <STX>KIJ1<CR>

14
13
January 23, 2013

A5. SYSTEM LEVEL COMMANDS Command Description Default


<STX>a Enables label echo character Disabled
This command enables the printer to send the control code of RS (1EH ) the host
This group of commands is used to set the printing related parameters or environment through the serial port after each label is being printed.
for the current or subsequent labels. They will be reset after restarting the printer or by
other related system level commands. Unlike system setting commands, these Example: <STX>a
2
commands will not be saved into E PROM. 1EH ; 1st label printed
1EH ; 2nd label printed

Command Description Default


<STX>A Sets date and time
This command sets the date and time. It takes effect only when the RTC (real time clock) Command Description Response from printer
board is installed. In general the RTC board must be set at the first time when you use it. <STX>B Gets date and time wmmddyyyyhhMMjjj
This command gets the date and time from printer through serial (RS232) port. It takes
<STX>AwmmddyyyyhhMMjjj effect only when the RTC (real time clock) board is installed.

Location Digit no. Description Location Digit no. Description


w 1 Day of week. 1 for Monday w 1 Day of week. 1 for Monday
mm 2 Month. 01 for January mm 2 Month. 01 for January
dd 2 Day. dd 2 Day.
yyyy 4 Year. yyyy 4 Year.
hh 2 Hour in 24-hour format. hh 2 Hour in 24-hour format.
MM 2 Minutes. MM 2 Minutes.
jjj 3 Julian data. jjj 3 Julian data.

Example: <STX>A5100720001230287 Example: <STX>B


th
This command sets Friday Oct. 7 , 2000, 12:30, the 287 of the year.

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+).

for 12 inches long.)


Example: <STX>D9090000

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:

stop printing position. 9090000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


9090010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

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.

f parameter Image File Format Direction Command Description Default


‘B’ 8-bit BMP file format Flipped <STX>J Sets pause for each printed label Normal
‘b’ 8-bit BMP file format This command will pause the printer each time after a label is printed. When the printer
‘I’ 8-bit IMG file format Flipped is at pause state, the “READY” LED will keep blinking to alert the user to press the
‘I’ 8-bit IMG file format “FEED” button (OS series) or “PAUSE” button (X, G and R series) to resume the
‘P’ 8-bit PCX file format Flipped printing work.

‘p’ 8-bit PCX file format


‘F’ 7-bit HEX file format

1. nn…n : file name, maximum 16 characters. The file name can be accessed with Command Description

label formatting commands (Y). <STX>j Cancels pause

2. The file name must be same as defined. This command cancels the pause function generated by <STX>J.

3. Refer to the appendix AA for details of the HEX format.

Example: The example of downloading and retrieving HEX graphics is as below:


Part 1 Command Description
<STX>IAFhexfile<CR> <STX>KQ Inquires system configuration
Part 2 This command drives the printer to send the memory configuration including standard,
… (HEX file) expansion and available memory sizes to the host through the RS232.
Part 3
<STX>L<CR> Example: <STX>KQ
… Response:
1Y1100001000100hexfile<CR> INTERNAL MEMORY<CR>
1Y1100002000100hexfile<CR> VER: 1.0 100198<CR>
22
21
January 23, 2013

STANDARD RAM : 524288 BYTES<CR> Command Description Default


EXPANSION RAM: 0 BYTES<CR> <STX>Mxxxx Sets maximum label length 1200
AVAILABLE RAM : 429632 BYTES<CR> Above command sets the maximum label length and the printer will search for gap or
NO. OF DL SOFT FONTS : 0<CR> mark within the specified length accordingly. The default length is 12 inches.
Command Description
<STX>k Test RS232 port Parameter: xxxx
This command drives the printer to send the character Y via its RS232 serial port. A 4-digit decimal. (1 to 12 inches)
Failure to receive the character Y at the host may indicate an interfacing problem.
Example: <STX>M0300<CR>
Example: <STX>k Result: Set maximum label length to 3 inches.
Response: Y

Command Description Default


Command Description <STX>m Sets measurement to metric N
<STX>L Enters label formatting state There are two measurements for the printer, in metric and in inch.
The above command switches the printer into the label-formatting mode. The printer
will process the label formatting commands until it receives the command to exit from Example: <STX>m
this mode. <STX>M0600
Result: 60 mm for maximum label length
In the process of the label formatting, the system level commands will be ignored.

Example: <STX>L<CR> Command Description Default


121100001000050THIS LABEL IS MADE BY JIMMY<CR> <STX>n Sets measurement to inches In inches
E<CR> There are two measurements for the printer, in metric and in inch.
Output:
Example: <STX>n
<STX>M0600
Fig. A5-1 Result: 6 inches for maximum label length.
24
23
January 23, 2013

Command Description Default


<STX>Oxxxx Sets print start position 0220 Command Description

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

the specific label format requirements. paper.

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

command (<STX>cxxxx) will be ignored. Where: nn field number


cccc data to be replaced

This command is used to replace the field data in a form. Other data are kept the

Command Description same as the previous ones.

<STX>T Prints test pattern


This command is used for testing the printout quality or checking the print head for Example: <stx>L

debugging or maintenance purpose. Normally users do not use this command. D11
121100000100020filed 1 data

Example: <STX>T 121100000400020filed 2 data

Output: Q0001
E
Output:

28
27
January 23, 2013

version. The printer will response with version and date code through RS232C.

Fig. A5-4 Example: <STX>v


Response: Label Printer with Firmware Ver. 1.0 100198

Example: <stx>U01NEW DATA 1


<stx>E0001
<stx>G
Output:
Command Description
<STX>Wn Inquires the graphics/fonts and memory status

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.

Command Description Parameter: n


F : Show fonts and memory status
<STX>Vn Sets cutter and dispenser configuration
G : Show graphics and memory status
Parameter: n
L : Show stored labels and memory status
‘0’: no cutter and peeler function
‘1’: Enables cutter function
Example: <STX>WG
‘4’: Enables peeler function
Response: IMGFILE1<CR>
BMPFILE1<CR>
Example: <STX>V0 ; no cutter and peeler function
AVAILABLE RAM : 421632 BYTES<CR>
<STX>V1 ; Enables cut operation

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

Command Description … (HEX file)


<STX>Xn Sets default module <STX>L<CR>

This command sets the default memory module when loading PCL bitmap fonts (Refer …

to the section A8 Font Downloading Commands.). 1Y1100001000100star<CR>


E<CR>

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

A6. LABEL FORMATTING COMMANDS Command Description Default


An Sets logic image printing mode A1
This command puts the printer on logical OR operation or XOR operation, which
The label formatting commands will: makes the printout more attractive.
 Set the print environment, margins, print modes, multi-copies, etc.
 Set cursor position and print graphics, texts, bar codes, lines and boxes Parameter: n
 Control the heat of the printing, label print position and user interface ‘1’ for logical XOR (exclusive OR).
 All commands after < STX>L are interpreted as Label Formatting ‘2’ for logical OR.
Commands. The default mode is ‘1’.

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>

131100002000050CHCK THE CUT FUNCTION<CR> A2<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

Fig. A6-2 Command Description Default


Command Description Default Dwh Sets width and height pixel size D22
Cxxxx Sets left margin 0000 Though the maximum resolution is up to the printer model, besides the smallest one, the
This command allows horizontal adjustment of the point where printing begins. other pixel sizes can be set by this command. However, reducing the resolution may
Different margin value makes image shift to the left or right. cause the image pixel to be amplified and the printout get zigzagged. The minimum
pixel size set by “D11” is varied from models.
Parameter: xxxx
Models OS203/204/214/214plus/R400/
Example: C0100 X1000+/X2000+/G6000: 0.0049 inch (0.125 mm)
Result: Set left margin to one inch Models OS314/R600/X3000+: 0.0033 inch (0.084 mm)

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

E Ends the job and exit from label formatting mode


Output:

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

150000001000000NORMAL AGAIN<CR> D 2.5 ips H 4.5 ips L 7.0 ips


E<CR>
Output: Printer Speed Range
OS314 A~C
OS204/214/214plus A~E
OS203 A~F
R600/X1000+/G6000 A~G
R400/X2000+ A~K
Fig. A6-4 X3000+ A~L

Command Description Default Command Description Default


m Sets measurement in metric. In inch. Qxxxx Sets the quantity of labels to print Q0001
There are two measurements in the printer - metric and inch. This command is used to set the number of the labels to be printed. If the printout
contents are same or just different in certain auto increment/decrement fields, sending
this command can save the communication and processing time.
Command Description Default Parameter: xxxx
n Sets measurement in inch In inch. A 4-digit decimal. The default is 0001.

Example: <STX>c0060<CR>
Command Description Default <STX>L<CR>
Pn Sets print speed PC D11<CR>

This command controls the print speed. 1300000002000002 COPIES<CR>


Q0002<CR>

Parameter: n E<CR>

A 1.0 ips E 3.0 ips I 5.0 ips Output:

B 1.5 ips F 3.5 ips J 5.5 ips


C 2.0 ips G 4.0 ips K 6.0 ips
40
39
January 23, 2013

<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.

Z Changes slash zero to normal 0 Slash zero


Parameter: xx
The alphanumeric fonts (font 0 to font 6) provide both normal and slash zeros ( & 0).
A 2-digit value is to specify the amount to increment the field by.
If this kind of fonts has been selected, the default slash zero ( ) is being used. This
command puts the normal zero 0 in use.
Example: <STX>c0050<CR>
<STX>L<CR>
Example: <STX>L<CR>
D11<CR>
D11<CR>
130000000200100100<CR>
130000000200100NO. 0228<CR>
+10<CR>
E<CR>
Q0003<CR>
E<CR>
<STX>L<CR>
Output:
D11<CR>
z<CR>
130000000200100NO. 0228<CR>
E<CR>
Output:

44
43
January 23, 2013

Fig. A6-9 Command Description


^xx Sets count by amount
An application using incrementing or decrementing fields will occasionally require
Command Description that more than one label be printed with the same values before the field data is updated.
-xx Makes auto decrement for numeric This command can be applied in this situation, but it can only be sent once per label
<xx Makes auto decrement for alphanumeric format.
This command can decrement the field on each label printed to save the time use in
communication and data processing between the host and the printer. Parameter: xx
A 2-digit value is to specify the number of labels to be generated before incrementing or
Parameter: xx decrementing fields on the label.
A 2-digit value is to specify the amount to decrement the field by.
Example: <STX>c0050<CR>
Example: <STX>c0050<CR> <STX>L<CR>
<STX>L<CR> D11<CR>
D11<CR> 130000000200020COUNT :<CR>
130000000200100111<CR> 130000000200100123<CR>
-15<CR> -01<CR>
Q0003<CR> ^02<CR>
E<CR> Q0003<CR>
Output: E<CR>
Output:

Fig. A6-10
Fig. A6-11

46
45
January 23, 2013

A7. IMAGE EDITING COMMANDS

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:

Characters Description Characters Description


A Day of week VW Hour, 24 format. ♦ Texts - internal hard fonts and downloadable soft fonts.

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.

GHI Month name gh Seconds ♦ Lines - solid lines.


♦ Boxes - variable sizes, length and thickness.
PQ Day bc AM or PM
RSTU Year def Julian data
Rotation
Example: <STX>L<CR>
121100000800010<STX>TBCD GHI PQ, TU<CR>
121100000100010<STX>TA EF PQ, RSTU VW:Za:gh<CR>
E<CR>

Output: TUE APR 06, 10


2 04 06, 2010 17:19

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:

bar code height is ignored in case of text


Rthvoooyyyyxxxx[data string]
orientation, 1 represents for portrait
122300001000200EXAMPLE FOR TEXT<CR>
Parameters:
y coord. x coord. data
height multiplier
R : Print direction. ‘1’, ‘2’, ‘3’ or ‘4’.
font width multiplier

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.

The format is:


bar code height, 000 stands for default height
orientation, 1 represents for portrait
RX11000yyyyxxxxLaaabbb or RX11000yyyyxxxxlaaaabbbb
1A5200001000200CODE 3 OF 9<CR>
y coord. x coord. data
Parameters:
narrow bar width
wide bar width
R : Print direction. ‘1’, ‘2’, ‘3’ or ‘4’.
bar code type

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:

R : Print direction. ‘1’, ‘2’, ‘3’ or ‘4’.


Example: <STX>L<CR>
D11<CR> yyyy : Y coordinate. A 4-digital decimal. The lower left corner is the origin of the XY
1X1100000200000L100020<CR> coordinate system. The Y value is the vertical offset from origin.
1X1100000800000l00100100<CR>
E<CR> xxxx : X coordinate. A 4-digital decimal. The lower left corner is the origin of the XY
coordinate system. The X value is the horizontal offset from origin.
Output:
aaa or aaaa : A 3 or 4-digit value that specifies the width of box.

bbb or bbbb : A 3 or 4-digit value that specifies the height of box.

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

the graphic first.


box with 3-digit width, height and side thickness The format is:
ignored
1X1100001000200B200030002003<CR> 1Y11000yyyyxxxxn..n
y coord. thickness of side edges
x coord. thickness of top and bottom Parameters:
ignored box height
line or box box width yyyy : A 4-digit value for Y coordinate. The lower left corner is the origin point of the
XY coordinate system. The Y value is the vertical offset from origin point.
Example: <STX>L<CR>
D11<CR> xxxx : A 4-digit value for X coordinate. The lower left corner is the origin point of the
1X1100000200100B100040002005<CR> XY coordinate system. The X value is the horizontal offset from origin point.
1X1100000800100b0250010000030004<CR>
E<CR> n..n : Graphic file name that was downloaded (maximum 16 characters).

Output: Example:

<STX>IAFHEXFILE<CR>

802000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF<CR>

802000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF<CR>

802000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF<CR>

802000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF<CR>

8020FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00<CR>

Fig. A7-5 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

FFFF<CR> A8. FONT DOWNLOADING COMMANDS

<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

A9. PROGRAMMING EXAMPLES FOR TEXTS


Result:
This example downloads a PCL soft font with ID 100 into flash memory,
and then selects and prints it. This section explains how to select the internal fonts to format the desired printout and
generate the font styles as well as font characteristics. Please refer to the User’s Manual
for the symbol table of each font.

Font 0: This is a USASCII set from code <0x21> to <0x7F>.


Example:
100000000200000Font 0 : ASCII Character Set<CR>

Fig. A9-1

Font 1: This is a USASCII and extension set.


Example:
110000000400000Font 1 : ASCII+Extension Character Set<CR>

Fig. A9-2

Font 2: This is a USASCII and extension set.


Example:
120000000600000Font 2 : ASCII+Extension Character Set<CR>

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 4: This font includes numeric and uppercase letters.


Fig. A9-7
Example:
140000001200000Font 4 : Alphanumeric Uppercase font<CR>

Font 7: This font includes OCR-A ASCII characters.


Example:
Fig. A9-5 170000001500000Font 7 : OCR-A font<CR>

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

OS214/OS214plus/R400/X1000+/X2000+/G6000. The font type is ‘:’ and the height


field represents the symbol set.
Fig. A9-9
ASD smooth font Set Height Symbol set
000 Roman 8

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

size. 003 PC-A


004 PC-B
Example: 190000100400000ASD : 6 Points. ABCabc<CR> 005 Legal
190000200600000ASD : 8 Points. ABCabc<CR> 006 PC437 (Greek)
190000300800000ASD : 10 Points. ABCabc<CR> 007 Russian
190000401100000ASD : 12 Points. ABCabc<CR>
190000501500000ASD : 14 Points. ABCabc<CR> Example: 1:0000000200000Courier : Roman 8 : [\]^{|}~<CR>
190000601900000ASD : 18 Points. ABCabc<CR> 1:0000100500000Courier : ECMA-94 : [\]^{|}~<CR>
1:0000200800000Courier : PC : <03H><04H><05H>[\]^<CR>

1:0000501100000Courier : Legal : [\]^{|}~<CR>


1:0000601400000Courier : PC 437 (GREEK)<CR>

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

Bar code B: UPC-A

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>

Bar code A: Code 3 of 9

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

Example: 130000001320010BAR CODE A : 3 OF 9<CR> Type for


Check Type for readable Valid Bar
1A300000080011019450228<CR> Length Non-readable
sum string codes ratio
string
7 digits
Yes ’C’ ’c’ 0~9 2:3:4
(6+1)

Example: 130000001000000BAR CODE C : UPC-E<CR>


1C0005000800160654321<CR>
Fig. A10-1

68
67
January 23, 2013

Bar code E: Code 128 including subset A, B and C

The default code subset is B.


Subset A: Place an ASCII ‘A’ (DEC 65 or HEX 41) before the data to be encoded.

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”

Variable No ’D’ ’d’ 0~9 2:1~3:1 Type for


Check Type for readable Valid Bar
Length non-readable
sum string codes ratio
string
The digit count should be an even number otherwise a ‘0’ will be automatically entered
from code 0 to
at the first position. variable Yes ’E’ ’e’ 2:3:4
127 (128 codes)

Example: 130000002200000BAR CODE D :<CR>


130000002000000INTERLEAVED 2 of 5<CR> Example: 130000001100000BAR CODE E :<CR>
130004000900000CODE 128<CR>
1D5308001800170135792468<CR>
1E0004000800140TO JIMMY<CR>

Fig. A10-5
Fig. A10-4

The following example will print “24681357” by Code 128 subset C.

70
69
January 23, 2013

Example: 1E0004000800160C24681357<CR> Fig. A10-7


Bar code F: EAN-13 Bar code H: HBIC
Type for
Check Type for readable Valid Bar
Length non-readable Health Industry Bar Code (HBIC) is same as bar code A (code 3 of 9), except that it
sum string codes ratio
string includes an additional modulo 43 checksum.
13 digits
Yes ’F’ ’f’ 0~9 2:3:4
(12+1) Check Type for Type for Valid Bar
Length
sum readable string non-readable string codes ratio
Example: 130000002060000BAR CODE F : EAN-13<CR> 0 ~ 9, A ~ Z,
1F0005001800160135792468228<CR> variable Yes ’H’ ’h’ $%*+-./ and 2 : 1 ~3 : 1
space

Example: 130000002400000BAR CODE H : HBIC<CR>


1H0000001800120HEALTH<CR>
Fig. A10-6

Bar code G: EAN-8


Check Type for Type for Valid Bar
Length
sum readable string non-readable string codes ratio
8 digits Fig. A10-8
Yes ’G’ ’g’ 0~9 2:3:4
(7+1)
Bar code I: Coda bar

Example: 130000001100000BAR CODE G : EAN-8<CR>


1G30000008001600228001<CR> Type for
Check Type for Valid Bar
Length non-readable
sum readable string codes ratio
string
at least 3 0 ~ 9, A ~ D,
No ’I’ ’i’ 2 : 1 ~3 : 1
characters $+-. : And /

72
71
January 23, 2013

Bar code K: Plessey


Example: 130000000900000BAR CODE I : <CR>
130000001100000CODA BAR<CR> An additional checksum will be added to the bar code string where ‘+’ character is
1I0000000800100ABCD0123456789<CR> inserted.

Check Type for Type for Valid Bar


Length
sum readable string non-readable string codes ratio
1 ~ 14
Yes ’K’ ’k’ 0~9 2 : 1 ~3 : 1
Fig. A10-9 digits

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

Example: 130000002100000BAR CODE J : I25<CR>


Same as bar code D (Interleaved 2 of 5) except that it includes a modulo 10 checksum
130000001900000WITH CHECKSUM<CR>
and the horizontal shipping bearer bars.
1J000000180016019970701<CR>

Check Type for Type for Valid Bar


Length
sum readable string non-readable string codes ratio

Variable Yes ’L’ ’l’ 0~9 2:1~3:1


Fig. A10-10
74
73
January 23, 2013

Bar code N: UPC5


The horizontal bearer bars exist only when the input digit count is 13.
Check Type for Type for Valid
Length Bar ratio
Example: 130000002300000BAR CODE L : I25<CR> sum readable string non-readable string codes
130000002100000WITH CHECKSUM &<CR> 5 digits No ’N’ ’n’ 0~9 2:3:4
130000001900000BEARER<CR>
1L00060018001401997070187391<CR> Example: 130000002000000BAR CODE N : UPC5<CR>
1N000500180016002280<CR>

Fig. A10-12

Fig. A10-14

Bar code M: UPC2


Bar code O: Code 93

Check Type for Type for Valid


Length Bar ratio
sum readable string non-readable string codes Type for
Check Type for
2 digits No ’M’ ’m’ 0~9 2:3:4 Length non-readable Valid codes Bar ratio
sum readable string
string

Example: 130000000900000BAR CODE M : UPC2<CR> 0 ~ 9, A ~ Z,


Variable Yes ’O’ ’o’ 2:3:4
1M000500060016038<CR> $%+-./ and space

Example: 130000001100000BAR CODE O :<CR>


130000000900000CODE 93<CR>
1O0000000800120CODE 93 OK<CR>
Fig. A10-13

76
75
January 23, 2013

130000000900000128<CR>
1Q00070010000857812989089990899998<CR>

Fig. A10-15

Bar code P: Postnet

Type for readable Type for Valid


Length Check sum Fig. A10-17
string Non-readable string Codes
Variable Yes Not defined ’p’ 0~9
Bar code R: UCC/EAN Code 128 K-MART

Example: 130000002100000BAR CODE P :<CR>


Check Type for Type for Valid
130000001900000POSTNET<CR> Length Bar ratio
sum readable string non-readable string codes
1p0006001800120199707<CR>
18 digits Yes ’R’ ’r’ 0~9 2:3:4

Example: 130000002300000BAR CODE R<CR>


130000002100000: UCC/EAN<CR>
Fig. A10-16
130000001900000128 K<CR>
1R0006002000083199707011945022800<CR>

Bar code Q: UCC/EAN Code 128

Check Type for Type for Valid


Length Bar ratio
sum readable string non-readable string codes
20 digits
Yes ’Q’ ’q’ 0~9 2:3:4
(19+1) Fig. A10-18

Example: 130000001300000BAR CODE Q<CR> Bar code S: UCC/EAN Code 128 Random weight
130000001100000: UCC/EAN<CR>
78
77
January 23, 2013

Check Type for Type for Valid


Length Bar ratio
sum readable string non-readable string codes
Fig. A10-20
34 digits Yes ’S’ ’s’ 0~9 2:3:4

Bar code V: FIM (Facing Identification Mark)


Example:

130000001300000BAR CODE S : UCC/EAN<CR> Type for readable Type for Valid


Length Check sum
130000001100000CODE 128 RANDOM WEIGHT<CR> string non-readable string codes
1S00050004000001234567890123456789012345678901234<CR> 1 character No Not defined ’v’ A, B, C and D

Example: 130000000900000BAR CODE V :<CR>


130000000700000FIM<CR>
1v0000000600160B<CR>

Fig. A10-19

Bar code T: Telepen

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

b : Horizontal multiplier for module size.


- a 4-digit secondary zip code
d : Vertical multiplier for module size.
- a 3-digit country code
eee : Always 000.
- a 3-digit class of service code
ffff : Y coordinate.
- a data string that can not exceed 84 characters
gggg : X coordinate.
200 : Fixed value for ECC200 of Datamatrix symbol.
Example: 130000002100000BAR CODE U :<CR>
0 : Fixed value.
130000001900000MAXICODE<CR>
jjj : A 3 digit even number (or 000) of rows requested.
1u0000001500160329874444840555TO JIMMY<CR>
000 causes rows to be automatically determined.
kkk : A 3 digit even number (or 000) of columns requested.
000 causes columns to be automatically determined.
ddddd...dd : data to be encoded and printed.

Example: 130000000700050BAR CODE W :<CR>


130000000500050DATAMATRIX<CR>
1W1c55000005001702000000000DATA MATRIX<CR>
Fig. A10-22

Encode the data "DATA MATRIX"


Horizontal multiplier : 4 Vertical multiplier : 4
Bar code W: DataMatrix
Y coordinate : 50 X coordinate : 31

The Datamatrix is a two dimensional bar code (Only for ECC200 of Datamatrix symbol)

Command for DataMatrix:

Fig. A10-23
aW1cbdeeeffffgggg2000jjjkkkddddddddd...dd

Parameters:

Bar code W1d: QR Code (Auto format)


a : Print direction: ‘1’, ’2’, ’3’ or ’4’.
W 1c: Fixed value, for extended bar code set.
c: DataMatrix bar code.
82
81
January 23, 2013

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.

Command for QR Code:

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

0~7= Mask 0~Mask 7


8= No mask Bar code W1f: Aztec Bar Code (Variable Length)
i: Data input mode.
Values: A= Automatic setting, ASCII Aztec Bar Code is only supported on OS-2140 series/A-2240 series/A-3140 series/ CP
a=Automatic, hex-ASCII series/X-2300E/X-3200.
M=Manual setting, ASCII
m=Manual, hex-ASCII Command for Aztec Bar Code:
cdata: Character mode.
Values: N=Numeric, N data aW1fcdeeeffffggggijjjkk…k

A=Alphanumeric, A data Parameters:


Bxxxx= For 8-bit byte mode; xxxx is indicate number of
characters. (A Simple or Traditional Chinese word is 2 a : Print direction: ‘1’, ’2’, ’3’ or ’4’.
W 1f: Fixed value, for extended bar code set.
characters)
86
85
January 23, 2013

This parameter sets Aztec bar code length as variable.


Bar code W1F: Aztec Bar Code (Specified Length/Byte count)
c : Horizontal multiplier for module size.

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

d : Vertical multiplier for module size. series/X-2300E/X-3200.

Default: 0; Value: 1~9, A~Z and a~z.


Command for Aztec Bar Code:
eee : Ineffective; must be 000.
aW1fcdeeeffffgggghhhhijjjkk…k
ffff : Y coordinate.
gggg : X coordinate. Parameters:
i: ECI (Extended Channel Interpretation) mode.
a : Print direction: ‘1’, ’2’, ’3’ or ’4’.
Disable ECI mode: 0, Enable ECI mode: 1
W 1f: Fixed value, for extended bar code set.
jjj: Error correction.
This parameter sets Aztec bar code length as specified with a Byte
000: Default value, approximately 23%.
Count Specifier.
001~099: Error correction percentage.
c : Horizontal multiplier for module size.
101~104: 1 to 4 layers in compacted symbol
Default: 0; Value: 1~9, A~Z and a~z.
201~232: 1 to 32 layers in full symbol.
300: Rune symbol d : Vertical multiplier for module size.
kk…k: Data string. Default: 0; Value: 1~9, A~Z and a~z.
Example:
<STX>L<CR> eee : Ineffective; must be 000.
1W1f88000017001001000AZTEC barcode(W1f)<CR>
122200002700100Aztec Barcode(W1f) <CR> ffff : Y coordinate.
E<CR> gggg : X coordinate.
hhhh: Length Specifier. The field termination is set by Byte Count.
This value includes all of the data following this byte count field,
but not include itself.
i: ECI (Extended Channel Interpretation) mode.
Disable ECI mode: 0, Enable ECI mode: 1
Fig. A10-26 jjj: Error correction.
000: Default value, approximately 23%.

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

D RSS Stacked Omnidirectional the actual barcode height=’default’*’d’*’i’,


(GS1 DataBar Stacked Omnidirectional) the actual barcode height=’eee’.
Width multiplier: 50 pixels; The ‘eee’ unit is set by the “<STX>n” or “STX>m” command.)
Min. Height Multiplier: 69 pixels (default)

ffff : Y coordinate. Value: 0000~9999 Barcode Description

gggg : X coordinate. Value: 0000~9999 E RSS Expanded


h: RSS type (GS1 DataBar Expanded)
R = RSS-14 (GS1 DataBar Omnidirectional) Width multiplier: 102~534 pixels;
T= RSS-14 Truncated (GS1 DataBar Truncated) Min. Height Multiplier: 34pixels (default)
S = RSS-14 Stacked (GS1 DataBar Stacked) Row:1~11
D = RSS Stacked Omnidirectional
(GS1 DataBar Stacked Omnidirectional) ffff : Y coordinate. Value: 0000~9999
L = RSS Limited (GS1 DataBar Limited) gggg : X coordinate. Value: 0000~9999
i : Pixel multiplier. Default: 1; Value: 1~9 h: RSS type
j: No reference. Value= always 0. E = RSS Expanded (GS1 DataBar Expanded)
m: No reference. Value= always 0. i : Pixel multiplier. Default: 1; Value: 1~9
n…n: Value:0~9, numeric ; numeric linear data, length 13. j: No reference. Value= always 0.
|: Optional. Vertical bar separates primary data from secondary 2D data. m: No reference. Value= always 0.
p…p: 2D data. nn: Segments per row. Only work in RSS Expanded
Default value: 22; Accepted Values: 2-22(even only)
Parameter2:
p…p: Alphanumeric. Value: 0~9
a: Print direction: ‘1’, ’2’, ’3’ or ’4’.
|: Optional. Vertical bar separates primary data from secondary 2D data.
W1: Fixed value, for extended bar code set.
q…q: 2D data.
k: RSS bar code.
c: Bar width ratio. No reference. (Value= bar narrow ratio.)
Example:
d: Bar narrow ratio. Default value=2. (Valid value=1~9)
eee: Barcode height. Default value: refer to the following table.
<STX>L<CR>
(If barcode height value=0,
92
91
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

Bar code Z: PDF-417

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:

Length Description a : Print direction: ‘1’, ’2’, ’3’ or ’4’.

1 F : normal, T : truncated W 1z: Fixed value, for extended bar code set.

1 0 ~ 8 : security level This parameter sets MicroPDF417.

2 00 ~ 99 : aspect ratio, 00 stands for c : Horizontal multiplier for module size.

1:2 Default: 0; Value: 1~9, A~Z and a~z.


2 03 ~ 90 : row number, 00 for best fit
d : Vertical multiplier for module size.
2 01 ~ 30 : column number, 00 for best
Default: 0; Value: 1~9, A~Z and a~z.
fit
Variable Data string eee : Ineffective; must be 000.
ffff : Y coordinate.

Example: 130000002100000BAR CODE Z :<CR> gggg : X coordinate.

130000001900000PDF-417<CR> h: Column number; Value: 1~4.

1z4900001800140F0001002ARGOXINFO<CR> i: Row number; Value: 0~9 and A.


j: Byte compaction mode for binary data.
Auto mode: 0; Byte compaction mode: 1.
k: Substitute Macro character function.
Disable substitution mode: 0; Enable substitution mode: 1
Fig. A10-29
o: Fixed value.
m…m: Data string.

Bar code W1z: MiocroPDF417 h i Columns Rows


Max Binary Max Alphabetic Max Numeric
Data (Bytes) Characters Characters
1 0 1 11 3 6 8
MicroPDF417 is only supported on OS-2140 series/A-2240 series/A-3140 series/ CP 1 1 1 14 7 12 17
1 2 1 17 10 18 26
series/X-2300E/X-3200. 1 3 1 20 13 22 32
1 4 1 24 18 30 44
1 5 1 28 22 38 55
Command for MicroPDF417:
2 0 2 8 8 14 20

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

It consists of 3 types of records.

Record type Format Description


Data 80xx[…] xx : hex value, stands for byte count.
[…] : image data, 2 hex digits represent one byte
raster image.
Repeat 0000FFxx xx: repeat count. The repeated data will appear
at the subsequent data record. The maximum value
is 255 (FFH). If the actual repeat count is more
than 255, split it to fit the range.
End FFFF End the HEX file.

APPENDIX AA: HEX GRAPHIC FORMAT

Unlike the PCX, BMP and IMG formats, the HEX format is a proprietary one.
100
99
January 23, 2013

APPENDIX AB: HOW TO SEND THE COMMANDS TO Basic example program:


PRINTER
1 ' Continuous label(2 inches), direct thermal

2 ' Print a bar code and text string

The way to send a command file edited under MS-DOS in PC system is subject to your 3 ' 2 copies

environment: 5 PRINT "A TEST FOR COM PORT"

10 OPEN "COM1:9600,N,8,1" FOR RANDOM AS #1

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

55 PRINT #1, CHR$(2) + "L"


>MODE COM1:9600,N,8,1,P 60 PRINT #1, "D11" ' Resolution
>COPY/B CMDFILE COM1: 70 PRINT #1, "1A5200000400095ARGOX" ' Bar code A: C39

80 PRINT #1, "131100000050030THIS IS A TEST FOR SERIAL PORT."

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

The above command specifies:


 ‘1’ - Portrait orientation.
 ‘;’ - Selects font from font board.
 ‘11’ - Both width multiplier and height multiplier are 1.
 ‘000’ – Fixed value.
 ‘0100’ - Y coordinate.
 ‘0200’ - X coordinate.

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

Courier Font set

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

Internal Bar Codes


This PPLA supports 21 one dimensional bar codes and 8 two dimensional bar codes.
Greek

Russian

114
113
January 23, 2013

116
115
January 23, 2013

118
117
January 23, 2013

APPENDIX AE: PPLA COMMANDS QUICK


REFERENCE CHART

This reference chart is a summary of PPLA commands. A symbol “ * ” represents the


printer supports such function. A character “ S ” indicates that the function can be set
via DIP switches. A character “P” indicates that the function can be set via Panel.

120
119
January 23, 2013

122
121
January 23, 2013

123

You might also like