TP POS58 III User Manual

Page 1
TP POS58
Thermal Line Printer
User’s Manual
The contents of this manual are subject to change without notice!
Warning
This is a class “A” product, it might cause interference with other
electronic products.
Page 2
Safety Information
This section presents important information intended to ensure safe and effective use of this product. 
Before use
§ Please be sure to read the user’s manual carefully before using
your printer.
§ Store this manual in an accessible location for read it
conveniently and troubleshooting.
F Safety Precautions
Please take precautions to the followings. Otherwise, damage to the product may occur.
 Attention
§ If paper jam is occurred, please disconnect the power first and
wait for 10 seconds before clearing the jammed paper.
§ Do not use in locations subject to high humidity or dusty
environment.
§ Do not place heavy objects on top of this products.
F Caution
Paper roll
§ Be sure to use paper rolls that meet the specifications.
§ Do not use paper rolls that have the paper glued to the core, because
this may damage the printer.
                    Contents
Chapter 1 Installation
Unpacking.......................................................................................................3
Appearance....................................................................................................4
Connecting the Printer to the Host Computer...........................................5
Serial Interface...................................................................................5
Parallel Interface................................................................................7
Connecting the Cash-drawer to the Printer...............................................9
Connection of the Power Supply Adapter...............................................10
Loading Paper Roll......................................................................................11
Cleaning the Print Head.............................................................................13
Chapter 2 Using the printer
Operation of Control Panel........................................................................15
Switch............................................................................................................15
Buttons..........................................................................................................15
Indicators ......................................................................................................16
Chapter 3 Troubleshooting
Genearl Problems.......................................................................................18
Chapter 4 Reference Information
Features and Specifications ......................................................................20
Printing control Commands .......................................................................21
Appendix ......................................................................................................32
Page 3
 
Chapter 1 Installation
Unpacking
The illustration below shows the items included for the printer. Checking
and make sure no parts are missing or damaged
Figure 1-1 Printer Figure 1-2 Power cord 
Figure 1-3 Power supply  
 
Appearance
TP POS58 is a new type thermal line printer 
Figure 1-4 Printer (Front)
Figure 1-5 Printer (Rear)
Upper
co
ver
Paper out slot
Feed button
Lower base
Auto-cutter manual knob
(Auto-cutter version)
Indicators
Interface connector
Cash-drawer
interface
Power supply
socket
Page 4
 
Connecting the Printer to the Host Computer
Connect the printer with the host with a correct interface cable which matching the specifications.
Serial Interface
The serial interface of POS58 is compatible with RS-232C standard
which support RTS/CTS and XON/XOFF handshaking. It uses a D-Sub 25 pin (female) socket and the pin assignment of the port is as follows:
Figure 1-6 Pin layout of serial port
The pin assignment of the serial port is shown in Table 1-1.
Pin No. Signal Source
Description
3 RXD Host Printer receives data from host 2
TXD Printer
Return the status to the host
while using commands
to query
the printer status.
4 RTS
Printer
Signal “Mark” indicates that the
printer is busy and unable to
receive data; “Space” indicates
that the printer is READY for
receiving data.
7 GND ------
Signal Ground
* Note:
“Source” denotes the source that signal come from.
Logical signal level is EIA.
Table 1-1 Pin Assignment of Serial Port
The serial port used in TP POS58Ⅲ is compatible with RS-232C standard, which also matches the RS-232C interface of IBM PC. You can connect the wires as shown in Figure 1-7.
 
Default setting of the port is 19200 bps, 8 data bit, 1 or more stop bit and
none parity check bit.
Figure 1-7 Connection between POS58III and IBM PC serial ports
1. Make sure that the power of the printer and computer is turned off. Plug the cable connector into the printer’s interface connector as follows:
Figure 1-8 Connecting to the Serial Interface
2. Attach another end of the cable to the computer.
Page 5
 
Parallel Interface
Parallel port of POS58 is 8-bit interface which support BUSY
handshaking. Using a D-Sub 25 pin (male) socket. Pin order of parallel port is as follows:
Figure 1-9 Pin assignment of parallel port
The pin assignment of parallel port is shown in Table 1-2.
Pin No. Signal I/O
Description
1 /STB In
Strobe pulse, to lat
ch data. Reading occurs at
falling edge
2 3 4 5 6 7 8 9
DATA1 DATA2 DATA3 DATA4 DATA5 DATA6 DATA7 DATA8
In In In In In In In In
These signals represent the 1st bit to 8th bit of the parallel data respectively. Each signal is at HIGH level when data is logical 1 and LOW when data is logical 0
10 /ACK Out Pull up to HIGH logical level by a resistor 11 BUSY Out
HIGH level signal indicates th
at the printer is
BUSY and can not receive data
12 PE Out
HIGH level signal indicates that paper running
out. 13 SEL Out Pull up to HIGH logical level by a resistor 15 /ERR Out Pull up to HIGH logical level by a resistor
14,16,17 NC --- No connection
18-25 GND --- Grounding Logical “0” level
Note: (1) "In" denotes input to the printer, "Out" denotes output from the printer. (2) Signal level is TTL standard.
Table 1-2 Pin assignment of Parallel Port
The timing chart for handshaking signals in parallel port is as follows:
 
