CUSTOM KPM180H Kiosk Printers User Manual

June 13, 2024
CUSTOM

KPM180H Kiosk Printers

Product Information: – Product Name: KPM180H TK180 –
Manufacturer: CUSTOM S.p.A. – Manufacturer Address: Via Berettine
2/B 43010 Fontevivo (PARMA) – Italy – Contact Information: Tel. :
+39 0521-680111, Fax : +39 0521-610701, Website: www.custom.biz – Customer Service
Department: Website: www.custom4u.it – Copyright
Protection: The pre-installed multimedia contents are protected
from Copyright CUSTOM S.p.A. – Trademarks: Other company and
product names mentioned may be trademarks of their respective
companies. – Third-party Products: Mention of third-party products
is for informational purposes only and does not constitute an
endorsement or recommendation by CUSTOM S.p.A. – Responsibility:
CUSTOM S.p.A. assumes no responsibility for the performance or use
of third-party products. – CE Mark: The CE mark affixed to the
product certifies that the product satisfies the basic safety
requirements. – Conformity: The device is in conformity with the
essential requirements laid down in Directives 2014/53/EU about
devices equipped with intentional radiators. Product Usage
Instructions:
1. General Instructions: – CUSTOM S.p.A. declines
all responsibility for accidents or damage to persons or property
occurring as a result of: – Tampering, structural or functional
modifications. – Unsuitable or incorrect installations. –
Environments not in keeping with the equipment’s protection degree
or with the required temperature and humidity conditions. – Failure
to carry out maintenance and periodic inspections. – Poor repair
work. 2. Guidelines for Disposal of the Product: – The format used
for this manual aims to reduce the quantity of necessary paper to
print this copy, thus improving the use of natural resources. 3.
Consulting Commands Manual: – Each command reported in this manual
is described as follows: – The first heading field displays the
hexadecimal command value and the ASCII command value. – The second
heading field provides the command function. – The third heading
field lists the devices on which it is possible to use the command
(e.g., device AAAA). 4. Command Example: – Command Value: 0x0D –
Command Function: Print and carriage return – Devices that use the
command: AAAA, BBBB, CCCC – Information: – When Autofeed is CR
enabled, this command functions in the same way as 0x0A (line
feed), otherwise it is disregarded. – This command sets the
printing position to the beginning of the line. Note: The images
used in this manual are for illustrative purposes only and may not
faithfully reproduce the described model. The information provided
in this manual is referred to all models in production at the issue
date of this document unless otherwise specified.

COMMANDS MANUAL
KPM180H TK180

CUSTOM S.p.A. Via Berettine 2/B 43010 Fontevivo (PARMA) – Italy Tel. : +39 0521-680111 Fax : +39 0521-610701 http: www.custom.biz
Customer Service Department: www.custom4u.it
© 2022 CUSTOM S.p.A. ­ Italy. All rights reserved. Total or partial reproduction of this manual in whatever form, whether by printed or electronic means, is forbidden. While guaranteeing that the information contained in it has been carefully checked, CUSTOM S.p.A. and other entities utilized in the realization of this manual bear no responsibility for how the manual is used. Information regarding any errors found in it or suggestions on how it could be improved are appreciated. Since products are subject to continuous check and improvement, CUSTOM S.p.A. reserves the right to make changes in information contained in this manual without prior notiication.
The pre-installed multimedia contents are protected from Copyright CUSTOM S.p.A. Other company and product names mentioned herein may be trademarks of their respective companies. Mention of third-party products is for informational purposes only and constitutes neither an endorsement nor a recommendation. CUSTOM S.p.A. assumes no responsibility with regard to the performance or use of these products.
THE IMAGES USED IN THIS MANUAL ARE USED AS AN ILLUSTRATIVE EXAMPLES. THEY COULDN’T REPRODUCE THE DESCRIBED MODEL FAITHFULLY.
UNLESS OTHERWISE SPECIFIED, THE INFORMATION GIVEN IN THIS MANUAL ARE REFERRED TO ALL MODELS IN PRODUCTION AT THE ISSUE DATE OF THIS DOCUMENT.
GENERAL INSTRUCTIONS CUSTOM S.p.A. declines all responsibility for accidents or damage to persons or property occurring as a result of tampering, structural or functional modiications, unsuitable or incorrect installations, environments not in keeping with the equipment’s protection degree or with the required temperature and humidity conditions, failure to carry out maintenance and periodical inspections and poor repair work.

GENERAL SAFETY INFORMATION Your attention is drawn to the following actions that could compromise the characteristics of the product: · Read and retain the instructions which follow. · Follow all indications and instructions given
on the device. · Make sure that the surface on which the device
rests is stable. If it is not, the device could fall, seriously damaging it. · Make sure that the device rests on a hard (non-padded) surface and that there is suficient ventilation. · Do not ix indissolubly the device or its accessories such as power supplies unless speciically provided in this manual. · When positioning the device, make sure cables do not get damaged. · [Only OEM equipment] The equipment must be installed in a kiosk or system that provides mechanical, electrical and ire protection. · The mains power supply must comply with the rules in force in the Country where you intend to install the equipment. · Make sure that there is an easily-accessible outlet with a capacity of no less than 10A closely to where the device is to be installed. · Make sure the power cable provided with the appliance, or that you intend to use is suitable with the wall socket available in the system. · Make sure the electrical system that supplies power to the device is equipped with a ground wire and is protected by a diferential switch. · Before any type of work is done on the machine, disconnect the power supply. · Use the type of electrical power supply indicated on the device label. · These devices are intended to be powered by a separately certiied power module having an SELV, non-energy hazardous output. (IEC60950-1 second edition). · [Only POS equipment] The energy to the equipment must be provided by power supply approved by CUSTOM S.p.A. · Take care the operating temperature range of equipment and its ancillary components. · Do not block the ventilation openings. · Do not insert objects inside the device as this could cause short-circuiting or damage components that could jeopardize printer functioning. · Do not carry out repairs on the device yourself, except for the normal maintenance operations given in the user manual. · The equipment must be accessible on these components only to trained, authorized personnel. · Periodically perform scheduled maintenance on the device to avoid dirt build-up that could compromise the correct, safe operation of the unit. · Do not touch the head heating line with bare hands or metal objects. Do not perform any operation inside the printer immediately after printing because the head and motor tend to become very hot. · Use consumables approved by CUSTOM S.p.A.

THE CE MARK AFFIXED TO THE PRODUCT CERTIFY THAT THE PRODUCT SATISFIES THE BASIC SAFETY REQUIREMENTS.
The device is in conformity with the essential Electromagnetic Compatibility and Electric Safety requirements laid down in Directives 2014/30/EU and 2014/35/EU inasmuch as it was designed in conformity with the provisions laid down in the following Standards: · EN 55032 (Electromagnetic compatibility of
multimedia equipment – Emission Requirements) · EN EN55024/EN55035 (Electromagnetic compatibility of multimedia equipment – Immunity requirements) · EN IEC/EN62368-1 (Audio/video, information and communication technology equipment)
The device is in conformity with the essential requirements laid down in Directives 2014/53/EU about devices equipped with intentional radiators. The Declaration of Conformity and other available certiications can be downloaded from the site www.custom4u.it.
GUIDELINES FOR THE DISPOSAL OF THE PRODUCT
The crossed-out rubbish bin logo means that used electrical and electronic products shall NOT be mixed with unsorted municipal waste. For more detailed information about recycling of this product, refer to the instructions of your country for the disposal of these products. · Do not dispose of this equipment as miscel-
laneous solid municipal waste, but arrange to have it collected separately. · The re-use or correct recycling of the electronic and electrical equipment (EEE) is important in order to protect the environment and the wellbeing of humans. · In accordance with European Directive WEEE 2012/19/EU, special collection points are available to which to deliver waste electrical and electronic equipment and the equipment can also be handed over to a distributor at the moment of purchasing a new equivalent type. · The public administration and producers of electrical and electronic equipment are involved in facilitating the processes of the re-use and recovery of waste electrical and electronic equipment through the organisation of collection activities and the use of appropriate planning arrangements. · Unauthorised disposal of waste electrical and electronic equipment is punishable by law with the appropriate penalties.

The format used for this manual improves use of natural resources reducing the quantity of necessary paper to print this copy.

INTRODUCTION CUSTOM/POS EMULATION
SVELTA EMULATION ALIGNMENT RFID

INTRODUCTION
1 CONSULTING COMMANDS MANUAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 IDENTIFICATION OF THE MODELS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 PAPER SPECIFICATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

1 CONSULTING COMMANDS MANUAL
Each command reported in this manual is described as shown in the following picture. In the irst heading ield is reported the hexadecimal command value and the ASCII command value. In the second heading ield reported the command function. In the third heading ield are listed the devices on which it is possible to use the command (for example, device AAAA).
Link to index

Command value
Command function Devices
that use the command
Information valid for devices AAAA, BBBB, CCC
Information valid only for devices AAAA, BBBB
Information valid only for device CCCC

0x0D
Print and carriage return

Valid for

AAAA BBBB CCCC

[Format] [Range] [Description]

Hex ASCII

0x0D CR

When Autofeed is “CR enabled”, this command function in the same way as 0x0A, otherwise it is disregarded.

[Notes] [Default] [Reference] [Example]

This command sets the printing position to the beginning of the line.
AAAA BBBB
· Thic command sets the printing position to the beginning of the line.
CCCC · This command is immediately executed even when the data buffer is full. · This status is transmitted whenever data sequence is received.
0x0A

6 Introduction

The ields shown in the scheme of the previous igure have the following meaning:

[Format] [Range] [Description] [Notes] [Default] [Reference] [Example]

Hexadecimal and ASCII command value. Limits of the values the command and its variables can take Description of command function Additional information about command use and settings . Default value of the command and its variables. Pertaining commands related to described command. Example of using the command

Listed below are the meanings of some of symbols that may be found in the command description:

0x n, m, t, x, y

indicates the representation of the command hexadecimal value (for example 0x40 means HEX 40). are optional parameters that can have diferent values.

Introduction 7

2 IDENTIFICATION OF THE MODELS

NOMENCLATURE

DESCRIPTION

KPM180H 1

KPM180H base coniguration

KPM180H 2

KPM180H with autocutter and presenter

KPM180H 3

KPM180H with autocutter, presenter and external RFID reader/writer

KPM180H 4

KPM180H with autocutter and presenter (linerless model)

KPM180H 5

KPM180H with autocutter, presenter and external RFID reader/writer (linerless model)

KPM180H 6

KPM180H with autocutter, presenter and internal RFID reader/writer (linerless model)

TK180 MET 1

TK180 with metal chassis

TK180 MET 2

TK180 with metal chassis and external RFID reader/writer

TK180 MET 3

TK180 with metal chassis and internal RFID reader/writer (linerless model)

TK180 CUT 1

TK180 with metal chassis, autocutter and presenter

TK180 CUT 2

TK180 with metal chassis, autocutter, presenter and external RFID reader/writer

TK180 CUT 3

TK180 with metal chassis, autocutter, presenter and internal RFID reader/writer (linerless model)

TK180 PLAS 1

TK180 with plastic chassis

TK180 PLAS 2

TK180 with plastic chassis and external RFID reader/writer

TK180 PLAS 3

TK180 with plastic chassis and internal RFID reader/writer (linerless model)

8 Introduction

min 40 mm +1 5
0
DIRECTION OF PAPER FEED

3 PAPER SPECIFICATION
All the dimensions shown in following igures are in millimetres. Paper with black mark The following image shows the placement of the black mark on paper. The black mark can be printed both on the thermal side and on the non-thermal side of paper and it can be placed anywhere on the whole width of the paper. For more information about the use of paper with black mark see user manual.
9+1 0
PAPER WIDTH from 20 to 82 mm
Introduction 9

DIRECTION OF PAPER FEED

min 2

min 40

Fan-fold paper with hole The following image shows the placement of the hole on the paper. The hole can be positioned across the width of the ticket. To manage tickets with hole, set the parameter “Black mark position” to “Transparent”. For more information about the use of paper with hole see user manual.
min 10
PAPER WIDTH from 20 to 82 mm
10 Introduction

Ticket with RFID tag (models with RFID reader/writer)
RFID (acronym for Radio Frequency IDentiication) is a technology to identify automatically items using radio waves; this system is based on wireless data capture from RFID tag using appropriate readers. The RFID tag, or transponder, is made up of : · the microchip that stores the data (including also a unique serial number written); · an RFID antenna.
The device models with RFID reader are equipped with an RFID transceiver, provided with antenna, that allows to send and receive RF data to and from the tag. For this application the ticket dimensions are not binding but for good reading is important that the tag inside the ticket, after alignment, intersects the antenna area. The following igures show the available positions of antenna RFID inside the device (for some models, only the internal printer group is represented).
KPM180H 3, KPM180H 5 TK180 MET 2 TK180 CUT 2 TK180 PLAS 2
38
9

