TP POS58 III User manual

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.

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’smanual carefully before using
yourprinter.
§Store this manual in an accessible location for read it
conveniently and troubleshooting.
FSafety 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.
FCaution
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

1
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-2Power cord
Figure 1-3 Power supply
2
Appearance
TP POS58Ⅲis a new type thermal line printer
Figure 1-4 Printer (Front)
Figure 1-5Printer (Rear)
Upper
co
ver
Paperoutslot
Feed button
Lower base
Auto
-
cutter manual knob
(Auto-cutter version)
Indicators
Interface connector
Cash
-
drawer
interface
Powersupply
socket

3
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
3RXD
Host Printer receives data from host
2TXD
Printer
Return the status to the host
while using commands
to query
the printerstatus.
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.
7GND
------ 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.
4
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 POS58IIIand 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.

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:
6
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
FNote:Screw down the screws on both sides of the cable connector.
2. Attach the other end of the cable to the computer.

7
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
1Chassis ground ---
2Cash-drawer driver signal out
3 Cash-drawer on/off status in
4+12VDC out
5N.C. ---
6Cash-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.
8
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. Otherwiseit may damage the power
supply or the printer.
1. Make sure the power of the printer is turned off and power supply

9
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.
FNote: 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
1
-
15
Open the upper cover
Figure
1
-
16
Load the paper roll

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 backwardby hand, doing this will lower the
print-head life and even damage the printer.
Cleaning the Print Head
Paper dust on the heating elementcan 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 heatingunit 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 Figure1-18 Installed incorrectly
12
CAUTION:
1. Do not scrape or hitthe 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 coolsdown.
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

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 understandthe
printer’sstatus.
Figure 2-1 Indicators andButton
On/Off Switch
The Power switch on the frontmarked []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 bythe printing commands.
lPower 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.
lSelf-test mode
Loading the paper properly.
Feed buttons
Powerswitch
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.
lHexadecimal 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

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 matches 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’tprint 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.

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 107lines, 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 ~ 60oC; R.H. 10 ~ 90%
●Weight :~1.0kg
●Dimensions :116 (W) x 185 (L) x 140 (H) mm
●PrinterModels :POS58IIIIPParallel 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
Linespacing 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 Sendprinter status to host

19
ESC u Sendperipheral status to host
GS a Enable/disablestatussending
GS H Select HRI printing
GS h Set barcode height
GS w Set barcode width
Barcode pinting
GS k Print barcode
POS58Ⅲsupport 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.
PrintingCommands
LF Print andfeed 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 Jn
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 3n
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

21
Example:
CharacterSettingCommands
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 &snm[a[p]s x a]m-n+1
Decimal:27 38 snm[a[p]s x a] m-n+1
Hexadecimal :1B 26 snm[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.

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:
p1
p2
p4 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 *mn1 n2 [d]k
Decimal:27 42 mn1 n2 [d]k
Hexadecimal :1B 2A mn1 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)
uThe number of horizontal dots of the graphics is n1 + 256 x n2.
uIf the number of dot is more than one line, the extra portion will be
ignored. (refer to the following table)
ud 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)
um is the selected bit-map mode
Vertical Horizontal
m
Mode Dot
Density
0
8 dot single density
8
68 dpi
08 dot single density
1
8 dot double density
8
68 dpi
18 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

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-mapMode Vertical Density Horizontal Density
0Normal 203 dpi 203 dpi
1Double Width 203 dpi 101 dpi
2Double Height 101 dpi 203 dpi
3Double 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 x8
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 Vm
Decimal:29 86 m
Hexadecimal :1D 56 m
‚ASCII :GS V66 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:

27
ESC c 8 +/-n Adjustment of partial cut
Format: ASCII :ESC c8+/-n
Decimal:27 99 56 43/45 n
Hexadecimal :1B 63 38 2B/2D n
Explanation:
u0<n<32
uAdjustment of the depth of the partial by n x 0.125mm.
ESC p m n1 n2 Control Cash Drawer
Format: ASCII :ESC pmn1n2
Decimal :27 112 mn1n2
Hexadecimal :1B 70 mn1n2
Explanation:
This command is to generate a pulse to trigger the openingof 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 c5n
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

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 bytethrough TXD line of
the interface. Definition of said byte is shown as below.
GS a n Enable/disable ASB status sending
Format: ASCII :GS an
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 ASBsending Disable Enable
3, 4
Not defined
--
5 Enable/diable ERROR set Busy
(RTS=“MARK”) Disable Enable
6, 7
Not defined
-
Note 1:
uWhen 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.
uIf enable error set busy, when printer detect any errors status will set
BUSY (RTS=”Mark”)
uDefault n = 00H, no ASB sending, Error not set Busy.
uESC @ doesn’t change GS a settings.
ESC uReturn equipmentstatus
Format: ASCII :ESC un
Decimal:27 117 n
Hexadecimal :1B 75 n
Explanation:
Send equipment status to host, only valid to the printer with serial port
(POS58IIIIS/AS)

31
When printer receives the command, it transfers one bytethrough 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 Hn
Decimal:29 72 n
Hexadecimal :1D 48 n
Explanation:
u0 <n <255
n is define as:
nFunction
0 Not printHRI
others
Print HRI
udefault 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 hn
Decimal:29 104 n
Hexadecimal :1D 6n
Explanation:
This command set the bar code height as ndots where n =1-255,default
n=50.
GS w n Set barcode width
Format: ASCII :GS wn
Decimal:29 119 n
Hexadecimal :1D 77 n
Explanation:
Set bar code width withn. n=2~3
The bar code width according to the n as shown below:
n
Thin element
width (mm) Thick element
width (mm)
2
0.250 0.625
3
0.375 1.000
Default n = 2.
GS k md1…dk NUL
GS k m n d1… Print barcode
Format:•ASCII :GS kmd1…dk NUL
Decimal:29 107 md1…dk 0
Hexadecimal :1D 6B md1…dk 00

33
‚ASCII :GS kmnd1…dn
Decimal:29 107 mnd1…dn
Hexadecimal :1D 6B mnd1…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 printthe barcode.
m select the barcode system as follows:
No. of data
mBarcode
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
un 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).
uIf invalid data is met, printer will stop proceeding the print barcode
command and treat the data followed as normal data/commands.
uThis command follows the barcode setting regardsless of the line spacing
parameters set by command ESC 2 or ESC 3
uIf there is data in the print buffer before the print barcode command,
printer will print the buffer data first and then print the barcode.
uAfterprinted the barcode, the next printing position is the beginning of
next line.
When using CODE128 (m = 73):
uPlease see Appendix for details about CODE128 barcode and its code sets.
34
uBefore 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 “{{“.
DataSpecial
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

35
uIf 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.
uIf “{“ 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.
uPrinter will not print any special control code data in HRI.
uFor functional characters, HRI use a “space” to represent it
uFor 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.
uCode set A :ASCII characters 00H -5FH
uCode set B :ASCII characters 20H –7FH
uCode set C :1 characters denotes one 2-digits numerals (totally 100
numerals from 00 to 99)
uSHIFT 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.
uCode set selection characters
Control characters is for selecting which Code sets are used for the data
followed.
uFuntion 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
P50 80
SOH 01
1
)29
41
Q51 81
STX 02
2
* 2A
42
R52 82
Table of contents
Other TP Printer manuals