Figure 1-10 Signal timing chart of parallel port
1. Make sure that the printer and computer is turn off. Plug the cable
connector into the printer’s interface connector as follows:
Figure 1-11 Connecting to the Parallel Interface
F Note:Screw down the screws on both sides of the cable connector.
2. Attach the other end of the cable to the computer.
Page 6
 
Connecting the cash-drawer to the printer
POS58 adopts the RJ-11, 6-pins type connector as follows
Figure 1-12 Cash Drawer Connection
The pin assignment of the cash-drawer interface is defined as follows:
Pin No.
Signal Direction
1 Chassis ground --­2 Cash-drawer driver signal out
3 Cash-drawer on/off status in
4 +12VDC out 5 N.C. --­6 Cash-drawer on/off signal ground ---
WARNING:
Use a cash-drawer that matches the specification specified. Using an improper cash-drawer may damage the drawer as well as the printer.
CAUTION:
Do not connect a telephone line to the cash-drawer connector; otherwise, the printer and the telephone may be damaged.
 
Plug the cash-drawer cable into the cash-drawer connector next to the power supply connector at the back of the printer as shown in Figure 1-13.
   Fig. 1-13 Connecting of cash-drawer 
Connecting of Power Supply Adapter
Please use the external power supply adapter included.
WARNING:
Using an improper power supply adapter may cause fire, electric shock; reduced printing quality, or damage to the printer.
CAUTION:
When connecting or disconnecting the power supply cable to the printer, make sure the power is turned off and is not plugged into an AC electrical outlet. Otherwise it may damage the power supply or the printer.
1. Make sure the power of the printer is turned off and power supply
Page 7
 
adapter is pull out from the outlet
2. Plug the power cable into the printer’s power socket as shown. 
Figure 1-14 Connecting power to the printer
3. Plug the power cord of the adapter into the AC electrical outlet. F Note: If you want to remove the cable, power-off the power supply
adaptor or unplug the power cord from the electrical outlet, then remove cable by grasping the connector firmly at the arrow mark and pulling straight out.
Loading Paper Roll
TP POS58 use thermal paper roll of 57.5mm in width.
Paper Specification
Model: TF50KS-E (Japan Paper Co., Ltd.) AF50KS-E (JUJO THERMAL)
Paper roll : Width --- 57.5±0.5mm Outside Diameter --- φ50mm (Max) Inside Diameter --- φ13mm (Min)
Thickness (max.): --- 65 µm (Auto-cutter version)
--- 80µm (Manual cutter version)
CAUTION:
  10
The thermal paper roll used should have inner paper cone. Otherwise, the whole paper rolls may be not heavy enough to sit on its position and pull to the printing part, resulting paper jam.
Installing the Paper Roll
TP POS58 thermal line printer has easy loading design, the steps of
loading paper rolls is as follows:
1. Lifting up the Open Lever on the upper cover and then open the
cover, see Figure 1-15.
2. Insert the paper roll, pull out a small amount of paper as shown in
Figure 1-16.
3. Close the cover. The paper end is should be come our of the paper-
out slot of the printer.
Figure
Open the upper cover
Figure
Load the paper roll
Page 8
  11
CAUTION:
Be sure to use high-quality thermal paper recommended in the user’s manual. Too wide or narrow paper rolls will cause paper jam. Low quality thermal paper will lower the printing quality and shorten the print­head life.
CAUTION:
Do not press the 【    】 button while no paper roll is installed and do not pull paper forward or backward by hand, doing this will lower the print-head life and even damage the printer.
Cleaning the Print Head
Paper dust on the heating element can lower the print quality. Please
clean the print head as described below:
Cleaning Step
1. Power off before cleaning the printer head, and make sure that power
supply and communication cable is also disconnected.
2. Open the upper cover of printer; take out the thermal paper roll.
Clean the heating unit of the print head with a cotton swab moistened with alcohol solution.
3. After cleaning, be sure the alcohol on the head is thoroughly
desiccated. Put the paper roll back and close the cover. Turn on the power and begin the self-test in order to check the printing quality after cleaning.
4. If the printing quality is still not good after cleaning, please contact
the servicing professionals.
Figure 1-17 Paper loaded correctly Figure 1-18 Installed incorrectly
  12