21.3

41

92

printing line

Introduction 11

KPM180H 6 TK180 MET 3 TK180 CUT 3 TK180 PLAS 3

18.5

36.5

fixed cursor for

paper in

12

92

printing line

12 Introduction

CUSTOM/POS EMULATION
1 COMMANDS LISTED IN ALPHANUMERIC ORDER . . . . . . . . . . . . . . . . . . . 14 2 COMMANDS LISTED BY FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

1 COMMANDS LISTED IN ALPHANUMERIC ORDER
0x08 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 0x09 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 0x0A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 0x0D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 0x10 0x04 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 0x18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 0x1B 0x20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 0x1B 0x21. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC !> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 0x1B 0x24. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC $> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 0x1B 0x25. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC %> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 0x1B 0x26. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC &>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 0x1B 0x28 0x76 . . . . . . . . . . . . . . . . . . . . .<ESC ( v> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 0x1B 0x2A . . . . . . . . . . . . . . . . . . . . . . . . .<ESC *> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 0x1B 0x2D . . . . . . . . . . . . . . . . . . . . . . . . .<ESC -> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 0x1B 0x30. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 0> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 0x1B 0x32. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 2> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 0x1B 0x33. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 3> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 0x1B 0x34. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 0x1B 0x3F . . . . . . . . . . . . . . . . . . . . . . . . .<ESC ?> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 0x1B 0x40. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC @> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 0x1B 0x44. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 0x1B 0x45. . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 0x1B 0x47. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 0x1B 0x4A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 0x1B 0x4D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 0x1B 0x52. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
14 CUSTOM/POS emulation

0x1B 0x56. . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 0x1B 0x5C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 0x1B 0x61. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 0x1B 0x63 0x35 . . . . . . . . . . . . . . . . . . . . .<ESC c 5> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 0x1B 0x64. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 0x1B 0x69. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 0x1B 0x74. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 0x1B 0x76. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 0x1B 0x7B . . . . . . . . . . . . . . . . . . . . . . . . .<ESC {> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 0x1B 0xC1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 0x1B 0xFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 0x1C 0x3C 0x53 0x56 0x45 0x4C 0x3E. . .<FS < S V E L > > . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 0x1C 0x65 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 0x1C 0x66 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 0x1C 0x6C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 0x1C 0x6E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 0x1C 0x90 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 0x1C 0x91 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 0x1C 0x92 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 0x1C 0x93 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 0x1C 0x94 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 0x1C 0xC1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 0x1C 0xEA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 0x1D 0x21 . . . . . . . . . . . . . . . . . . . . . . . . .<GS !> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 0x1D 0x28 0x6B . . . . . . . . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
CUSTOM/POS emulation 15

0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 0x1D 0x28 0x6B [fn 066] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 0x1D 0x28 0x6B [fn 066] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 0x1D 0x28 0x6B [fn 068] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 0x1D 0x28 0x6B [fn 068] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 0x1D 0x28 0x6B [fn 365] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 0x1D 0x28 0x6B [fn 366] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 0x1D 0x28 0x6B [fn 367] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 0x1D 0x28 0x6B [fn 368] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 0x1D 0x28 0x6B [fn 380] . . . . . . . . . . . . . .<GS (k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 0x1D 0x28 0x6B [fn 381] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 0x1D 0x2A . . . . . . . . . . . . . . . . . . . . . . . . .<GS *> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 0x1D 0x2F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 0x1D 0x3A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 0x1D 0x42 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
16 CUSTOM/POS emulation

0x1D 0x43 0x30 . . . . . . . . . . . . . . . . . . . . .<GS C 0> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 0x1D 0x43 0x31 . . . . . . . . . . . . . . . . . . . . .<GS C 1> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 0x1D 0x43 0x32 . . . . . . . . . . . . . . . . . . . . .<GS C 2> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 0x1D 0x43 0x3B . . . . . . . . . . . . . . . . . . . . .<GS C ;>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 0x1D 0x48 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 0x1D 0x49 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 0x1D 0x4C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 0x1D 0x50 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 0x1D 0x57 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 0x1D 0x5E . . . . . . . . . . . . . . . . . . . . . . . . .<GS ^> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 0x1D 0x63 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 0x1D 0x65 0X35 . . . . . . . . . . . . . . . . . . . . .<GS e 5> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 0x1D 0x66 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 0x1D 0x68 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 0x1D 0x6B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 0x1D 0x72 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 0x1D 0x76 0x30 . . . . . . . . . . . . . . . . . . . . .<GS v 0> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 0x1D 0x77 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 0x1D 0x7C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 0x1D 0xD0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 0x1D 0xE0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 0x1D 0xE1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 0x1D 0xE2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 0x1D 0xE3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 0x1D 0xE5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 0x1D 0xE6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 0x1D 0xE7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 0x1D 0xE9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
CUSTOM/POS emulation 17

0x1D 0xF0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 0x1D 0xF6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 0x1D 0xF8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
18 CUSTOM/POS emulation

2 COMMANDS LISTED BY FUNCTION
COMMANDS FOR BARCODE PRINTING
0x1D 0x28 0x6B . . . . . . . . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Print two-dimensional barcode
0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Specify the number of columns of PDF417 barcode
0x1D 0x28 0x6B [fn 066] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Specify the number of rows of PDF417 barcode
0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Specify the width of a module of PDF417 barcode
0x1D 0x28 0x6B [fn 068] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Specify the height of the module of PDF417 barcode
0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Specify the error correction level of PDF417 barcode
0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Store the PDF417 barcode data in the barcode save area
0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Encodes and prints the PDF417 barcode data in the barcode save area
0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Specify encoding scheme of QRcode barcode
0x1D 0x28 0x6B [fn 066] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Specify dot size of the module of the QRcode barcode
0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Specify QRcode barcode size
0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Specify the error correction level of the QRcode barcode
0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Store the QRcode barcode data in the barcode save area
0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Prints the QRcode barcode data
0x1D 0x28 0x6B [fn 365] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Specify the encoding scheme of DATAMATRIX barcode
0x1D 0x28 0x6B [fn 366] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Set rotation of DATAMATRIX barcode
0x1D 0x28 0x6B [fn 367] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Set dot size of the module of DATAMATRIX barcode
CUSTOM/POS emulation 19

0x1D 0x28 0x6B [fn 368] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Set size of DATAMATRIX barcode
0x1D 0x28 0x6B [fn 380] . . . . . . . . . . . . . .<GS (k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Store the DATAMATRIX barcode data in the barcode save area
0x1D 0x28 0x6B [fn 381] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Encodes and prints the DATAMATRIX barcode data in the barcode save area
0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Specify encoding scheme of AZTEC barcode
0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Specify dot size of the module of the AZTEC barcode
0x1D 0x28 0x6B [fn 068] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Specify AZTEC barcode size
0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Specify the error correction level of the AZTEC barcode
0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Store the AZTEC barcode data in the barcode save area
0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Prints the AZTEC barcode data
0x1D 0x48 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Select printing position of Human Readable Interpretation (HRI) characters
0x1D 0x66 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Select font for HRI characters
0x1D 0x68 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Set barcode height
0x1D 0x6B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Print barcode
0x1D 0x77 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Set barcode width
CHARACTER COMMANDS
0x18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Cancel current line transmitted
0x1B 0x20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Set right-side character spacing
0x1B 0x21. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC !> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Select print modes
0x1B 0x25. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC %> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Select/cancel user-deined characters
20 CUSTOM/POS emulation

0x1B 0x26. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC &>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Deines user-deined characters
0x1B 0x2D . . . . . . . . . . . . . . . . . . . . . . . . .<ESC -> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Turn underline mode on/of
0x1B 0x34. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Turn italic mode on/of
0x1B 0x3F . . . . . . . . . . . . . . . . . . . . . . . . .<ESC ?> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Cancel user-deined characters
0x1B 0x45. . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Turn emphasized mode on/of
0x1B 0x47. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Turn double-strike mode on/of
0x1B 0x4D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Select character font
0x1B 0x52. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Select an international character set
0x1B 0x56. . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Set 90° rotated print mode
0x1B 0x74. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Select character code table
0x1B 0x7B . . . . . . . . . . . . . . . . . . . . . . . . .<ESC {> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Turn upside-down printing mode on/of
0x1B 0xC1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Select character pitch
0x1D 0x21 . . . . . . . . . . . . . . . . . . . . . . . . .<GS !> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Select character size
0x1D 0x42 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Turn black and white reverse printing mode on or of
COMMANDS FOR TT FONTS MANAGEMENT
0x1C 0x65 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Enable or disable encoding for TrueType fonts
0x1C 0x66 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
TrueType fonts management
0x1D 0xE9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Load a TrueType font
CUSTOM/POS emulation 21

LINE SPACING COMMANDS
0x1B 0x30. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 0> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Select 1/8-inch line spacing
0x1B 0x32. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 2> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Select 1/6-inch line spacing
0x1B 0x33. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 3> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Set line spacing
PRINT COMMANDS
0x0A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Print and line feed
0x0D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Print and carriage return
0x1B 0x4A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Print and paper feed
0x1B 0x64. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Print and feed paper n rows
0x1D 0x7C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Set printing density
STATUS COMMANDS
0x10 0x04 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Real-time status transmission
0x1B 0x76. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Transmit paper sensor status
0x1C 0xEA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Transmit the device serial number
0x1D 0x72 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Transmit status
0x1D 0xE0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Enable / disable automatic FULL STATUS BACK
0x1D 0xE1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Reading of length paper available before virtual paper-end
0x1D 0xE2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Reading number of cuts performed from the device
22 CUSTOM/POS emulation

0x1D 0xE3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Reading of length of printed paper
0x1D 0xE5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Reading number of power up
BIT-IMAGE COMMANDS
0x1B 0x2A . . . . . . . . . . . . . . . . . . . . . . . . .<ESC > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Select bit image mode
0x1D 0x2A . . . . . . . . . . . . . . . . . . . . . . . . .<GS
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Deine dowloaded bit image
0x1D 0x2F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Print dowloaded bit image
0x1D 0x76 0x30 . . . . . . . . . . . . . . . . . . . . .<GS v 0> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Print raster bit image
PRINT POSITION COMMANDS
0x08 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Back space
0x09 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Horizontal tab
0x1B 0x24. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC $> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Set absolute print position
0x1B 0x28 0x76 . . . . . . . . . . . . . . . . . . . . .<ESC ( v> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Set relative vertical print position
0x1B 0x44. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Set horizontal tab positions
0x1B 0x5C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Set relative print position
0x1B 0x61. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Select justiication
0x1D 0x4C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Set left margin
0x1D 0x57 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Set printing area width
CUSTOM/POS emulation 23

MACRO FUNCTIONS COMMANDS
0x1D 0x3A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Start / end macro deinition
0x1D 0x5E . . . . . . . . . . . . . . . . . . . . . . . . .<GS ^> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Execute macro
COMMANDS FOR MECHANISM CONTROL
0x1B 0x69. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Total cut
0x1C 0xC1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Paper recovery after cut
0x1D 0xF0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Set printing speed
ALIGNMENT COMMANDS
0x1D 0xE7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Set notch distance
0x1D 0xF6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Align the ticket with the print head
0x1D 0xF8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Align the ticket with the autocutter
PRESENTER MANAGEMENT COMMANDS
0x1D 0x65 0X35 . . . . . . . . . . . . . . . . . . . . .<GS e 5> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Perform the ticket ejection
LOGOS MANAGEMENT COMMANDS
0x1B 0xFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Receive the graphic page from the communication port
0x1C 0x90 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Get number of stored logo
0x1C 0x91 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Get pictures header list
0x1C 0x92 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Get pictures header info
24 CUSTOM/POS emulation

0x1C 0x93 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Print logo
0x1C 0x94 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Save the image received from serial port into the lash
MISCELLANEOUS COMMANDS
0x1B 0x40. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC @> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Initialize device
0x1B 0x63 0x35 . . . . . . . . . . . . . . . . . . . . .<ESC c 5> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Enable / disable keys panel
0x1C 0x3C 0x53 0x56 0x45 0x4C 0x3E. . .<FS < S V E L > > . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Change device emulation to SVELTA
0x1C 0x6C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Reload paper
0x1C 0x6E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Set mass storage
0x1D 0x43 0x30 . . . . . . . . . . . . . . . . . . . . .<GS C 0> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Select counter print mode
0x1D 0x43 0x31 . . . . . . . . . . . . . . . . . . . . .<GS C 1> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Select count mode (A)
0x1D 0x43 0x32 . . . . . . . . . . . . . . . . . . . . .<GS C 2> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Set counter
0x1D 0x43 0x3B . . . . . . . . . . . . . . . . . . . . .<GS C ;>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Select count mode (B)
0x1D 0x49 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
Transmit device ID
0x1D 0x50 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Set horizontal and vertical motion units (mode 1)
0x1D 0x63 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Print counter
0x1D 0xD0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Set horizontal and vertical motion units (mode 2)
0x1D 0xE6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Virtual paper-end limit
CUSTOM/POS emulation 25

26 CUSTOM/POS emulation

COMMANDS FOR BARCODE PRINTING

0x1D 0x28 0x6B
Print two-dimensional barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 28 6B pL pH cn fn

GS (

k

pL pH cn fn

cn = 0x30, 0x34 0x41 fn 0x45 0x50 fn 0x51

Processes the data concerning two-dimensional barcode, with: cn = barcode type fn = function

cn 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x31 0x31 0x31 0x31

fn 0x41 0x42 0x43 0x44 0x45 0x50 0x51 0x41 0x42 0x43 0x45

FUNCTION

Function 0x1D 0x28 0x6B [fn 065]

PDF 417: Specify the number of columns

Function 0x1D 0x28 0x6B [fn 066]

PDF 417: Specify the number of rows

Function 0x1D 0x28 0x6B [fn 067]

PDF 417: Specify the width of module

Function 0x1D 0x28 0x6B [fn 068]

PDF 417: Specify the module height

Function 0x1D 0x28 0x6B [fn 069]

PDF 417: Specify the error correction level

Function 0x1D 0x28 PDF 417: Store the received data in the barcode save

0x6B [fn 080]

area

Function 0x1D 0x28 PDF 417: Print the barcode data in the barcode save

0x6B [fn 081]

area

Function 0x1D 0x28 0x6B [fn 065]

QRcode: Specify encoding scheme

Function 0x1D 0x28 0x6B [fn 066]

QRcode: Specify dot size of the module

Function 0x1D 0x28 0x6B [fn 067]

QRcode: Specify size of barcode

Function 0x1D 0x28 0x6B [fn 069]

QRcode: Specify the error correction level

CUSTOM/POS emulation 27

[Notes] [Default] [Reference] [Example]

0x31 0x31 0x33 0x33 0x33 0x33 0x33 0x33 0x34 0x34 0x34 0x34 0x34 0x34

0x50 0x51 0x41 0x42 0x43 0x44 0x50 0x51 0x41 0x43 0x44 0x45 0x50 0x51

Function 0x1D 0x28 QRcode: Store the received data in the barcode save

0x6B [fn 080]

area

Function 0x1D 0x28 0x6B [fn 081]

QRcode: Print the barcode data

Function 0x1D 0x28 0x6B [fn 365]

DATAMATRIX: Set encoding scheme

Function 0x1D 0x28 0x6B [fn 366]

DATAMATRIX: Set rotate

Function 0x1D 0x28 0x6B [fn 367]

DATAMATRIX: Set dot size of the module

Function 0x1D 0x28 0x6B [fn 368]

DATAMATRIX: Set size of barcode

Function 0x1D 0x28 DATAMATRIX: Store the received data in the barcode

0x6B [fn 380]

save area

Function 0x1D 0x28 DATAMATRIX: Print the barcode data in the barcode

0x6B [fn 381]

save area

Function0x1D 0x28 0x6B [fn 065]

AZTEC: Specify encoding scheme

Function0x1D 0x28 0x6B [fn 067]

AZTEC: Specify dot size of the module

Function 0x1D 0x28 0x6B [fn 068]

AZTEC: Specify size of barcode

Function 0x1D 0x28 0x6B [fn 069]

AZTEC: Specify the error correction level

Function 0x1D 0x28 0x6B [fn 080]

AZTEC: Store the received data in the barcode save area

Function0x1D 0x28 0x6B [fn 081]

AZTEC: Print the barcode

28 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 065] Specify the number of columns of PDF417 barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 30 41 n

GS (

k

pL pH 0

A

n

[Range] [Description] [Notes] [Default]

(pL + pH × 256) = 3 0x00 n 0x1E

(pL = 3, pH = 0)

Speciies the number of columns of PDF417 barcode. · pL and pH specify the number of successive bytes to be sent. · n = 0x00 speciies auto processing. When n = 0x00, the maximum number of columns in the data area is 30 columns. · When n 0x00, speciies the number of rows in the data area.

· The following data is not included in the number of columns: – start pattern and stop pattern – indicator code word of left and right
· Settings are efective until 0x1B 0x40 is executed or the device is reset or the power is turned of.

n = 0x00

[Reference]

0x1D 0x28 0x6B

[Example]

To deine 3 columns, the command sequence is 0x1D 0x28 0x6B 0x03 0x00 0x30 0x41 0x03

Start Left row pattern indicator

Data codewords

Right row Stop indicator pattern

row 1 row 2 row 3 row 4 row 5 row 6

CUSTOM/POS emulation 29

0x1D 0x28 0x6B [fn 066] Specify the number of rows of PDF417 barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 30 42 n

GS (

k

pL pH 0

B

n

[Range] [Description] [Notes] [Default]

(pL + pH × 256) = 3 n = 0x00 0x03 n 0x14

(pL = 3, pH = 0)

Speciies the number of rows of PDF417 barcode. · pL and pH specify the number of successive bytes to be sent. · n = 0x00 speciies auto processing. When n = 0x00 the maximum number of rows is 20. When n 0x00, n speciies the number of rows of the data area.

Settings are efective until 0x1B 0x40 is executed, the device is reset or the power is turned of.

n = 0x00

[Reference]

0x1D 0x28 0x6B

[Example]

To deine 3 rows, the command sequence is 0x1D 0x28 0x6B 0x03 0x00 0x30 0x42 0x03

Start Left row pattern indicator

Data codewords

Right row Stop indicator pattern

row 1 row 2 row 3 row 4 row 5 row 6

30 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 067] Specify the width of a module of PDF417 barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 30 43 n

GS (

k

pL pH 0

C

n

[Range] [Description]

(pL + pH × 256) = 3 0x02 n 0x08

(pL = 3, pH = 0)

Speciies the width of a module of PDF417 barcode. pL and pH specify the number of successive bytes to be sent.

[Notes] [Default]

Settings are efective until 0x1B 0x40 is executed, the device is reset or the power is turned of. n = 0x03

[Reference] [Example]

0x1D 0x28 0x6B
To set width = 4, the command sequence is 0x1D 0x28 0x6B 0x03 0x00 0x30 0x43 0x04

Module height

Module width

0

5

10

15 17 Modules number

CUSTOM/POS emulation 31

0x1D 0x28 0x6B [fn 068] Specify the height of the module of PDF417 barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 30 44 n

GS (

k

pL pH 0

D

n

[Range] [Description]

(pL + pH × 256) = 3 0x02 n 0x08

(pL = 3, pH = 0)

Speciies the height of the module of the PDF417 barcode. pL and pH specify the number of successive bytes to be sent.

[Notes] [Default]

Settings are efective until 0x1B 0x40 is executed, the device is reset or the power is turned of. n = 0x03

[Reference] [Example]

0x1D 0x28 0x6B
To set height = 4, the command sequence is: 0x1D 0x28 0x6B 0x03 0x00 0x30 0x44 0x04

Module height

Module width

0

5

10

15 17 Modules number

32 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 069] Specify the error correction level of PDF417 barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 30 45 m n

GS (

k

pL pH 0

E

m n

[Range] [Description] [Notes]

(pL + pH × 256) = 4 (pL = 4, pH = 0)

m = 0x30

0x30 n 0x38

m = 0x31

0x01 n 0x28

Speciies the error correction level of PDF417 barcode.

This error correction allows the barcode to endure some damage without causing loss of data. The

error correction level depends on the amount of data that needs to be encoded, the size and the

amount of symbol damage that could occur.

· pL and pH specify the number of successive bytes to be sent.

· m = 0x30

the error correction level is speciied by “level”

· m = 0x31

the error correction level is speciied by “ratio” [n × 10%].

· Error correction level is speciied by either “level” or “ratio”. · Error correction level speciied by “level” (m = 0x30) is as follows. The number of the error correction code word is ixed regardless of the number of code words on the data area.

n

CORRECTION LEVEL

0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38

Error correction level 0 Error correction level 1 Error correction level 2 Error correction level 3 Error correction level 4 Error correction level 5 Error correction level 6 Error correction level 7 Error correction level 8

N. OF ERROR CORRECTION CODE WORD 2 4 8 16 32 64 128 256 512

CUSTOM/POS emulation 33

[Default] [Reference] [Example]

· Error correction level speciied by “ratio” (m = 0x31) is as follows. The error correction level is deined by the calculated value [number of data code word × n × 0.1 = (A)]. The number of the error correction code word is changeable in proportion to the number of the code words on the data area.

CALCULATED VALUE (A) 0 – 3 4 – 10 11 – 20 21 – 45 46 – 100 101 – 200 201 – 400

400

CORRECTION LEVEL
Error correction level 1 Error correction level 2 Error correction level 3 Error correction level 4 Error correction level 5 Error correction level 6 Error correction level 7 Error correction level 8

N. OF ERROR CORRECTION CODE WORD 4 8 16 32 64 128 256 512

Settings are efective until 0x1B 0x40 is executed, the device is reset or the power is turned of.
m = 0x31, n = 0x01 [ratio: 10%] 0x1D 0x28 0x6B To set error correction = 0.2, the command sequence is: 0x1D 0x28 0x6B 0x03 0x00 0x30 0x45 0x30 0x02

34 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 080] Store the PDF417 barcode data in the barcode save area

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 30 50 30 d1…dk

GS (

k

pL pH 0

P

0

d1…dk

[Range] [Description]

0x00 d 0xFF k = (pL + pH × 256) – 3 · PDF417 barcode only with ASCII characters:
4 (pL + pH × 256) 1112 (0 pL 255, 0 pH 4) · PDF417 barcode only with alphanumeric characters:
4 (pL + pH × 256) 1854 (0 pL 255, 0 pH 7) · PDF417 barcode only with numeric characters:
4 (pL + pH × 256) 2729 (0 pL 255, 0 pH 10)
Store the PDF417 barcode data (d1…dk) in the barcode save area. · pL and pH specify the number of successive bytes to be sent. · k bytes of d1…dk are processed as barcode data.

[Notes] [Default]

· Data stored in the barcode save area by this function are processed by Function 0x1D 0x28 0x6B [fn 081] and then reserved. · Specify only the data code word of the barcode with this function. Be sure not to include the control data in the data d1…dk because they are added automatically by the device. · Settings are efective until 0x1B 0x40 is executed, the device is reset or the power is turned of.

[Reference]

0x1D 0x28 0x6B

[Example]

CUSTOM/POS emulation 35

0x1D 0x28 0x6B [fn 081]

<GS ( k>

Encodes and prints the PDF417 barcode data in the barcode save area

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 30 51 30

GS (

k

pL pH 0

Q

0

[Range]

(pL + pH × 256) = 3 (pL = 3, pH = 0)

[Description]

Encodes and prints the PDF417 barcode data in the barcode save area. pL and pH specify the number of successive bytes to be sent.

[Notes]

· In standard mode, use this function when device is at the beginning of a line or there is no data in the print bufer. · A barcode that size exceeds the printing area cannot be printed. · If there is any error described below in the data of the barcode save area, it cannot be printed.
– There is no data (Function 0x1D 0x28 0x6B [fn 080] is not processed). – If [(number of columns × number of rows) < number of code word] when auto processing is speciied for number of columns and number of rows. – Number of code word exceeds 928 in the data area. · When auto processing (Function 0x1D 0x28 0x6B [fn 065]) is speciied, the number of columns is calculated by the current printing area, module width (Function 0x1D 0x28 0x6B [fn 067]) and the code word in the data area. Maximum number of the columns is 30.

[Default] [Reference]

0x1D 0x28 0x6B

[Example]

To print the PDF417 barcode data the command sequence is 0x1D 0x28 0x6B 0x03 0x00 0x30 0x51 0x30

36 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 065] Specify encoding scheme of QRcode barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 28 6B pL pH 31 41 n

GS (

k

pL pH 1

A

n

(pL + pH × 256) = 3 0x00 n 0x01

(pL = 3, pH = 0)

Speciies encoding type of QRcode barcode.

n 0x00 0x01

ENCODING QRcode MicroQR

[Notes] [Default] [Reference] [Example]

· QRcode encodes all extended ASCII characters data up to a maximum length of 7089 numeric digits, 4296 alphabetic characters or 2953 bytes of data. · pL and pH specify the number of successive bytes to be sent. · MicroQR is a miniature version of the QRcode barcode for short message. MicroQR encodes all numbers from 0 to 9 up to a maximum length of 35 characters.
n = 0x00

QRcode Model 2

MicroQR

CUSTOM/POS emulation 37

0x1D 0x28 0x6B [fn 066] Specify dot size of the module of the QRcode barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 31 43 n

GS (

k

pL pH 1

B

n

[Range] [Description] [Notes]

(pL + pH × 256) = 3 0x02 n 0x18

(pL = 3, pH = 0)

Speciies numbers of dot for each pixel of QRcode barcode.

pL and pH specify the number of successive bytes to be sent.

[Default]

n = 0x00

[Reference]

0x1D 0x28 0x6B

[Example]

Module 6 dots

38 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 067] Specify QRcode barcode size

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 28 6B pL pH 31 43 n

GS (

k

pL pH 1

C

n

(pL + pH × 256) = 3 0x00 n 0x28

(pL = 3, pH = 0)

Speciies QRcode barcode eversion, as follows:

n 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D

VERSION AUTO V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13

n 0x0E 0x0F 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B

VERSION V14 V15 V16 V17 V18 V19 V20 V21 V22 V23 V24 V25 V26 V27

n 0x1C 0x1D 0x1E 0x1F 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27 0x28

VERSION V28 V29 V30 V31 V32 V33 V34 V35 V36 V37 V38 V39 V40

[Notes] [Default] [Reference] [Example]

pL and pH specify the number of successive bytes to be sent. n = 0x00 0x1D 0x28 0x6B

CUSTOM/POS emulation 39

0x1D 0x28 0x6B [fn 069] Specify the error correction level of the QRcode barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 28 6B pL pH 31 45 n

GS (

k

pL pH 1

E

n

(pL + pH × 256) = 3 0x30 n 0x34

(pL = 4, pH = 0)

Speciies the ECC level (Error Correction Capacity) of QRcode barcode.

n 0x30 0x31 0x32 0x33 0x34

ECC level

AUTO

ECC = approx 20% of symbol

Recovery Capacity = approx 7%

ECC = approx 37% of symbol

Recovery Capacity = approx 15%

ECC = approx 55% of symbol

Recovery Capacity = approx 25%

ECC = approx 65% of symbol

Recovery Capacity = approx 30%

[Notes] [Default] [Reference] [Example]

pL and pH specify the number of successive bytes to be sent. n = 0x30 0x1D 0x28 0x6B

Level L

Level M

Recover Capability L MQ H
7% 15% 25% 30%

Level Q

Level H

40 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 080] Store the QRcode barcode data in the barcode save area

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 31 50 31 d1…dk

GS (

k

pL pH 1

P

1

d1…dk

[Range] [Description]

0x00 d 0xFF k = (pL + pH × 256) – 3 · QRcode barcode only with binary characters (8 bit):
4 (pL + pH × 256) 2957 (0x00 pL 0xFF, 0x00 pH 0x0B) · QRcode barcode only with alphanumeric characters:
4 (pL + pH × 256) 4300 (0x00 pL 0xFF, 0x00 pH 0x10) · QRcode barcode only with numeric characters:
4 (pL + pH × 256) 7093 (0x00 pL 0xFF, 0x00 pH 0x1B)
Store the QRcode barcode data (d1…dk) in the barcode save area.

[Notes]

· Data stored in the barcode save area by this function are processed by Function 0x1D 0x28 0x6B [fn 081] and then reserved. · pL and pH specify the number of successive bytes to be sent. · k bytes of d1…dk are processed as barcode data. · Specify only the data code word of the barcode with this function.

[Default] [Reference]

0x1D 0x28 0x6B

[Example]

CUSTOM/POS emulation 41

0x1D 0x28 0x6B [fn 081] Prints the QRcode barcode data

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 31 51 31

GS (

k

pL pH 1

Q

1

[Range]

(pL+pH × 256) = 3

(pL = 3, pH = 0)

[Description]

Prints the QRcode barcode in the current position.

[Notes]

pL and pH specify the number of successive bytes to be sent.

[Default] [Reference]

0x1D 0x28 0x6B

[Example]

42 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 365] Specify the encoding scheme of DATAMATRIX barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 28 6B pL pH 33 41 n

GS (

k

pL pH 3

A

n

(pL+pH × 256) = 3 0x00 n 0x06

(pL = 3, pH = 0)

Set the encoding scheme for the DATAMATRIX barcode, speciied by n as follows:

n 0x00 0x01 0x02 0x03 0x04 0x05 0x06

ENCODING ASCII C40 Text X12 Edifact
Base256 AutoBest

[Notes] [Default] [Reference] [Example]

pL and pH specify the number of successive bytes to be sent.
0x1D 0x28 0x6B To set encoding = ASCII, the command sequence is 0x1D 0x28 0x6B 0x03 0x00 0x33 0x41 0x00

CUSTOM/POS emulation 43

0x1D 0x28 0x6B [fn 366] Set rotation of DATAMATRIX barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 28 6B pL pH 33 42 n

GS (

k

pL pH 3

B

n

(pL + pH × 256) = 3 n = 0x00, 0x01

(pL = 3, pH = 0)

Set rotate by n as follows:

n 0x00 0x01

ROTATION No rotation
Rotation

[Notes] [Default] [Reference] [Example]

pL and pH specify the number of successive bytes to be sent. 0x1D 0x28 0x6B

44 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 367] Set dot size of the module of DATAMATRIX barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 33 43 n

GS (

k

pL pH 3

C

n

[Range] [Description]

(pL+pH × 256) = 3 0x02 n 0x18

(pL = 3, pH = 0)

Set dot size of the module of the DATAMATRIX barcode: n = dot dimension

[Notes]

pL and pH specify the number of successive bytes to be sent.

[Default]

n = 0x06

[Reference]

0x1D 0x28 0x6B

[Example]

To set dot size = 6 the command sequence is 0x1D 0x28 0x6B 0x03 0x00 0x33 0x43 0x06

CUSTOM/POS emulation 45

0x1D 0x28 0x6B [fn 368] Set size of DATAMATRIX barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 28 6B pL pH 33 44 n

GS (

k

pL pH 3

D

n

(pL + pH × 256) = 3 0x01 n 0x1D

(pL = 3, pH = 0)

Set the size of DATAMATRIX barcode speciied by n as follows:

n 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F

DIMENSIONE BARCODE 10 x 10 12 x 12 14 x 14 16 x 16 18 x 18 20 x 20 22 x 22 24 x 24 26 x 26 32 x 32 36 x 36 40 x 40 44 x 44 48 x 48 52 x 52

n 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x1D

DIMENSIONE BARCODE 64 x 64 72 x 72 80 x 80 88 x 88 96 x 96 104 x 104 120 x 120 132 x 132 144 x 144 8 x 18 8 x 32 12 x 26 12 x 36 16 x 36

[Notes] [Default] [Reference] [Example]

pL and pH specify the number of successive bytes to be sent. DmtxSymbolSquareAuto 0x1D 0x28 0x6B

46 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 380] Store the DATAMATRIX barcode data in the barcode save area

<GS (k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 33 50 33 d1…dk

GS (

k

pL pH 3

P

3

d1…dk

[Range] [Description]

0x00 d 0xFF k = (pL + pH × 256) – 3 · DATAMATRIX barcode only with ASCII characters (8 bit) :
4 (pL + pH × 256) 1560 (0x00 pL 0xFF, 0x00 pH 0x06) · DATAMATRIX barcode only with alphanumeric characters:
4 (pL + pH × 256) 2339 (0x00 pL 0xFF, 0x00 pH 0x09) · DATAMATRIX barcode only with numeric characters:
4 (pL + pH × 256) 3120 (0x00 pL 0xFF, 0x00 pH 0x0C)
Store the DATAMATRIX barcode data (d1…dk) in the barcode save area.

[Notes]

· Data stored in the barcode save area by this function are processed by Function 0x1D 0x28 0x6B [fn 381] and then reserved. · pL and pH specify the number of successive bytes to be sent. · k bytes of d1…dk are processed as barcode data. · Specify only the data code word of the barcode with this function. Be sure not to include the control data in the data d1…dk because they are added automatically by the device.

[Default] [Reference]

0x1D 0x28 0x6B

[Example]

CUSTOM/POS emulation 47

0x1D 0x28 0x6B [fn 381]

<GS ( k>

Encodes and prints the DATAMATRIX barcode data in the barcode save area

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 33 51 33

GS (

k

pL pH 3

Q

3

[Range]

(pL+pH × 256) = 3

(pL = 3, pH = 0)

[Description]

Encodes and prints the DATAMATRIX barcode data in the barcode save area.

[Notes]

· In standard mode, use this function when device is at the beginning of a line or there is no data in the print bufer. · pL and pH specify the number of successive bytes to be sent. · A barcode that size exceeds the printing area cannot be printed. · If there is any error described below in the data of the barcode save area, it cannot be printed.
– There is no data (Function 0x1D 0x28 0x6B [fn 380] is not processed). – If [(number of columns × number of rows) < number of code word] when auto processing is speciied for number of columns and number of rows. – Number of code word exceeds 928 in the data area. · When auto processing (Function 0x1D 0x28 0x6B [fn 365]) is speciied, the number of columns is calculated by the current printing area, module width (Function 0x1D 0x28 0x6B [fn 367]) and the code word in the data area. Maximum number of the columns is 30.

[Default] [Reference]

0x1D 0x28 0x6B

[Example]

To print the DATAMATRIX barcode data the command sequence is 0x1D 0x28 0x6B 0x03 0x00 0x33 0x51 0x33

48 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 065] Specify encoding scheme of AZTEC barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 28 6B pL pH 34 41 n

GS (

k

pL pH 4

A

n

(pL+pH × 256) = 3 0x00 n 0x01

(pL = 3, pH = 0)

Speciies encoding type of AZTEC barcode.

n 0x00 0x01

ENCODING FULL AZTEC AZTEC RUNE

[Notes] [Default] [Reference] [Example]

· Full Aztec: Encode all extended ASCII characters data up to a maximum length of approximately 3823 numeric or 3067 alphabetic characters or 1914 bytes of data. · pL and pH specify the number of successive bytes to be sent. · “AZTEC RUNE” is a compact Aztec Code, sometimes called “SMALL AZTEC CODE”. Encode all numbers from 0 to 255 up to a maximum length of 3 numbers.
n = 0x00
0x1D 0x28 0x6B

CUSTOM/POS emulation 49

0x1D 0x28 0x6B [fn 067] Specify dot size of the module of the AZTEC barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 34 43 n

GS (

k

pL pH 4

C

n

[Range] [Description] [Notes]

(pL+pH × 256) = 3 0x02 n 0x24

(pL = 3, pH = 0)

Speciies numbers of dot for each pixel of AZTEC barcode.

pL and pH specify the number of successive bytes to be sent.

[Default]

n = 0x02

[Reference]

0x1D 0x28 0x6B

[Example]

Module 6 dots

50 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 068] Specify AZTEC barcode size

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 28 6B pL pH 34 44 n

GS (

k

pL pH 4

D

n

(pL+pH × 256) = 3 0x00 n 0x24

(pL = 3, pH = 0)

Speciies AZTEC barcode format (rows and columns), as follows:

n 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C

FORMAT AUTO C15X15 Compact C19X19 Compact C23X23 Compact C27X27 Compact C19X19 C23X23 C27X27 C31X31 C37X37 C41X41 C45X45 C49X49

n 0x0D 0x0E 0x0F 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19

FORMAT C53X53 C57X57 C61X61 C67X67 C71X71 C75X75 C79X79 C83X83 C87X87 C91X91 C95X95 C101X101 C105X105

n 0x1A 0x1B 0x1C 0x1D 0x1E 0x1F 0x20 0x21 0x22 0x23 0x24

FORMAT C109X109 C113X113 C117X117 C121X121 C125X125 C131X131 C135X135 C139X139 C143X143 C147X147 C151X151

[Notes] [Default] [Reference] [Example]

pL and pH specify the number of successive bytes to be sent. n = 0x00 0x1D 0x28 0x6B

CUSTOM/POS emulation 51

0x1D 0x28 0x6B [fn 069] Specify the error correction level of the AZTEC barcode

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 28 6B pL pH 34 45 n

GS (

k

pL pH 4

E

n

(pL+pH × 256) = 4 0x00 n 0x04

(pL = 4, pH = 0)

Speciies the ECC level (Error Correction Capacity) of AZTEC barcode.

n 0x00 0x01 0x02 0x03 0x04

ECC level AUTO

10 % + 3 codewords > 23 % + 3 codewords > 36 % + 3 codewords > 50 % + 3 codewords

[Notes] [Default] [Reference] [Example]

It is not possible to select both barcode size and error correction capacity for the same barcode. If both options are selected then the error correction capacity selection will be ignored. pL and pH specify the number of successive bytes to be sent. n = 0x00 0x1D 0x28 0x6B

52 CUSTOM/POS emulation

0x1D 0x28 0x6B [fn 080] Store the AZTEC barcode data in the barcode save area

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 34 50 34 d1…dk

GS (

k

pL pH 4

P

4

d1…dk

[Range] [Description]

0x00 d 0xFF k = (pL + pH × 256) – 3 · AZTEC barcode only with ASCII characters:
4 (pL + pH × 256) 1918 (0x00 pL 0xFF, 0x00 pH 0x07) · AZTEC barcode only with alphanumeric characters:
4 (pL + pH × 256) 3071 (0x00 pL 0xFF, 0x00 pH 0x0B) · AZTEC barcode only with numeric characters:
4 (pL + pH × 256) 3836 (0x00 pL 0xFF, 0x00 pH 0x0E)
Store the AZTEC barcode data (d1…dk) in the barcode save area.

[Notes]

· Data stored in the barcode save area by this function are processed by Function 0x1D 0x28 0x6B [fn 081] and then reserved. · pL and pH specify the number of successive bytes to be sent. · k bytes of d1…dk are processed as barcode data. · Specify only the data code word of the barcode with this function. Make sure you don’t include control data that will automatically be added by the device.

[Default] [Reference]

0x1D 0x28 0x6B

[Example]

CUSTOM/POS emulation 53

0x1D 0x28 0x6B [fn 081] Prints the AZTEC barcode data

<GS ( k>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 28 6B pL pH 34 51 30

GS (

k

pL pH 4

Q

0

[Range]

(pL+pH × 256) = 3

(pL = 3, pH = 0)

[Description]

Prints the AZTEC barcode in the current position.

[Notes]

pL and pH specify the number of successive bytes to be sent.

[Default] [Reference]

0x1D 0x28 0x6B

[Example]

54 CUSTOM/POS emulation

0x1D 0x48

Select printing position of Human Readable Interpretation (HRI) characters

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 48 n

GS H

n

0x00 n 0x03 0x30 n 0x33

Selects the printing position of HRI characters when printing barcodes. n selects the printing positions as follows:

n 0x00, 0x30 0x01, 0x31 0x02, 0x32 0x03, 0x33

FUNCTION Not printed Above the barcode Below the barcode Both above and below the barcode

[Notes] [Default] [Reference]

HRI characters are printed using the font speciied by 0x1D 0x66. n = 0x00 0x1D 0x66, 0x1D 0x6B

CUSTOM/POS emulation 55

[Example]

Not printed Above the barcode

ABCDEFG123456

Below the barcode Both above and below the barcode

ABCDEFG123456 ABCDEFG123456
ABCDEFG123456

56 CUSTOM/POS emulation

0x1D 0x66
Select font for HRI characters

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 66 n

GS f

n

n = 0x00, 0x01, 0x30, 0x31

Selects a font for the HRI characters used when printing a barcode. n selects a font from the following table:

n 0x00, 0x30 0x01, 0x31

FONT Font A Font B

[Notes] [Default] [Reference] [Example]

HRI characters are printed at the position speciied by 0x1D 0x48. n = 0x00 0x1D 0x48, 0x1D 0x6B

Font A

ABCDEFG123456

Font B

ABCDEFG 123456

CUSTOM/POS emulation 57

0x1D 0x68
Set barcode height

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 68 n

GS h

n

[Range] [Description] [Notes]

0x01 n 0xFF
Sets the height of the barcode. n speciies the number of vertical dots.

[Default] [Reference]

n = 0xA2 (20.25 mm) 0x1D 0x6B

[Example]

To print a barcode with height of 15 mm, the command sequence is: 0x1D 0x68 0x78

Where: 15 mm = 15 × 8 dots = 120 dots which converted in hexadecimal value = 0x78

58 CUSTOM/POS emulation

0x1D 0x6B
Print barcode

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format 1]

Hex ASCII

1D 6B m

GS k

m

00 [d1..dk] NUL [d1..dk] [Format 2]

ASCII Hex

GS k

m n

1D 6B m n

[d1..dn] [d1..dn] [Range]

Format 1

0x00 m 0x08 m = 0x14

Format 2

0x41 m 0x49 m = 0x5A

[Description]

Selects a barcode system and prints the barcode. m selects a barcode system as follows:

Format 1

m
0x00 0x01 0x02 0x03

BARCODE SYSTEM UPC-A UPC-E EAN13 (JAN) EAN8 (JAN)

0x04 CODE39

0x05 ITF

0x06 CODABAR

0x07 0x08 0x14

CODE93 CODE128 CODE32

NUMBER OF CHARACTERS 0x0B k 0x0C 0x0B k 0x0C 0x0C k 0x0D 0x07 k 0x08
0x01 k
0x01 k (even number)
0x01 k
0x01 k 0xFF 0x02 k 0xFF 0x08 k 0x09

REMARKS
0x30 d 0x39 0x30 d 0x39 0x30 d 0x39 0x30 d 0x39 0x30 d 0x39, 0x41 d 0x5A, 0x20, 0x24, 0x24, 0x2B, 0x2D, 0x2E, 0x2F
0x30 d 0x39
0x30 d 0x39, 0x41 d1 0x44, 0x24, 0x2B, 0x2D, 0x2E, 0x2F, 0x3A
0x01 d 7F 0x01 d 7F 0x30 d 0x39

CUSTOM/POS emulation 59

[Notes]

Format 2

m
0x41 0x42 0x43 0x44

BARCODE SYSTEM UPC-A UPC-E EAN13 (JAN) EAN8 (JAN)

0x45 CODE39

0x46 ITF

0x47 CODABAR

0x48 0x49 0x5A

CODE93 CODE128 CODE32

NUMBER OF CHARACTERS 0x0B n 0x0C 0x0B n 0x0C 0x0C n 0x0D 0x07 n 0x08
0x01 n 0xFF
0x01 n 0xFF
0x01 n 0xFF
0x01 n 0xFF 0x02 n 0xFF 0x08 n 0x9

REMARKS
0x30 d 0x39
0x30 d 0x39
0x30 d 0x39
0x30 d 0x39
0x30 d 0x39, 0x41 d 0x5A, 0x20, 0x24, 0x25, 0x2B, 0x2D, 0x2E, 0x2F
0x30 d 0x39
0x30 d 0x39, 0x41 d1 0x44, 0x24, 0x2B, 0x2D, 0x2E, 0x2F, 0x3A
0x01 d 0x7F
0x01 d 0x7F
0x30 d 0x39

· If d is outside of the speciied range, the device prints the following message: “BARCODE GENERATOR IS NOT OK!” and processes the data which follows as normal data. · If the horizontal size exceeds the printing area, the device only feeds the paper. · This command feeds as much paper as is required to print the barcode, regardless of the line spacing speciied by 0x1B 0x32 or 0x1B 0x33. · After printing the barcode, this command sets the print position to the beginning of the line. · This command is not afected by print modes (emphasized, double-strike, underline or character size), except for upside- down and justiication mode.

Format 1
· This command ends with a NUL code. · When the barcode system used is UPC-A or UPC-E, the device prints the barcode data after receiving 11 (without check digit) or 12 (with check digit) bytes barcode data. · When the barcode system used is EAN13, the device prints the barcode data after receiving 12 (without check digit) or 13 (with check digit) bytes barcode data. · When the barcode system used is EAN8, the device prints the barcode data after receiving 7 (without check digit) or 8 (with check digit) bytes barcode data. · The number of data for ITF barcode must be even numbers. When an odd number of data is input, the device ignores the last received data.

60 CUSTOM/POS emulation

[Default]

Format 2
If n is outside of the speciied range, the device stops command processing and processes the following data as normal data. When CODE93 is used: · The device prints an HRI character (o) as a start character at the beginning of the HRI character string. · The device prints an HRI character (o) as a stop character at the end of the HRI character string. · The device prints an HRI character (n) as a control character ( 0x00 to 0x1F and 0x7F).
When CODE128 is used, please note the following regarding data transmission: · The top part of the barcode data string must be a code set selection character (CODE A, CODE B or CODE C) which selects the irst code set. · Special characters are deined by combining two characters “{” and one character. ASCII character “{” is deined by transmitting “{” twice, consecutively.

SPECIFIC CHARACTER
SHIFT CODE A CODE B CODE C
FNC1 FNC2 FNC3 FNC4
{

DATA TRANSMISSION

ASCII

HEX

{S

0x7B, 0x53

{A

0x7B, 0x41

{B

0x7B, 0x42

{C

0x7B, 0x43

{1

0x7B, 0x31

{2

0x7B, 0x32

{3

0x7B, 0x33

{4

0x7B, 0x34

{{

0x7B, 0x7B

When UPC-E is used, introducing the barcode characters, the device prints:

TRANSMITTED DATA d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 0 0-9 0-9 0 0 0 0 0 0-9 0-9 0-9 d2 0 0-9 0-9 1 0 0 0 0 0-9 0-9 0-9 d2 0 0-9 0-9 2 0 0 0 0 0-9 0-9 0-9 d2 0 0-9 0-9 3-9 0 0 0 0 0 0-9 0-9 d2 0 0-9 0-9 0-9 1-9 0 0 0 0 0 0-9 d2 0 0-9 0-9 0-9 0-9 1-9 0 0 0 0 5-9 d2

PRINTED DATA
d3 d9 d10 d11 0 d3 d9 d10 d11 1 d3 d9 d10 d11 2 d3 d4 d10 d11 3 d3 d4 d5 d11 4 d3 d4 d5 d6 d11

CUSTOM/POS emulation 61

[Reference] [Example]

0x1D 0x48, 0x1D 0x66, 0x1D 0x68, 0x1D 0x77

Format 1: Format 2:

Example for printing a CODE39 barcode 0x1D 0x6B 0x04 0x54 0x45 0x53 0x54 0x00
Example for printing a CODE39 barcode 0x1D 0x6B 0x45 0x04 0x54 0x45 0x53 0x54

62 CUSTOM/POS emulation

0x1D 0x77
Set barcode width

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 77 n

GS w

n

0x01 n 0x06 0x81 n 0x86

Sets the horizontal size of the barcode. n speciies the barcode width as follows:

n 0x01 0x02 0x03 0x04 0x05 0x06

MODULE WIDTH (mm) 0.125 0.25 0.375 0.5 0.625 0.75

If barcode CODE128, the wide and narrow bar ratio is the following:

If n < $80 If n >$80

n 0x01, 0x02, 0x03, 0x04, 0x05, 0x06
0x81 0x82 0x83 0x84 0x85 0x86

wide bar/narrow bar ratio 3:1 3:1 2,5:1
2,33:1 2,25:1
2:1 3:1

[Notes] [Default] [Reference] [Example]

n = 0x03 0x1D 0x6B

CUSTOM/POS emulation 63

CHARACTER COMMANDS

0x18
Cancel current line transmitted

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

18 CAN

[Range] [Description]

Deletes current line transmitted.

[Notes] [Default]

· Sets the print position to the beginning of the line. · This command does not clear the receive bufer.

[Reference] [Example]

64 CUSTOM/POS emulation

0x1B 0x20
Set right-side character spacing

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description] [Notes] [Default] [Reference] [Example]

Hex ASCII

1B 20 n ESC SP n

0x00 n 0xFF

Sets the character spacing for the right side of the character to [n x horizontal or vertical motion units].

· The right character spacing for double-width mode is twice the normal value. When the characters are enlarged, the right side character spacing is m (2 or 4) times the normal value. · The horizontal and vertical motion units are speciied by 0x1D 0x50. Changing the horizontal or vertical motion units does not afect the current right side spacing. · The 0x1D 0x50 command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum horizontal movement amount. · The maximum right side spacing is 32 mm. · In standard mode, the horizontal motion unit is used.

n = 0x00

0x1D 0x50

Character spacing x0 0x1B 0x20 0x00

PRINTING DIRECTION

Character spacing x2 0x1B 0x20 0x02

Character spacing x4 0x1B 0x20 0x04

Character spacing x8 0x1B 0x20 0x08

CUSTOM/POS emulation 65

0x1B 0x21
Select print modes

<ESC !>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1B 21 n

ESC !

n

0x00 n 0xFF

Selects print modes based on the value of n as follows:

BIT OFF/ON

Of 0
On

1

2

Of 3
On

Of 4
On

Of 5
On

Of 6
On

Of 7
On

HEX
0x00 0x01
0x00 0x08 0x00 0x10 0x00 0x20 0x00 0x40 0x00 0x80

FUNCTION

11/15 cpi

Character font A selected

18 x 24

Character font B selected

14 x 24

Undeined

Undeined

Expanded mode not selected

Expanded mode selected

Double-height mode not selected

Double-height mode selected

Double-width mode not selected

Double-width mode selected

Italic mode not selected

Italic mode selected

Underlined mode not selected

Underlined mode selected

15/20 cpi
14 x 24
10 x 24

[Notes]

· The device can underline all characters, but cannot underline the spaces set by 0x09, 0x1B 0x24, 0x1B 0x5C and 90°/270° rotated characters. · This command resets the left and right margin at default value (see 0x1D 0x4C, 0x1D 0x57). · 0x1B 0x45 can also be used to turn the emphasized mode on or of. However, the last-received setting command is the efective one. · 0x1B 0x2D can also be used to turn the underlining mode on or of. However, the last-received setting command is the efective one. · 0x1D 0x21 can also be used to select character height or width. However, the last-received setting command is the efective one. · 0x1B 0x34 can also be used to select the italic mode. However, the last-received setting command is the efective one.

66 CUSTOM/POS emulation

[Default] [Reference] [Example]

· Commands that change the height and width of characters are efective on the x and y axes. In case of 90°/270° rotated characters, command 0x1B 0x21 0x10 selects double-width mode and command 0x1B 0x21 0x20 selects double-height mode.
n = 0x00
0x1B 0x2D, 0x1B 0x34, 0x1B 0x45, 0x1D 0x21

PRINTING DIRECTION

Character font A selected 0x1B 0x21 0x00
Character font B selected 0x1B 0x21 0x01
Bold mode selected 0x1B 0x21 0x08
Double-height mode selected 0x1B 0x21 0x10
Double-width mode selected 0x1B 0x21 0x20
Italic mode selected 0x1B 0x21 0x40
Underline mode selected 0x1B 0x21 0x80

ABCDEFG 1 2 3 4 5 6
ABCDEFG 1 2 3 4 5 6
ABCDEFG 1 2 3 4 5 6
ABCDEFG 1 2 3 4 5 6
ABCDEFG 1 2 3 4 5 6
ABCDEFG 1 2 3 4 5 6
ABCDEFG 1 2 3 4 5 6

CUSTOM/POS emulation 67

0x1B 0x25
Select/cancel user-deined characters

<ESC %>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 25 n ESC % n

[Range] [Description] [Notes] [Default]

0x00 n 0xFF
Selects or cancels the user-deined character set. When the Least Signiicant Bit (LSB) of n is 0, the user-deined character set is cancelled. When the LSB of n is 1, the user-deined character set is selected.
· Only the LSB of n is applicable. · When the user-deined character set is cancelled, the internal character set is automatically selected.
n = 0x00

[Reference]

0x1B 0x26, 0x1B 0x3F

[Example]

68 CUSTOM/POS emulation

0x1B 0x26
Deines user-deined characters

<ESC &>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 26 y

ESC &

y

c1 cn x1[d0…dk] … xn[d0…dk] c1 cn x1[d0…dk] … xn[d0…dk] [Range]

y = 0x03
0x20 c1 cn 0x7E 0x00 x 0x12 (font 18 x 24) 0x00 x 0x0E (font 14 x 24) 0x00 x 0x0A (font 10 x 24) 0x00 x 0x08 (font 8 x 24) 0x00 d0…dk 0xFF k = cn ­ c1 + 1

[Description] [Notes]

Deines user programmable characters. y speciies the number of bytes in the vertical direction. c1 speciies the start character code and cn speciies the inal character code of the characters map area. x speciies the width of the character to be replaced. d0…dk speciies the new character deinition.
· It is possible to deine multiple characters for consecutive character codes. If only one character is desired, use c1 = cn. · if cn < c1, the command is not executed. · d is the dot data for the characters. The dot pattern is in the horizontal direction starting from the left. Any remaining dots on the right remain blank. · The data to deine a user-deined character is (x × y) bytes. · To print a dot, set the corresponding bit to 1; to not have it print, set to 0. · This command can deine diferent user-deined character patterns for each font. To select the font, use 0x1B 0x21. · The user programmable character deinitions are cleared when commands 0x1B 0x40, 0x1D 0x2A or 0x1B 0x3F are executed or the device is reset or turned of. · x1 [d0 … dk] will be repeated for each character to be replaced.

[Default]

Internal character set

[Reference]

0x1B 0x40, 0x1B 0x21, 0x1B 0x25, 0x1B 0x3F

CUSTOM/POS emulation 69

[Example]

To replace only the “A” character of the 11 cpi font table (font 18×24), the command sequence is: 0x1B 0x26 0x03 0x41 0x41 0x10 [48 bytes of the new character deinition].
To replace “A” and “B” characters of the 11 cpi font table (font 18×24), the command sequence is: 0x1B 0x26 0x03 0x41 0x42 0x10 [48 bytes of the new character deinition] 0x10 [48 bytes of the new character deinition].

70 CUSTOM/POS emulation

0x1B 0x2D
Turn underline mode on/of

<ESC ->

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1B 2D n

ESC –

n

0x00 n 0x02 0x30 n 0x32

Turns underline mode on or of, based on the following values of n:

n 0x00, 0x30 0x01, 0x31 0x02, 0x32

FUNZIONE Turns of underline mode Turns on underline mode (1-dot thick) Turns on underline mode (2-dot thick)

[Notes] [Default] [Reference] [Example]

· The device can underline all characters, but cannot underline the space and right-side character spacing set by command 0x09. · The device cannot underline 90°/270° rotated characters and white/black inverted characters. · When underline mode is turned of by setting the value of n to 0x00 or 0x30, the data which follows is not underlined. · Underline mode can also be turned on or of by using 0x1B 0x21. Note, however, that the last received command is the efective one.
n = 0x00
0x1B 0x21

Underline mode off 0x1B 0x2D 0x00

ABCDEFG 123456

Underline mode on 0x1B 0x2D 0x01

ABCDEFG 1 2 3 4 5 6

PRINTING DIRECTION

CUSTOM/POS emulation 71

0x1B 0x34
Turn italic mode on/of

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1B 2D n

ESC –

n

n = 0x00, 0x01, 0x30, 0x32

Turns italic mode on or of, based on the following values of n:

n 0x00, 0x30 0x01, 0x31

FUNCTION Turns of italic mode Turns on italic mode

[Notes] [Default] [Reference] [Example]

· The device can underline all characters. · When italic mode is turned of by setting the value of n to 0x00 or 0x30, the data which follows is printed in normal mode. · Italic mode can also be turned on or of by using 0x1B 0x21. Note, however, that the last received command is the efective one.
n = 0x00
0x1B 0x21

Underline mode off 0x1B 0x2D 0x00

ABCDEFG 123456

Underline mode on 0x1B 0x2D 0x01

ABCDEFG 1 2 3 4 5 6

PRINTING DIRECTION

72 CUSTOM/POS emulation

0x1B 0x3F
Cancel user-deined characters

<ESC ?>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 3F n

ESC ?

n

[Range] [Description] [Notes]

0x20 n 0x7E
Cancels user-deined characters.
· This command cancels the pattern deined for the character code speciied by n. · This command deletes the pattern deined for the speciied character code in the font selected by 0x1B 0x21. · If the user-deined character has not been deined for the speciied character code, the device ignores this command.

[Default] [Reference]

0x1B 0x26, 0x1B 0x25

[Example]

CUSTOM/POS emulation 73

0x1B 0x45
Turn emphasized mode on/of

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 45 n

ESC E

n

[Range] [Description]

0x00 n 0xFF
Turns emphasized mode on/of, based on the n value: – when the LSB of n is 0, the emphasized mode is of. – when the LSB of n is 1, the emphasized mode is on.

[Notes] [Default]

· Only the LSB of n is efective. · 0x1B 0x21 also turns on and of the emphasized mode. However, the last received command is the efective one.
n = 0x00

[Reference]

0x1B 0x21

[Example]

Bold mode off 0x1B 0x45 0x00

ABCDEFG 123456

Bold mode on 0x1B 0x45 0x01

ABCDEFG 123456

PRINTING DIRECTION

74 CUSTOM/POS emulation

0x1B 0x47
Turn double-strike mode on/of

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 47 n

ESC G

n

[Range] [Description]

0x00 n 0xFF
Turns double-strike mode on or of, based on the n value: – when the LSB of n is 0, the double-strike mode is of. – when the LSB of n is 1, the double- strike mode is on.

[Notes]

· Only the LSB of n is efective. · Device output is the same in double-strike and emphasized mode.

[Default]

n = 0x00

[Reference]

0x1B 0x45

[Example]

Double-strike mode off 0x1B 0x47 0x00

ABCDEFG 123456

Double-strike mode on 0x1B 0x47 0x01

ABCDEFG 123456

PRINTING DIRECTION

CUSTOM/POS emulation 75

0x1B 0x4D
Select character font

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1B 4D n ESC M n

n = 0x00, 0x01, 0x30, 0x31

Selects characters font depending of cpi value set (Char/Inch) as follows

CHAR/INCH
A = 11 cpi B = 15 cpi
A = 15 cpi B = 20 cpi
A = 20 cpi B = 15 cpi

n 0x00, 0x30 0x01, 0x31 0x00, 0x30 0x01, 0x31 0x00, 0x30 0x01, 0x31

FUNCTION Font 11 cpi (18×24) Font 15 cpi (14×24) Font 15 cpi (14×24) Font 20 cpi (10×24) Font 20 cpi (10×24) Font 15 cpi (14×24)

[Notes] [Default] [Reference] [Example]

0x1B 0xC1

76 CUSTOM/POS emulation

0x1B 0x52
Select an international character set

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1B 52 n

ESC R

n

0x00 n 0x0A

Selects the international character set n according to the table below:

HEX

23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E

n

CHARACTER SET

0x00 U.S.A.

$@ [ ] ^ ` { | } ~

0x01 France

$à° ç§^ ` éùè ”

0x02 Germany

$ § ÄÖÜ ^ ` ä ö ü b

0x03 United Kingdom £ $ @ [ ] ^ ` { | } ~

0x04 Denmark I

$ @ÆÆ Å ^ ` æ f å ~

0x05 Sweden

¤ ÉÄÖÅÜé ä ö å ü

0x06 Italy

$@° é ^ ù à ò è ì

0x07 Spain I

Pt $ @ i Ñ ¿ ^ ` ” ñ } ~

0x08 Japan

$@ [ ¥ ] ^ ` { | } ~

0x09 Norway

¤ É ÆÆ Å Ü é æ f å ü

0x0A Denmark II

$ É ÆÆ Å Ü é æ f å ü

[Notes] [Default] [Reference] [Example]

n = 0x00

CUSTOM/POS emulation 77

0x1B 0x56
Set 90° rotated print mode

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1B ESC

56 n

V

n

n = 0x00, 0x01, 0x30, 0x31

Turns 90° rotation mode on/of. n is used as follows:

n 0x00, 0x30 0x01, 0x31

FUNCTION Turns of 90° rotation mode Turns on 90° rotation mode

[Notes] Default] [Reference] [Example]

· When underlined mode is turned on, the device does not underline 90° rotated characters. All the same it’s possible select the underline mode. · Double- width and double-height commands in 90° rotation mode enlarge characters in the opposite directions from double-height and double-width commands in normal mode.
n = 0x00
0x1B 0x21, 0x1B 0x2D

90° rotated printing off 0x1B 0x56 0x00

ABCDEFG 123456

90° rotated printing on 0x1B 0x56 0x01

PRINTING DIRECTION
G F6 E5 D4 C3 B2 A1

78 CUSTOM/POS emulation

0x1B 0x74
Select character code table

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1B 74 n

ESC t

n

n = 0x00 0x01 n 0x05 0x11 n 0x21 n = 0x26 0x30 n 0x53 n = 0xFF

Select a page n from the character code table as follows:

n 0x00 0x01 0x02 0x03 0x04 0x05 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x20 0x21 0x26 0x30 0x31 0x32

PAGINA PC437 – U.S.A., Standard Europe Katakana PC850 – Multilingual PC860 – Portuguese PC863 – Canadian/French PC865 – Nordic PC851 – Greek PC853 – Turkish PC857 – Turkish PC737 – Greek ISO8859-7 – Greek WPC1252 PC866 – Cyrillic 2 PC852 – Latin 2 PC858 per simbolo Euro in posizione 213 KU42 – Thai TIS11 – Thai TIS18 – Thai TCVN_3 – Vietnamese TCVN_3 – Vietnamese PC720 – Arabic

on request on request on request on request on request
on request
on request on request on request on request on request on request

CUSTOM/POS emulation 79

n 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x50 0x51 0x52 0x53 0xFF

WPC775 – Baltic Rim PC855 – Cyrillic PC861 – Icelandic PC862 – Hebrew PC864 – Arabic PC869 – Greek ISO8859-2 – Latin 2 ISO8859-15 – Latin 9 PC1098 – Farci PC1118 – Lithuanian PC1119 – Lithuanian PC1125 – Ukrainian WPC1250 – Latin 2 WPC1251 – Cyrillic WPC1253 – Greek WPC1254 – Turkish WPC1255 – Hebrew WPC1256 – Arabic WPC1257 – Baltic Rim WPC1258 – Vietnamese KZ1048 – Kazakhstan Space page

PAGINA

on request on request
on request on request on request on request on request on request on request
on request

[Notes] [Default] [Reference] [Example]

WPC1252, PC866 and PC852 tables are valid only for TrueType fonts. n = 0x00 See character code tables For printing Euro symbol (), the command sequence is 0x1B, 0x74, 0x13, 0xD5

80 CUSTOM/POS emulation

0x1B 0x7B
Turn upside-down printing mode on/of

<ESC {>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 7B n

ESC {

n

[Range] [Description]

0x00 n 0xFF
Turns upside-down printing mode on or of, based on the value of n: – when the LSB of n is 0, the upside-down printing mode is of. – when the LSB of n is 1, the upside-down printing mode is on.

[Notes]

· Only the LSB of n is efective. · This command is valid only if entered at the beginning of a line. · In upside-down printing mode, the device rotates the line to be printed 180° and then prints it.

[Default]

n = 0x00

[Reference] [Example]

Upside-down printing off 0x1B 0x7B 0x00

ABCDEFG 123456

Upside-down printing on 0x1B 0x7B 0x01

PRINTING DIRECTION

ABCDEFG 123456

CUSTOM/POS emulation 81

0x1B 0xC1
Select character pitch

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1B C1 n ESC 0xC1 n

0x00 n 0x02 0x30 n 0x32

This command selects the character pitch expressed in cpi (characters per inch) based on the values of n as follows:

n 0x00, 0x30 0x01, 0x31 0x02, 0x32

Font A = 11 cpi Font A = 15 cpi Font A = 20 cpi

PITCH Font B = 15 cpi Font B = 20 cpi Font B = 15 cpi

[Notes] [Default] [Reference] [Example]

n = 0x00 0x1B 0x21
Character pitch 11 cpi 0x1B 0xC1 0x00

PRINTING DIRECTION

Character pitch 15 cpi 0x1B 0xC1 0x01

1 inch

82 CUSTOM/POS emulation

0x1D 0x21
Select character size

<GS !>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 21 n

GS !

n

0x00 n 0x07 0x20 n 0x27 0x40 n 0x47 0x60 n 0x67

0x10 n 0x17 0x30 n 0x37 0x50 n 0x57 0x70 n 0x77

Selects character height and width, as follows: · Bits 0 to 3: to select character height (see table 2). · Bits 4 to 7: to select character width (see table 1).

Table 1 Select character width HEX WIDTH
00 1 (normal) 10 2 (width = 2x) 20 3 (width = 3x) 30 4 (width = 4x) 40 5 (width = 5x) 50 6 (width = 6x) 60 7 (width = 7x) 70 8 (width = 8x)

Table 2 Select character height HEX HEIGHT
00 1 (normal) 01 2 (height = 2x) 02 3 (height = 3x) 03 4 (height = 4x) 04 5 (height = 5x) 05 6 (height = 6x) 06 7 (height = 7x) 07 8 (height = 8x)

[Notes] [Default] [Reference] [Example]

· This command is efective for all characters (except HRI characters). · If n falls outside the deined range, this command is ignored. · Characters enlarged to diferent heights on the same line are aligned at the baseline or top line. · 0x1B 0x21 can also be used to select character size. However, the setting of the last received command is the efective one. · This command is efective on the x and y axes. In case of 90°/270° rotated characters, bit from 0 to 3 select character width and bit from 4 to 7 select character height.
n = 0x00
0x1B 0x21
For printing a character with 6x width and height the command sequence is: 0x1D 0x21 0x55

CUSTOM/POS emulation 83

0x1D 0x42
Turn black and white reverse printing mode on or of

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D 42 n

GS B

n

[Range] [Description]

0x00 n 0xFF
Turns white/black reverse printing mode on or of, based on the value of n: – when the LSB of n is 0, white/black reverse printing is turned of. – when the LSB of n is 1, white/black reverse printing is turned on.

[Notes]

· Only the LSB di n is efective. · This command is available for both built-in and user-deined characters. · This command does not afect bit image, downloaded bit image, barcode, HRI characters and spacing skipped by 0x09, 0x1B 0x24 and 0x1B 0x5C.
· This command does not afect white space between lines. · White/black reverse mode has a higher priority than underline mode. Even if underline mode is on, it will be disabled (but not cancelled) when white/black reverse mode is selected.

[Default]

n = 0x00

[Reference] [Example]

Reverse printing mode off 0x1D 0x42 0x00

ABCDEFG 123456

Reverse printing mode on 0x1D 0x42 0x01

ABCDEFG 123456

PRINTING DIRECTION

84 CUSTOM/POS emulation

COMMANDS FOR TT FONTS MANAGEMENT

0x1C 0x65
Enable or disable encoding for TrueType fonts

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1C 65 n

FS e

n

0x00 n 0x02 0x30 n 0x32

Enable or disable the text encoding based on the following values of n:

n 0x00, 0x30 0x01, 0x31 0x02, 0x32

ENCODING Disabled
Enable UTF-8 Enable UTF-16

[Notes] [Default] [Reference] [Example]

· This command is valid only for TrueType fonts of monospace type. · If the text encoding is disabled, manage the characters coding by 0x1B 0x52 and 0x1B 0x74 commands. · If the text encoding is enabled, the character’s addressing respects the UNICODETM standard (see www.unicode.org).
n = 0x00
0x1B 0x52, 0x1B 0x74, 0x1C 0x66

CUSTOM/POS emulation 85

0x1C 0x66
TrueType fonts management

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1C 66 m n

FS f

m n

d[0]…d[n] d[0]…d[n]

0x00 m 0xFF 0x00 n 0x40

Manage the TrueType fonts depending on the following values of m:

m (BIT) 0 1 2 3 4 5 6 7

FUNCTION Check glyph width TTF enable hinting Not used Not used Re-enable TrueType font Disable TrueType font De-init TrueType font Clear all

[Notes]

n d[0]…d[n]

= name length of the font to use = font name to use

· If “Check glyph width” is selected, for every character, device checks if the glyph width is diferent from default width. In this case, the font will be not installed. The check may require some time (it depends on the characters number of the font). · For “Hinting” means the font adaptation to the grid. Whit hinting enabled, the characters are more legible but some characters may be too high (for example, the accented capital letters). This bit is active only when you install a new font. · “Re-enable” function re-enables a TrueType font previously disabled. · “Disable” function disables a TrueType font. · “De-init” function uninstall a font and clear the memory used by the font. Use this function only when you intend to use the font more, otherwise use the “Disable” function to speed up operations. · “Clear all” function uninstall all the installed fonts. · If command is successful the device transmits the ACK (0x06), otherwise return NACK (0x15). · After “Disable”, “Re-enable” and “Clear-all” functions, do not pass the ilename of the TrueType font.

86 CUSTOM/POS emulation

[Default] [Reference] [Example]

Select the TrueType font with dimensions check, without hinting: 0x1C 0x66 0x02 0x0C “veramono.ttf”
Return to use the embedded fonts: 0x1C 0x66 0x20 0x00
Select the font previously disabled: 0x1C 0x66 0x10 0x00
Uninstall a TrueType font: 0x1C 0x66 0x40 0x0C

CUSTOM/POS emulation 87

0x1D 0xE9
Load a TrueType font

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D E9 dimFile 2C 43 2C fd0..fdn2C d0..dn

GS 0xE9 dimFile , C ,

fd0..fdn , d0..dn

[Range] [Description]

0x00 dimFile 0xFF 0x00 d0, dn 0xFF
Saves the font received from serial port into the device lash. · dimFile indicates the ile size (4 bytes expressed in hexadecimal notation) · fd0..fdn indicates the font-name · d0..dn indicates the bytes of the entire font.ttf

[Notes]

· The length fd0 .. fdn of the font-name can be up to 50 characters long.
· The maximum ile size is related to the free space in the lash. · The font- name speciied in this command does not depend on the ile-name because it is uniquely assigned in lash; therefore the font into the lash will be called as speciied. · If command is successful the device transmits the ACK (0x06), otherwise return NACK (0x15).

Default] [Reference] [Example]

To load the TrueType font “ARIAL.ttf”, send the command: 0x1D 0xE9 0x00 0x0B 0xE1 0x38 0x2C 0x43 0x2C “ARIAL.ttf” 0x2C “ile.ttf”

where the sequence 0x00 0x0B 0xE1 0x38 indicates the ile size (778552 byte).

88 CUSTOM/POS emulation

LINE SPACING COMMANDS

0x1B 0x30
Select 1/8-inch line spacing

<ESC 0>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 30 ESC 0

[Range] [Description]

Selects 1/8-inch line spacing.

[Notes] [Default] [Reference]

0x1B 0x32, 0x1B 0x33

[Example]

1/6-inch line spacing 0x1B 0x32

ABCDEFG 123456

1/8-inch line spacing 0x1B 0x32

ABCDEFG 123456

PRINTING DIRECTION

CUSTOM/POS emulation 89

0x1B 0x32
Select 1/6-inch line spacing

<ESC 2>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 32 ESC 2

[Range] [Description]

Selects 1/6-inch line spacing.

[Notes] [Default] [Reference]

0x1B 0x30, 0x1B 0x33

[Example]

1/6-inch line spacing 0x1B 0x32

ABCDEFG 123456

1/8-inch line spacing 0x1B 0x32

ABCDEFG 123456

PRINTING DIRECTION

90 CUSTOM/POS emulation

0x1B 0x33
Set line spacing

<ESC 3>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 33 n

ESC 3

n

[Range] [Description]

0x00 n 0xFF Sets line spacing to [ n × (vertical or horizontal motion unit)] inches.

[Notes]

· The horizontal and vertical motion unit are speciied by 0x1D 0x50. Changing the horizontal or vertical motion unit does not afect the current line spacing. · The 0x1D 0x50 command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum vertical movement amount. · In standard mode, the vertical motion unit is used. · The maximum spacing is 32.5 mm.

[Default] [Reference]

n = 0x40 (1/6 inch) 0x1B 0x30, 0x1B 0x32, 0x1D 0x50

[Example]

CUSTOM/POS emulation 91

PRINT COMMANDS

0x0A
Print and line feed

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex

0A

ASCII

LF

[Range] [Description]

This command sets the print position to the beginning of the line printing the data in the bufer and feeding one line based on the line spacing set with the command 0x1B 0x30 or 0x1B 0x32.

[Notes]

If the bufer is empty, the printing feeds of a value equal to the sum of the character height and line spacing.

[Default]

1/6-inch (32 dots)

[Reference]

0x1B 0x30, 0x1B 0x32, 0x1B 0x33, 0x0D

[Example]

ABCDEFG 123456

PRINTING DIRECTION

To print the ticket shown in igure the command sequence is: ABCDEFG 0x0A 123456 0x0A

92 CUSTOM/POS emulation

0x0D
Print and carriage return

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex

0D

ASCII

CR

[Range] [Description]

This command handles the end of a line text.

[Notes]

If “Autofeed” setup parameter is set to “CR enabled”, this command works in the same way as 0x0A command, otherwise it is disregarded.

[Default] [Reference]

See “Autofeed” setup parameter (refer to the user manual of the device). 0x0A

[Example]

Autofeed = CR enabled

ABCDEFG 123456

Autofeed = CR disabled

ABCDEFG123456

PRINTING DIRECTION

To print the ticket shown in igure the command sequence is: ABCDEFG 0x0D 123456 0x0D

CUSTOM/POS emulation 93

0x1B 0x4A
Print and paper feed

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 4A n

ESC J

n

[Range] [Description] [Notes]

0x00 n 0xFF
Prints the data saved in the print bufer and feeds the paper [n × vertical or horizontal motion unit].
· After printing has been completed, this command sets the print starting position to the beginning of the line. · The paper feed amount set by this command does not afect the values set by 0x1B 0x32 or 0x1B 0x33. · The horizontal and vertical motion units are speciied by 0x1D 0x50. · 0x1D 0x50 can change the vertical (and horizontal) motion unit. However, the value cannot be less than the minimum vertical movement amount. · In standard mode, the vertical motion unit is used.

[Default] [Reference]

0x1D 0x50

[Example]

94 CUSTOM/POS emulation

0x1B 0x64
Print and feed paper n rows

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 64 n

ESC d

n

[Range] [Description] [Notes]

0x00 n 0xFF
Prints the data in the print bufer and feeds the paper n rows.
· n rows paper feed is equivalent to (n × char height + line spacing set). · Sets the print starting position at the beginning of the line. · This command does not afect the line spacing set by 0x1B 0x32 or 0x1B 0x33. · The maximum paper feed amount is 254 rows. Even if a paper feed amount of more than 254 rows is set, the device feeds the paper only 254 rows.

[Default] [Reference]

0x1B 0x32, 0x1B 0x33

[Example]

CUSTOM/POS emulation 95

0x1D 0x7C
Set printing density

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 7C n GS 0x7C n

0x02 n 0x08 0x30 n 0x38

Sets printing density. n speciies printing density as follows:

n 0x00, 0x30 0x01, 0x31 0x02, 0x32 0x03, 0x33 0x04, 0x34 0x05, 0x35 0x06, 0x36 0x07, 0x37 0x08, 0x38

PRINTING DENSITY -50% -37.5% – 25%
– 12.5% 0%
+ 12.5% + 25% +37.5% +50%

[Notes] [Default] [Reference] [Example]

Printing density reverts to the default value when the device is reset or turned of. n = 0x04

Printing density 0% 0x1D 0x7C 0x04

ABCDEFG 123456

Printing density -25% 0x1D 0x7C 0x02

ABCDEFG 123456

PRINTING DIRECTION

96 CUSTOM/POS emulation

STATUS COMMANDS

0x10 0x04
Real-time status transmission

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

10 04 n DLE EOT n

[Range]

0x01 n 0x04 n = 0x11 n = 0x14

[Description]

Transmits the selected device status speciied by n in real time according to the following parameters:

n = 0x01 n = 0x02 n = 0x03 n = 0x04 n = 0x11 n = 0x14

transmit device status transmit of-line status transmit error status transmit paper roll sensor status transmit print status transmit FULL STATUS

Device status (n = 0x01)

BIT OFF/ON

0

1

2

Of 3
On

4

5

Of 6
On

7

HEX 00 08 00 40 –

FUNCTION RESERVED RESERVED RESERVED On-line Of-line RESERVED Not deined LF key released LF key pressed RESERVED

CUSTOM/POS emulation 97

Of-line status (n = 0x02)

BIT OFF/ON

0

1

Of 2
On

Of 3
On

4

Of 5
On

Of 6
On

7

HEX 00 04 00 08 00 20 00 40 –

FUNCTION RESERVED RESERVED Cover closed Cover opened LF key released LF key pressed RESERVED Paper present Printing stop due to paper end No error Error RESERVED

Error status (n = 0x03)

BIT OFF/ON

0

1

2

Of 3
On

4

Of 5
On

Of 6
On

7

HEX 00 08 00 20 00 40 –

FUNCTION RESERVED RESERVED RESERVED Cutter ok Cutter error RESERVED No unrecoverable error Unrecoverable error No auto-recoverable error Auto- recoverable error RESERVED

(*) Only for models with presenter and cutter

98 CUSTOM/POS emulation

Paper roll sensor status (n = 0x04)

BIT OFF/ON

0

1

Of 2, 3
On

4

Of 5, 6
On

7

HEX 00 0C 00 60 –

FUNCTION RESERVED RESERVED Paper present Low paper RESERVED Paper present Paper not present RESERVED

Print status (n = 0x11)

BIT OFF/ON

0

1

Of 2
On

Of 3
On

4

Of 5
On

6

7

HEX 00 04 00 08 00 20 –

FUNCTION RESERVED RESERVED Paper drag motor of Paper drag motor on Ejector motor on Ejector motor of RESERVED Paper present Printing stopped out for paper end RESERVED RESERVED

(*) Only for models with presenter and cutter

Full status (n = 0x14, 6 bytes) 1° Byte = 0x10 (DLE) 2° Byte = 0x0F

CUSTOM/POS emulation 99

3° Byte = Paper status

BIT OFF/ON

Of 0
On

1

Of 2
On

3

4

Of 5
On

Of 6
On

Of 7
On

HEX 00 01 00 04 00 20 00 40 00 80

FUNCTION Paper present Paper not present RESERVED Paper present Low paper RESERVED RESERVED Ticket not present in output Ticket present in output Paper virtually present Virtual paper end Notch is placed over the sensor Notch is not placed over the sensor

(*) Paper virtually present is set when the paper length available, read by 0x1D 0xE1, is 0.

4° Byte = User status

BIT OFF/ON

Of 0
On

Of 1
On

Of 2
On

Of 3
On

4

Of 5
On

Of 6
On

Of 7
On

HEX 00 01 00 02 00 04 00 08 00 20 00 40 00 80

FUNCTION Cover closed Cover opened Cover closed Cover opened No spooling Spooling Drag paper motor of Drag paper motor on RESERVED LF key released LF key pressed FF key released FF key pressed Presenter motor of Presenter motor on

100 CUSTOM/POS emulation

5° Byte = Recoverable status error

BIT OFF/ON

Of 0
On

Of 1
On

2

Of 3
On

4

Of 5
On

Of 6
On

Of 7
On

HEX 00 01 00 02 00 08 00 20 00 40 00 80

FUNCTION Head temperature ok Head temperature error No COM error RS232 COM error RESERVED Power supply voltage ok Power supply voltage error RESERVED Acknowledge command Not acknowledge command error Free paper path Paper jam Notch search ok Error in notch search

6° Byte = Unrecoverable error status

BIT OFF/ON

Of 0
On

Of 1
On

Of 2
On

Of 3
On

4

5

6

Of 7
On

HEX 00 01 00 02 00 01 00 01 00 80

FUNCTION Cutter ok Cutter error Bulkhead paper path ok Bulkhead paper path error RAM ok RAM error EEPROM ok EEPROM error RESERVED RESERVED RESERVED Presenter motor of Presenter motor on

(*) Only for models with presenter and cutter

CUSTOM/POS emulation 101

[Notes] [Default] [Reference] [Example]

· Immediately executed even when the data bufer is full. · This status is transmitted whenever data sequence 0x10 0x04 n is received.

Request for device status transmission:

0x10 0x04 0x01

Device response:

0x80

LF key pressed

102 CUSTOM/POS emulation

0x1B 0x76
Transmit paper sensor status

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1B 76 ESC v

When this command is received, transmit the current status of the paper sensor. The status to be transmitted is shown in the table below:

BIT OFF/ON

Of 0,1
On

Of 2,3
On

4

5

6

7

HEX 00 03 00 0C –

FUNCTION Low paper sensor: paper present Low paper sensor: paper not present Paper end sensor: paper present Paper end sensor: paper not present RESERVED Undeined Undeined RESERVED

[Notes] [Default] [Reference] [Example]

· This command is executed immediately, even when the data bufer is full (Busy). · After the paper loading, both receiving and printing bufers are emptied.
0x10 0x04

CUSTOM/POS emulation 103

0x1C 0xEA
Transmit the device serial number

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1C EA n FS 0xEA n

[Range]

n = 0x52, 0x72

[Description]

Transmits the device serial number.

[Notes]

· The serial number is a string of 16 alphanumeric characters. · If the printer serial number is not deined, the device returns a string of 16 characters with a value of 0x00.

[Default] [Reference] [Example]

To read the device serial number the command sequence is: 0x1C 0xEA 0x52

The device returns a string of 16 alphanumeric characters just like the following: `ABC0123456789012′

104 CUSTOM/POS emulation

0x1D 0x72
Transmit status

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D 72 n

GS r

n

n = 0x01, 0x31

Transmits the status speciied by n as follows:

n 0x01, 0x31

FUNCTION Transmits paper sensor status (as for 0x1B 0x76)

Paper sensor status (n = 0x01, 0x31)

BIT OFF/ON

Of 0, 1
On

Of 2,3
On

4

5

6

7

HEX 00 03 00 0C –

FUNCTION Low paper sensor: paper present Low paper sensor: paper not present Paper end sensor: paper present Paper end sensor: paper not present RESERVED Undeined Undeined RESERVED

[Notes] [Default] [Reference] [Example]

This command is executed when the data is processed in the data bufer. Therefore, there may be a time lag between receiving the command and transmitting the status, depending on data bufer status.
0x10 0x04, 0x1B 0x76

CUSTOM/POS emulation 105

0x1D 0xE0
Enable / disable automatic FULL STATUS BACK

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format] [Range] [Description]

Hex ASCII

1D E0 n GS 0xE0 n

0x00 n 0xFF

Enable / disable automatic full status back. n speciies the composition of FULL STATUS as follows:

BIT OFF/ON

Of 0
On

Of 1
On

Of 2
On

Of 3
On

4

5

6

7

HEX 00 01 00 02 00 04 00 08 –

FUNCTION Disable paper status Enable paper status Disable user status Enable user status Disable recoverable error status Enable recoverable error status Disable unrecoverable error status Enable unrecoverable error status Not deined Not deined Not deined Not deined

[Notes] [Default] [Reference] [Example]

Once enable at least one byte of the FULL STATUS, for each change of at least one of the bits which compose the required status, the status sent in automatic from the device will be so composed as follows: 1° Byte = 0x10 (DLE) 2° Byte = n Next bytes (depends how many bits are active in n)
0x10 0x04

106 CUSTOM/POS emulation

0x1D 0xE1
Reading of length paper available before virtual paper-end

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D E1 GS 0xE1

[Range] [Description]

Reading of length paper available before virtual paper-end (expressed in centimetres). The command return a string pointing out how much paper is available.

[Notes]

· The length of residual paper reported is just as an indication because tolerances and other factors are not taken into consideration (paper thickness, roll core diameter, roll core thickness). · The virtual paper-end limit is set by the command 0x1D 0xE6. · To set virtual paper-end limit, measure the length of the paper from low paper to the end of the roll, using several of them.

[Default] [Reference]

0x1D 0xE6

[Example]

If there are 5.1 m before paper end, the answer will be `510cm’

CUSTOM/POS emulation 107

0x1D 0xE2
Reading number of cuts performed from the device

Valid for

KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3

[Format]

Hex ASCII

1D E2 GS 0xE2

[Range] [Description]

Reading the number of cuts performed from the device.

[Notes]

The command return a string that points out how many cuts are performed by cutter.

[Default] [Reference] [Example]

If there are performed 2376 cuts, the answer will be `2376 cuts’

108 CUSTOM/POS emulation

0x1D 0xE3
Reading of length of printed paper

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D E3 GS 0xE3

[Range] [Description]

Reading of length of printed paper (expressed in centimetres).

[Notes]

The command return a string pointing out how much paper is printed.

[Default] [Reference] [Example]

If the device has print about 2515.5 m, the answer will be `251550cm’

CUSTOM/POS emulation 109

0x1D 0xE5
Reading number of power up

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1D E5 GS 0xE5

[Range] [Description]

Reading number of power up of the device.

[Notes]

The command return a string pointing out the number of turning on of the device.

[Default] [Reference] [Example]

If the device is turned on 512 times, the answer will be `512on’

110 CUSTOM/POS emulation

BIT-IMAGE COMMANDS

0x1B 0x2A
Select bit image mode

<ESC *>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 CUT 3 TK180 MET 1, TK180 MET 2, TK180 MET 3 TK180 PLAS 1, TK180 PLAS 2, TK180 PLAS 3

[Format]

Hex ASCII

1B 2A m

ESC *

m

nL nH d1…dk nL nH d1…dk

[Range]

m = 0x00, 0x01, 0x20, 0x21 0x00 nL 0xFF 0x00 nH 0x03 0x00 d 0xFF

[Description]

Selects a bit image mode using m for the number of dots speciied by nL and nH, as follows:

m

MODE

0x00 0x01 0x20 0x21

8 dot single density 8 dot double density 24 dot single density 24 dot double density

VERTICAL DIRECTION

N° dots

DPI

8

67

8

67

24

200

24

200

HORIZONTAL DIRECTION (*1)

DPI

N° of data (k)

100

nL + nH x 256

200

nL + nH x 256

100

(nL + nH x 256) x 3

200

(nL + nH x 256) x 3

[Notes]

· The nL and nH commands indicate the number of dots of the bit image in the horizontal direction. The number of dots is calculated using: nL + nH x 256. · If the bit image data input exceeds the number of dots to be printed on a line, the excess data is ignored. · d indicates the bit image data. Set a corresponding bit to 1 to print a dot or to 0 to not print the dot. · If the value of m is outside the speciied range, nL and data following it are processed as normal data. · If the width of the printing area set by 0x1D 0x4C and 0x1D 0x57 is less than the width required by the data set using 0x1B 0x2A, the excess data are ignored. · To print the bit image use 0x0A, 0x0D, 0x1B 0x4A or 0x1B 0x64. · After printing a bit image, the device returns to normal data processing mode. · This command is not afected by the emphasized, double- strike, underline (etc.) print modes, except for the upside-down mode.

CUSTOM/POS emulation 111

[Default] [Reference] [Example]

· The relationship between the image data and the dots to be printed is as follows:

8-dot bit image

24-dot bit image

d1 d2 d3 Print data

MSB
Bitimage data
LSB

d1 d4 d7 d2 d5 d8 d3 d6 d9 Print data

MSB
Bitimage data
LSB

8 dots

8 dots

8 dots single density

8 dots double density

24 dots

24 dots

24 dots single density

24 dots double density

112 CUSTOM/POS emulation

0x1D 0x2A
Deine dowloaded bit image

<GS *>

Valid for

KPM180H 1, KPM180H 2, KPM180H 3, KPM180H 4, KPM180H 5, KPM180H 6 TK180 CUT 1, TK180 CUT 2, TK180 C

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

CUSTOM User Manuals

Related Manuals