CAUTION:
1. Do not scrape or hit the print head by any hard object such as sand paper, edge of knife or screwdriver. It will cause permanent damage to the print head.
2. Be careful not to touch the print head before it cools down.
CAUTION:
When moving the printer, please don’t just take the upper part. Please see the following figures for details.
Figure 1-20 Figure 1-21
Cleaning Area
Printing Head
Figure 1-19 Cleaning the print head
Page 9
  13
Chapter 2 Using the Printer
Operation of the Control Panel
You can control the basic paper feeding operation of the printer with the
button on the control panel. The LED indicators help you understand the printer’s status. 
Figure 2-1 Indicators and Button 
On/Off Switch
The Power switch on the front marked [ ] is used to turn the printer
on or off. 
Buttons 
There are two push buttons marked [ ]and [ ]. These two buttons
can be set to enabled or disabled by the printing commands. l Power On / Off
When in power off mode, press     ]: printer is power up, LED on When in power on mode, press [ ] : printer is power off, LED off.
l Self-test mode
Loading the paper properly.
Feed buttons
Power switch
Indicator
  14
In power off mode, while holding down the [ ] button and press [ ] to turn on the power. Then release [ ] first and then [ ], Self­test begins automatically. The Self-test will check the condition of printer. If the printer prints out the Self-test receipt correctly, it means the printer is working normally. The Self-test will print out the firmware version, interface setting, and 96 ANK characters.
l Hexadecimal printing
Open the upper cover. Hold down the [ ] button while and press [ ] to turn on the power, the printer will go into hexadecimal printing mode. In this mode, printer will print out all received data in hexadecimal format regardless of it is a command code or ASCII code.
Indicators
There are two indicators on the panel of POS58, the Red one is the
Power indicator and the Green one is status indicator. While Green indicator is on, this means the printer is in ON-LINE mode; otherwise in OFF-LINE mode. Green indicator flashing stands for warning signal as described below:
Figure 2-2 Errors shown by flashing of indicator
Paper out
Upper cover
is opened
Print-head
overheated
Auto-cutter
error
Page 10
  15
Chapter 3 Troubleshooting
General Problems
1. Paper is jammed inside the printer Turn the printer power off firstly. Open the upper cover; remove the
jammed paper after the print head is cool down. Reload the paper roll and close the cover again. Using high quality thermal paper, which mat ches the specification and with smooth surface can lower the chance of paper jam.
2. Paper feeding go side way Turn the printer off, open the upper cover, reload and adjust the paper
rolls properly . Close the upper cover again. Using high quality thermal paper which matches the specification and with smooth surface can lower the chance of this phenomenon.
3. The print out is not clear
Check the printerhead first. If cleaning is need, refer to the section about cleaning the print head in this manual and clean it . Then check the thermal paper which matches the specification or not. If print out still not clear after taking the above actions, contact the qualified servicing professionals for assistance.  
4. Printer doesn’t print but the Self-test is okay
Check whether the connecting cable between printer and host is connected properly or not, and make sure the cable meets the connecting requirement (see Chapter 1 for details). If the printer is still cannot work properly , please contact the qualified servicing professional for assistance.
5. The print out has missing column(s)
Check whether dirt is stick to the printer head or not. If so, please refer to this manual for instruction of cleaning the print head. If the problem still exists
  16
after cleaning, some heating units on the print head may be damaged. Please contact the qualified servicing professional for repairing.
6. Abnormal paper feeding Check the whether dirst is stick to the plastic roller on the upper cover. If
so, clean the roller softly with a cotton swab moistened with alcohol solvent. If the problem still persists, check whether the gear wheel of the paper roller has been damaged. If the gear wheel has been damage, contact the qualified servicing professional for repairing.
7. Upper cover is locked caused by the auto-cutter errors When this phenomena occurred, opening of the upper cover is prohibited.
Otherwise, printer will be damaged. Please do follow steps to resume operation:
(1) Press [ ] to switch off the printer (2) Open the auto-cutter manual knob cover, then using a sutiable “-
“ screw-driver to turn the cutter knob anti-clockwise until the cutter is returned to its normal position.
(3) Power on the printer, if there is no auto-cutter error signal (see Figure
2-2), open the upper cover gently and clear the paper may jammed. Then close the upper cover again to resume normal operation.
(4) If the auto-cutter is still locked, please redo the above steps again.
Page 11
  17
Chapter 4 Reference Information
Features and Specifications
Printing Method : Direct line thermal
Printing Paper Width : 57.5 ± 0.5mm
Paper roll max diameter : 80mm Paper roll min diameter : 13mm Paper thickness : 65µm (Auto-cutter version) 80µm (manual-cutter version)
Valid Printing Width : 48mm
Printing Density : 8 dots/mm, 384 dots/line
Printing Speed : 82mm/sec (22 lines/sec)
Line Feed Speed : 82mm/sec (22 lines/sec)
Reliability (MCBF) : 25 x 107 lines, 100km
1,000,000 cuts (auto-cutter version)
Power : DC 24V, 2A; average 2A, peak 6A
Working Environment
* Working temperature : 5 ~ 45oC; R.H. 20 ~ 80% * Storage temperature : -20 ~ 60 oC; R.H. 10 ~ 90%
Weight : ~1.0kg
Dimensions : 116 (W) x 185 (L) x 140 (H) mm
Printer Models : POS58IIIIP Parallel Interface
                     POS58IIIIAP Parallel Interface + auto-cutter POS58IIIIS Serial Interface 
                 POS58IIIIAS Serial Interface + auto-cutter
  18
Printing Control Commands
Summary
Type Commands
Descriptions
LF Print & Line feed
Printing
ESC J Print & n dots line feed ESC 2 Set line spacing at 1/6 inches
Line spacing
ESC 3 n
Set line spacing to n dots (n/137 inches) ESC ! n Set character printing mode ESC SO
Set double-width character printing ESC DC4
Cancel double-width character printing ESC % n Select user-defined characters
Character printing
ESC & Define user-defined characters ESC * Select bitmap printing mode GS * Define download bitmap graphics
Bitmap printing
GS / Print download bitmap graphics GS v Select cut mode & cutting
Auto-cutter control
ESC c 8 Adjustment of partial cut
Cash-drawer
control
ESC p Control cash-drawer
Buttons control ESC c 5 Enable/disable button panel Intialization ESC @ Initralize the printer Printer status ESC v Send printer status to host
Page 12
  19
ESC u Send peripheral status to host GS a
Enable/disable status sending
GS H Select HRI printing GS h Set barcode height GS w Set barcode width
Barcode pinting
GS k Print barcode
POS58support ESC/POS compatible printing commands. The format of each printing commands are illustrated below:
Printing Command Function
Format: ASCII : the sequence in standard ASCII characters Decimal : the sequence in decimal numbers Hexadecimal : the sequence in hexadecimal numbers
Explanation: description of the command. Example: some examples are listed to illustrate the command for better understanding.
Printing Commands
LF Print and feed paper
Format : ASCII : LF Decimal : 10 Hexadecimal : 0A
Explanation: Print the data in the print buffer and feed one line. Feed one line only if buffer
is empty.
  20
ESC J n Print and feed paper ‘n’ dots lines
Format: ASCII : ESC J n Decimal : 27 74 n Hexadecimal : 1B 4A n
Explanation: Print data in buffer and feed ‘n’ dots lines (n/203 inch). n = 0 ~ 255. 
This command is valid for current line only and will not change the space
settings set by ESC 2, ESC 3.
Example:
Line space setting commands
ESC 2 Set line spacing to 1/6
Format: ASCII : ESC 2 Decimal : 27 50 Hexadecimal : 1B 32
Explanation: Set the line spacing to 1/6” which is equal to 32 dot lines.
ESC 3 n Set line spacing to ‘n’ dot lines
Format: ASCII : ESC 3 n Decimal : 27 51 n Hexadecimal : 1B 33 n
Explanation: Set the line spacing to n dot-lines. n = 0 ~ 255, default n = 30. One dot-lines is
1/203 inch for POS58 II, this command set the dot-line spacing to n/203
Page 13
  21
Example:
Character Setting Commands
ESC ! n Set character printing mode
Format: ASCII : ESC ! n Decimal : 27 33 n Hexadecimal : 1B 21 n
Explanation:
Set the character printing mode. Each bit of parameter n is defined as
follows:
    Default value =0, i.e. normal character size.
ESC S0 Set double width character printing
Format: ASCII : ESC S0 Decimal : 27 14 Hexadecimal : 1B 0E
Explanation: Set the double width character printing in the same print line.
This command can be cancelled by carriage return or DC4 commands.
  22
ESC DC4 Cancel double width character printing
Format: ASCII : ESC DC4 Decimal : 27 20 Hexadecimal : 1B 14
Explanation: Cancel the double width character printing mode set by ESC S0.
The double width printing can be cancelled by carriage return or DC4
commands but not the character enlargement set by ESC !.
ESC % n Select user-defined characters
Format: ASCII : ESC % n Decimal : 27 37 n Hexadecimal : 1B 25 n
Explanation: Enable/disable user-defined characters. Default n=0.
When n = 1, user-defined character set is selected. When n = 0, normal character set is selected. Default n=0.
ESC & s n m Define user-defined characters
Format: ASCII : ESC & s n m [a[p]s x a]m-n+1 Decimal : 27 38 s n m [a[p]s x a] m-n+1 Hexadecimal : 1B 26 s n m [a[p]s x a]m-n+1
Explanation: ESC & is used to define user-defined characters. s = 3, 32 = n< m = 126, 0 =
a = 12, 0 = p = 255.
Page 14
  23
§ s is the number of bytes in vertical direction. s=3.
§ n is the starting ASCII code of user-defined character.
§ m is the ending ASCII code of user-defined character.
When define only one character, n equal m. The maximum number of user­defined characters is 96.
§ a is the number of dots in horizontal direction.
§ p is the data of user-defined characters. There are (s x a) bytes in each
character, the total number of user-defined characters is m-n+1.
§ user-defined characters are valid until re-defined, reset or power off. Format of the user-defined characters is shown as follows:
p1p2p4 p7
p5
p3 p6
p3a-2
p3a-1
p3a
MSB
LSB
a dots
24 dots
Graphic Printing Commands
ESC * m n1 n2 d1…dk Select bit-map printing mode
Format: ASCII : ESC * m n1 n2 [d]k Decimal : 27 42 m n1 n2 [d]k Hexadecimal : 1B 2A m n1 n2 [d]k
Explanation: Select bit-map printing mode.
  24
m for setting bit-map graphics mode; n1 n2 for setting number of dots; [d]k for setting contents of dots.
m=0, 1, 32, 33. n1 = 0 ~ 255, n2 = 0 ~ 3. d = 0 ~ 255. k = n1 + 256 x n2, (m=0,1) k = (n1 + 256 x n2) x 3, (m=32,33)
u The number of horizontal dots of the graphics is n1 + 256 x n2. u If the number of dot is more than one line, the extra portion will be
ignored. (refer to the following table)
u d is the bit-map data, for 1 of bit means the related dot will be printed and
for 0 of bit means the related dot will not print ( k is the total no. of data)
u m is the selected bit-map mode
Vertical Horizontal
m
Mode
Dot Density
0 8 dot single density 8 68 dpi 0 8 dot single density
1 8 dot double density 8 68 dpi 1 8 dot double density 32 24 dot single density 24 203 dpi 32 24 dot single density 33 24 dot double density 24 203 dpi 33 24 dot double density
GS / n Print download bit-map graphic
Format: ASCII : GS / n Decimal : 29 47 n Hexadecimal : 1D 2F n
Page 15
  25
Explanation: Print download bit-map graphic. n = 0 ~ 3.
§ n is the printing mode of bit-map graphic selection.
§ To define download bit-map graphic using “GS*” command.
n Bit-map Mode Vertical Density Horizontal Density
0 Normal 203 dpi 203 dpi 1 Double Width 203 dpi 101 dpi 2 Double Height 101 dpi 203 dpi 3 Double Width &
Height
101 dpi 101 dpi
GS * n1 n2 d1…dk Define download bit-map graphic
Format: ASCII : GS * n1 n2 [d]k Decimal : 29 42 n1 n2 [d]k Hexadecimal : 1D 2A n1 n2 [d]k
Explanation: Define download bit-map graphic.
n1 = 0 ~ 48, n2 = 1 ~ 255, n1 x n2 < 9600, k = n1 x n2 x 8.
§ d is the bit-map data.
§ The horizontal size of this graphic is n1 x 8 dots and vertical size is n2 x 8
dots.
§ The definition is valid till re-define, power off or system reset.
Format of the download bit-map data is shown as follows:
  26
Auto-cutter commands
GS V m GS V m n Select bit-map printing mode
Format: ASCII : GS V m Decimal : 29 86 m Hexadecimal : 1D 56 m ASCII : GS V 66 n Decimal : 29 86 66 n Hexadecimal : 1D 56 42 n
Explanation:
0 =n=255 This commands support two type of paper cutting.
when m=0, 48; full cut is commenced when m=1, 49; parital cut is commenced Note : Distance between the printing position and cutting position is 100 dot lines (12.5mm) as bellows:
Page 16
  27
ESC c 8 +/- n
Adjustment of partial cut
Format: ASCII : ESC c 8 +/- n Decimal : 27 99 56 43/45 n Hexadecimal : 1B 63 38 2B/2D n
Explanation:
u 0<n< 32 u Adjustment of the depth of the partial by n x 0.125mm.
ESC p m n1 n2 Control Cash Drawer
Format: ASCII : ESC p m n1 n2 Decimal : 27 112 m n1 n2 Hexadecimal : 1B 70 m n1 n
Explanation: This command is to generate a pulse to trigger the opening of the cash drawer. n1 and n2 define the duration of the trigger pulse. m=0, 0<n1<n2≦255.
n1×2ms is the pulse width for opening of drawer. n2×2ms is the pulse width in low level for closing of drawer.
Start printing positon
Cutting position
Feeding
12.5mm
  28
Status of cash-drawer see ESC u command.
Button control commands
ESC c 5 n On/Off switch button function
Format: ASCII : ESC c 5 n Decimal : 27 99 53 n Hexadecimal : 1B 63 35 n
Explanation: When n=1, button [ ] is inactive, while n=0 button [ ] is active.
Defaul n=0.
Initialization commands
ESC @ Initialize printer
Format: ASCII : ESC @
Decimal : 27 64 Hexadecimal : 1B 40
Explanation: Initialize printer in the following aspects:
§ clear data in print buffer
§ reinstate printer default value
§ select character printing mode
§ clear user-defined characters
Page 17
  29
Printer status commands
ESC v Send printer status to host
Format: ASCII : ESC v Decimal : 27 118 Hexadecimal : 1B 76
Explanation: Send the printer current status to host, only valid for the printer with serial port
(POS58IIIIS/AS). When printer received the command, it transfers one byte through TXD line of the interface. Definition of said byte is shown as below.
GS a n Enable/disable ASB status sending
Format: ASCII : GS a n
Decimal : 29 97 n Hexadecimal : 1D 61 n
Explanation: Enable/disable auto-status back (ASB) sending, valid for serial interface type
models (POS58IIIIS/AS) only.
Explanations
Bit
Function
Value LED
0
1 2 3 4 5 6 7
Auto-cutter not in home psoition not defined Paper out Upper cover not yet close not in use not defined Print-head overheated not defined
1
-----­1 1 0
-----­1
------
flash 1 time
-----­flash 4 times flash 6 times
-----
------
flash fast & evenly
------
  30
Definition of selected bytes
Value
Bit Status definition
0 1
0 Fixe to 0
1
Not defined
2 Enable/disable ASB sending Disable Enable
3, 4
Not defined
5
Enable/diable ERROR set Busy (RTS=“MARK”)
Disable Enable
6, 7
Not defined
Note 1:
u When ASB sending is enabled, printing will automatically send a
status byte to host ignoring whether printer is ready, or printing, or any errors occurred, or stauts of RTS/CTS handshaking status.
u If enable error set busy, when printer detect any errors status will set
BUSY (RTS=”Mark”)
u Default n = 00H, no ASB sending, Error not set Busy. u ESC @ doesn’t change GS a settings.
ESC u Return equipment status
Format: ASCII : ESC u n Decimal : 27 117 n Hexadecimal : 1B 75 n
Explanation: Send equipment status to host, only valid to the printer with serial port (POS58IIIIS/AS)
Page 18
  31
When printer receives the command, it transfers one byte through TXD line of the interface. Definition of said byte is shown as below.
Barcode commands
GS H n Select HRI (Human Readable Interpretation) printing
Format: ASCII : GS H n Decimal : 29 72 n Hexadecimal : 1D 48 n
Explanation: u 0 < n < 255
n is define as:
n Function
0 Not print HRI
others
Print HRI
u default n = 0.
Value
Bit Function
0 1
0 1 2 3 4 5 6 7
Cash Drawer on/off Pin not defined not defined not defined not in use not defined not defined not defined
Low
------
------
-----­0
------
------
------
High
------
------
------
------
------
------
------
  32
GS h n Set barcode height
Format: ASCII : GS h n Decimal : 29 104 n Hexadecimal : 1D 6 n
Explanation: This command set the bar code height as n dots where n = 1-255default
n=50.
GS w n Set barcode width
Format: ASCII : GS w n Decimal : 29 119 n Hexadecimal : 1D 77 n
Explanation:
Set bar code width with n. n=23
The bar code width according to the n as shown below:
Thin element
width (mm)
Thick element
width (mm)
2
0.250 0.625
3
0.375 1.000
Default n = 2.
GS k m d1…dk NUL GS k m n d1… Print barcode
Format: ASCII : GS k m d1…dk NUL Decimal : 29 107 m d1…dk 0 Hexadecimal : 1D 6B m d1…dk 00
Page 19
  33
ASCII : GS k m n d1…dn Decimal : 29 107 m n d1…dn Hexadecimal : 1D 6B m n d1…dn
Explanation:
For •, 0 m 6 (k & d are depends on the barcode system selected) For ‚, 65 m 73 (n & d are depends on the barcode system selected) Selects the bar code system and print the barcode. m select the barcode system as follows:
No. of data
m Barcode
GS w 2 GS w 3
Valid data
Format
4 CODE39 1 k 10 1 k 6
48 d 57, 65 d 90, 32, 36, 37, 43, 45, 46, 47
Format
73 CODE128 3 n 16 3 n 10 0 d 127
u n denotes the number of data (or characters) of the barcode. The printer
will process and print it in barcode format from next data(or bytes).
u If invalid data is met, printer will stop proceeding the print barcode
command and treat the data followed as normal data/commands.
u This command follows the barcode setting regardsless of the line spacing
parameters set by command ESC 2 or ESC 3
u If there is data in the print buffer before the print barcode command,
printer will print the buffer data first and then print the barcode.
u After printed the barcode, the next printing position is the beginning of
next line.
When using CODE128 (m = 73):
u Please see Appendix for details about CODE128 barcode and its code sets.
  34
u Before using this printer for printing CODE128 barcode, please pay
attention of the followings about the data:
1. The first data of the barcode data stream must be the start character
for define which code sets (Code A, B or C) is use.
2. Use “{“ and a character to represent some special control code or
character. For represent “{“ is “{{“.
Data Special control code
ASCII
Hex Dec
Functions
SHIFT {S 7B,53 123,83 Change code set
CODE A {A 7B,41 123,65 Select code set A
CODE B {B 7B,42 123,66 Select code set B CODE C {C 7B,43 123,67 Select code set C
FNC1 {1 7B,31 123,49 Function 1 FNC2 {2 7B,32 123,50 Function 2
FNC3 {3 7B,33 123,51 Function 3
FNC4 {4 7B,34 123,52 Function 4
“{” {{ 7B,7B 123,123 Character “{“
<<Example>> Print “No. 123456” as the barcode data In this example, printer should use Code set B to print “No.” first and then Code set C for the number. GS k 73 10 123 66 78 11 46 123 67 12 34 56
Page 20
  35
u If data is not the valid data in the Code sets, printer will stop proceeding
the print barcode command and treat the data followed as normal data/commands.
u If “{“ and the character followed are not any special control codes
defined, printer will stop proceeding the print barcode command and treat the data followed as normal data/commands.
u Printer will not print any special control code data in HRI. u For functional characters, HRI use a “space” to represent it u For control characters (<00>H to <1F>H & <7F>H), HRI use a “space”
to represent it
  36
Appendix CODE128 Barcode Information
1. Description of the CODE128 Barcode
In CODE128 barcode system, 1 barcode character can represent 128 ASCII characters and 2-digits numerals. The valid barcode characters are defined by 103 barcode characters and 3 Code Sets to represent.
u Code set A : ASCII characters 00H - 5FH u Code set B : ASCII characters 20H – 7FH u Code set C : 1 characters denotes one 2-digits numerals (totally 100
numerals from 00 to 99)
u SHIFT character
In Code set A, the character followed SHIFT is treated as the corresponding charcters in Code set B. Similarily, in Code set B, the character followed SHIFT is treated as the corresponding charcter in Code set A. There is no SHIFT character in Code set C.
u Code set selection characters
Control characters is for selecting which Code sets are used for the data followed.
u Funtion characters
The usage of the function character lie on the applicaton software. In Code set C only FNC1 is valid.
2. Code Set Tables
  (A) Code Set A
Transmit
Data
Transmit
Data
Transmit Data
Character
Hex Dec
Character
Hex Dec
Character
Hex Dec
NUL 00 0
( 28 40
P 50 80
SOH 01 1
) 29 41
Q 51 81
STX 02 2
* 2A 42
R 52 82
Page 21
  37
ETX 03 3
+ 2B 43
S 53 83
EOT 04 4
, 2C 44
T 54 84
ENQ 05 5
- 2D 45
U 55 85
ACK 06 6
. 2E 46
V 56 86
BEL 07 7
/ 2F 47
W 57 87
BS 08 8
0 30 48
X 58 88
T 09 9
1 31 49
Y 59 89
LF 0A 10
2 32 50
Z 5A 90
VT 0B 11
3 33 51
[ 5B 91
FF 0C 12
4 34 52
\ 5C 92
CR 0D 13
5 35 53
] 5D 93
SO 0E 14
6 36 54
^ 5E 94
SI 0F 15
7 37 55
_ 5F 95
DLE 10 16
8 38 56 FNC1
7B,
31
123,49
DC1 11 17
9 39 57 FNC2 7B,32 123,50
DC2 12 18
: 3A 58 FNC3 7B,33 123,51
DC3 13 19
; 3B 59 FNC4 7B,34 123,52
DC4 14 20
< 3C 60 SHIFT 7B,53 123,83
NAK 15 21
= 3D 61 CODEB 7B,42 123,66
SYN 16 22
> 3E 62 CODEC 7B,43 123,67
ETB 17 23
? 3F 63
CAN 18 24
@ 40 64
EM 19 25
A 41 65
SUB 1A 26
B 42 66
ESC 1B 27
C 43 67
FS 1C 28
D 44 68
GS 1D 29
E 45 69
RS 1E 30
F 46 70
US 1F 31
G 47 71
SP 20 32
H 48 72
! 21 33
I 49 73
" 22 34
J 4A 74
# 23 35
K 4B 75
$ 24 36
L 4C 76 % 25 37 M 4D 77 & 26 38
N 4E 78
' 27 39
O 4F 79
  38
(B) Code Set B 
Transmit
Data
Transmit
Data
Transmit Data
Character
Hex Dec
Character
Hex Dec
Character
Hex Dec
SP 20 32
H 48 72
p 70 112
! 21 33
I 49 73
q 71 113
" 22 34
J 4A 74
r 72 114
# 23 35
K 4B 75
s 73 115
$ 24 36
L 4C 76
t 74 116
% 25 37
M 4D 77
u 75 117
& 26 38
N 4E 78
V 76 118
' 27 39
O 4F 79
w 77 119
( 28 40
P 50 80
x 78 120
) 29 41
Q 51 81
y 79 121
* 2A 42
R 52 82
z 7A 122
+ 2B 43
S 53 83
{ 7B,7B
123, 123
, 2C 44
T 54 84
| 7C 124
_ 2D 45
U 55 85
} 7D 125
. 2E 46
V 56 86
7E 126
/ 2F 47
W 57 87 DEL 7F 127
0 30 48
X 58 88 FNC1 7B,31 123,49
1 31 49
Y 59 89 FNC2 7B,32 123,50
2 32 50
Z 5A 90 FNC3 7B,33 123,51
3 33 51
[ 5B 91 FNC4 7B,34 123,52
4 34 52
\ 5C 92 SHIFT 7B,53 123,83
5 35 53
] 5D 93 CODEA 7B,41 123,66
6 36 54
^ 5E 94 CODEC 7B,43 123,67
7 37 55
_ 5F 95
8 38 56
` 60 96
9 39 57
a 61 97
: 3A 58
b 62 98
; 3B 59
c 63 99
< 3C 60
d 64 100
= 3D 61
e 65 101
> 3E 62
f 66 102
? 3F 63
g 67 103
@ 40 64
h 68 104
A 41 65
i 69 105
Page 22
  39
B 42 66
j 6A 106
C 43 67
k 6B 107
D 44 68
l 6C 108
E 45 69
m 6D 109
F 46 70
n 6E 110
G 47 71
o 6F 111
(C) Code Set C 
Transmit
Data
Transmit
Data
Transmit Data
Character
Hex Dec
Character
Hex Dec
Character
Hex  Dec 
00 00 0
40 28 40
80 50 80
01 01 1
41 29 41
81 51 81
02 02 2
42 2A 42
82 52 82
03 03 3
43 2B 43
83 53 83
04 04 4
44 2C 44
84 54 84
05 05 5
45 2D 45
85 55 85
06 06 6
46 2E 46
86 56 86
07 07 7
47 2F 47
87 57 87
08 08 8
48 30 48
88 58 88
09 09 9
49 31 49
89 59 89
10 0A 10
50 32 50
90 5A 90
11 0B 11
51 33 51
91 5B 91
12 0C 12
52 34 52
92 5C 92
13 0D 13
53 35 53
93 5D 93
14 0E 14
54 36 54
94 5E 94
15 0F 15
55 37 55
95 5F 95
16 10 16
56 38 56
96 60 96
17 11 17
57 39 57
97 61 97
18 12 18
58 3A 58
98 62 98
19 13 19
59 3B 59
99 63 99
20 14 20
60 3C 60 FNC1 7B,31 123,49
  40
21 15 21
61 3D 61 CODEA 7B,41 123,65
22 16 22
62 3E 62 CODEB 7B,42 123,66
23 17 23
63 3F 63
24 18 24
64 40 64
25 19 25
65 41 65
26 1A 26
66 42 66
27 1B 27
67 43 67
28 1C 28
68 44 68
29 1D 29
69 45 69
30 1E 30
70 46 70
31 1F 31
71 47 71
32 20 32
72 48 72
33 21 33
73 49 73
34 22 34
74 4A 74
35 23 35
75 4B 75
36 24 36
76 4C 76
37 25 37
77 4D 77
38 26 38
78 4E 78
39 27 39
79 4F 79
Loading...