CUSTOM K3 Thermal POS Printer User Manual

June 13, 2024
CUSTOM

K3 Thermal POS Printer

Product Information: – Product Name: K3 – Manufacturer: CUSTOM
S.p.A. – Address: Via Berettine 2/B 43010 Fontevivo (PARMA) – Italy
– Contact: Tel. : +39 0521-680111, Fax : +39 0521-610701 – Website:
www.custom.biz – Customer Service
Department: 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 herein 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. –
Liability Disclaimer: CUSTOM S.p.A. assumes no responsibility with
regard to 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. The Declaration of Conformity and other available
certifications can be downloaded from the site www.custom4u.it. –
Disposal Guidelines: The format used for this manual improves use
of natural resources reducing the quantity of necessary paper to
print this copy. 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
periodical inspections, and poor repair work. 2. Consulting
Commands Manual: – Each command reported in this manual is
described with the following information: – Command value:
Hexadecimal and ASCII values of the command. – Command function:
Description of the command’s function. – Devices that use the
command: List of devices on which it is possible to use the
command. 3. Example Command: – Command Value: 0x0D (Hex), CR
(ASCII) – Command Function: Print and carriage return – Devices
that use the command: Valid for devices AAAA, BBBB, CCCC – Notes:
When Autofeed is CR enabled, this command functions in the same way
as 0x0A (line feed), otherwise it is disregarded. – Default,
Reference, Example: This command sets the printing position to the
beginning of the line.

COMMANDS MANUAL
K3

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
ALIGNMENT PAGE MODE

INTRODUCTION
1 CONSULTING COMMANDS MANUAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 IDENTIFICATION OF THE MODELS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 PAPER SPECIFICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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]

ASCII and exadecimal 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

NOMENCLATURA K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

K3 base coniguration K3 with display K3 with Wi-Fi board High speed K3 High speed K3 Linerfree

DESCRIZIONE

8 Introduction

37 25 8

3 PAPER SPECIFICATIONS
Paper with black mark on the thermal side The following image shows the placement of the black mark on the thermal side of the paper. All the dimensions shown in following igures are in millimetres. For more information about the use of paper with black mark see user manual.
7
Line of tear off Cutting line Printing line
9+1 0
PAPER WIDTH 58, 60, 80 mm
NOTE: Paper width 58 mm and 60 mm are available only with adapter paper guide provided as accessory (see the user manual).
Introduction 9

THERMAL SIDE

min 50 +1 5
0

10 Introduction

CUSTOM/POS EMULATION
1 COMMANDS LISTED IN ALPHANUMERIC ORDER . . . . . . . . . . . . . . . . . . . 12 2 COMMANDS LISTED BY FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

1 COMMANDS LISTED IN ALPHANUMERIC ORDER
0x08 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 0x09 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 0x0A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 0x0A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 0x0B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 0x0C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 0x0D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 0x0D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 0x10 0x04 . . . . . . . . . . . . . . . . . . . . . . . . . .<DLE EOT> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 0x10 0x05 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 0x10 0x14 0x01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 0x18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 0x1B 0x20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 0x1B 0x21. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC !> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 0x1B 0x24. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC $> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 0x1B 0x25. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC %> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 0x1B 0x25. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC %> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 0x1B 0x26. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC &>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 0x1B 0x26. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC &>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 0x1B 0x28 0x76 . . . . . . . . . . . . . . . . . . . . .<ESC (> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 0x1B 0x2A . . . . . . . . . . . . . . . . . . . . . . . . .<ESC *> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 0x1B 0x2D . . . . . . . . . . . . . . . . . . . . . . . . .<ESC -> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 0x1B 0x30. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 0> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 0x1B 0x32. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 2> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 0x1B 0x33. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 3> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 0x1B 0x34. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 4> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
12 CUSTOM/POS Emulation

0x1B 0x3D . . . . . . . . . . . . . . . . . . . . . . . . .<ESC =>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 0x1B 0x3F . . . . . . . . . . . . . . . . . . . . . . . . .<ESC ?> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 0x1B 0x40. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC @> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 0x1B 0x40. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC @> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 0x1B 0x44. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC D> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 0x1B 0x45. . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 0x1B 0x47. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 0x1B 0x4A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 0x1B 0x4D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 0x1B 0x52. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC R> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 0x1B 0x52. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 0x1B 0x56. . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 0x1B 0x5C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 0x1B 0x61. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 0x1B 0x63 0x35 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 0x1B 0x64. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 0x1B 0x69. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 0x1B 0x6D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 0x1B 0x6F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 0x1B 0x70. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 0x1B 0x74. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 0x1B 0x76. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 0x1B 0x7B . . . . . . . . . . . . . . . . . . . . . . . . .<ESC {> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 0x1B 0xA0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 0x1B 0xB2 0x44 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 0x1B 0xB2 0x50 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 0x1B 0xB2 0x51 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 0x1B 0xC1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
CUSTOM/POS Emulation 13

0x1B 0xFA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 0x1B 0xFD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 0x1B 0xFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 0x1C 0x26 . . . . . . . . . . . . . . . . . . . . . . . . .<FS &> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 0x1C 0x2E . . . . . . . . . . . . . . . . . . . . . . . . .<FS .>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 0x1C 0x44 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 0x1C 0x4D . . . . . . . . . . . . . . . . . . . . . . . . .<FS M>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 0x1C 0x59 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 0x1C 0x65 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 0x1C 0x66 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 0x1C 0x70 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 0x1C 0x71 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 0x1C 0x79 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 0x1C 0x7A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 0x1C 0x7B . . . . . . . . . . . . . . . . . . . . . . . . .<FS {>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 0x1C 0x93 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 0x1C 0xB0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 0x1C 0xC0 0x07 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 0x1C 0xC0 0xFF. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 0x1C 0xEA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 0x1D 0x21 . . . . . . . . . . . . . . . . . . . . . . . . .<GS !> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 0x1D 0x28 0x6B . . . . . . . . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 0x1D 0x28 0x6B [fn 066] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 0x1D 0x28 0x6B [fn 066] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
14 CUSTOM/POS Emulation

0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 0x1D 0x28 0x6B [fn 068] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 0x1D 0x28 0x6B [fn 068] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 0x1D 0x28 0x6B [fn 365] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 0x1D 0x28 0x6B [fn 366] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 0x1D 0x28 0x6B [fn 367] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 0x1D 0x28 0x6B [fn 368] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 0x1D 0x28 0x6B [fn 380] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 0x1D 0x28 0x6B [fn 381] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 0x1D 0x2A . . . . . . . . . . . . . . . . . . . . . . . . .<GS *> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 0x1D 0x2F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 0x1D 0x3A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 0x1D 0x42 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 0x1D 0x48 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 0x1D 0x49 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 0x1D 0x4C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 0x1D 0x50 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 0x1D 0x56 . . . . . . . . . . . . . . . . . . . . . . . . .<GS V>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
CUSTOM/POS Emulation 15

0x1D 0x57 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 0x1D 0x5E . . . . . . . . . . . . . . . . . . . . . . . . .<GS ^> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 0x1D 0x66 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 0x1D 0x68 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 0x1D 0x6B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 0x1D 0x72 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 0x1D 0x76 0x30 . . . . . . . . . . . . . . . . . . . . .<GS v 0> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 0x1D 0x77 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 0x1D 0x7C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 0x1D 0xD0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 0x1D 0xE0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 0x1D 0xE1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 0x1D 0xE2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 0x1D 0xE3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 0x1D 0xE5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 0x1D 0xE6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 0x1D 0xE7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 0x1D 0xF0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 0x1D 0xF6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 0x1D 0xF8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 0x1F 0x01. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 0x1F 0x02. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 0x1F 0x03. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 0x1F 0x0A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 0x1F 0x0D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 0x1F 0x24. . . . . . . . . . . . . . . . . . . . . . . . . .<US $> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 0x1F 0x42. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 0x1F 0x45. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
16 CUSTOM/POS Emulation

2 COMMANDS LISTED BY FUNCTION
PRINT COMMANDS
0x0A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Print and line feed
0x0D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Print and carriage return
0x1B 0x4A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Print and feed paper
0x1B 0x64. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Print and feed paper n lines
0x1D 0x7C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Set printing density
LINE SPACING COMMANDS
0x1B 0x30. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 0> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Select 1/8-inch line spacing
0x1B 0x32. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 2> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Select 1/6-inch line spacing
0x1B 0x33. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 3> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Set line spacing
CHARACTER COMMANDS
0x1B 0x20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Set right-side character spacing
0x1B 0x21. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC !> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Set print mode
0x1B 0x25. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC %> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Enable or disable user-deined character set
0x1B 0x26. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC &>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Deines user-deined characters
0x1B 0x2D . . . . . . . . . . . . . . . . . . . . . . . . .<ESC -> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Turn underline mode on or of
0x1B 0x34. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC 4> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Turn italic mode on or of
CUSTOM/POS Emulation 17

0x1B 0x3F . . . . . . . . . . . . . . . . . . . . . . . . .<ESC ?> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Cancel user-deined characters
0x1B 0x45. . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Turn bold mode on or of
0x1B 0x47. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Turn double-strike mode on or of
0x1B 0x4D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Select character font
0x1B 0x52. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Select international character set
0x1B 0x56. . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Select print mode 90° turned
0x1B 0x74. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Select character code table
0x1B 0x7B . . . . . . . . . . . . . . . . . . . . . . . . .<ESC {> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Set/cancel upside-down character printing
0x1B 0xC1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
0x1C 0x26 . . . . . . . . . . . . . . . . . . . . . . . . .<FS &> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Enable chinese fonts
0x1C 0x2E . . . . . . . . . . . . . . . . . . . . . . . . .<FS .>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Disable Chinese fonts
0x1D 0x21 . . . . . . . . . . . . . . . . . . . . . . . . .<GS !> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Select character size
0x1D 0x42 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Turn black and white reverse printing mode on or of
PRINT POSITION COMMANDS
0x08 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Back space
0x09 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Horizontal tab
0x1B 0x24. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC $> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Set absolute print position
0x1B 0x28 0x76 . . . . . . . . . . . . . . . . . . . . .<ESC (> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Set relative vertical print position
0x1B 0x44. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Set horizontal tab position
18 CUSTOM/POS Emulation

0x1B 0x5C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Set relative print position
0x1B 0x61. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Select justiication
0x1D 0x4C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Set left margin
0x1D 0x57 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Set printing area width
BIT IMAGE COMMANDS
0x1B 0x2A . . . . . . . . . . . . . . . . . . . . . . . . .<ESC > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Select image print mode
0x1C 0x70 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Print NV bit image
0x1C 0x71 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Deine NV bit image
0x1D 0x2A . . . . . . . . . . . . . . . . . . . . . . . . .<GS
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Deine dowloaded bit image
0x1D 0x2F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Print dowloaded bit image
0x1D 0x76 0x30 . . . . . . . . . . . . . . . . . . . . .<GS v 0> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Print raster image
STATUS COMMANDS
0x10 0x04 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Real-time status transmission
0x1B 0x76. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Transmit device status
0x1C 0xEA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Transmit the device serial number
0x1D 0x72 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Transmit status
0x1D 0xE0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Enable or disable automatic FULL STATUS back
0x1D 0xE1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Reading of length paper (cm) available before virtual paper-end
0x1D 0xE2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Reading number of cuts performed from the device
CUSTOM/POS Emulation 19

0x1D 0xE3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Reading of length of printed paper
0x1D 0xE5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Reading number of power up
BARCODE COMMANDS
0x1D 0x28 0x6B . . . . . . . . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Print two-dimensional barcode
0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Specify the number of columns of PDF417 barcode
0x1D 0x28 0x6B [fn 066] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Specify the number of rows of PDF417 barcode
0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Specify the width of a module of PDF417 barcode
0x1D 0x28 0x6B [fn 068] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Specify the height of PDF417 barcode
0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Specify the error correction level of PDF417 barcode
0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Store the PDF417 barcode data in the barcode save area
0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Encodes and prints the PDF417 barcode data in the barcode save area
0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Specify encoding scheme of QRcode barcode
0x1D 0x28 0x6B [fn 066] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Specify dot size of the module of the QRcode barcode
0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Specify QRcode barcode size
0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Specify the error correction level of the QRcode barcode
0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Store the QRcode barcode data in the barcode save area
0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Prints the QRcode barcode data
0x1D 0x28 0x6B [fn 365] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Specify the encoding scheme of DATAMATRIX barcode
0x1D 0x28 0x6B [fn 366] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Set rotation of DATAMATRIX barcode
20 CUSTOM/POS Emulation

0x1D 0x28 0x6B [fn 367] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Set dot size of the module of DATAMATRIX barcode
0x1D 0x28 0x6B [fn 368] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Set size of DATAMATRIX barcode
0x1D 0x28 0x6B [fn 380] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Store the DATAMATRIX barcode data in the barcode save area
0x1D 0x28 0x6B [fn 381] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Encodes and prints the DATAMATRIX barcode data in the barcode save area
0x1D 0x28 0x6B [fn 065] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Specify encoding scheme of AZTEC barcode
0x1D 0x28 0x6B [fn 067] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Specify dot size of the module of the AZTEC barcode
0x1D 0x28 0x6B [fn 068] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Specify AZTEC barcode size
0x1D 0x28 0x6B [fn 069] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Specify the error correction level of the AZTEC barcode
0x1D 0x28 0x6B [fn 080] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Store the AZTEC barcode data in the barcode save area
0x1D 0x28 0x6B [fn 081] . . . . . . . . . . . . . .<GS ( k> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Prints the AZTEC barcode data
0x1D 0x48 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Select printing position of HRI characters
0x1D 0x66 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Select font for HRI characters
0x1D 0x68 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Set the height of the 1D barcode
0x1D 0x6B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Print barcode
0x1D 0x77 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Set the width of the 1D barcode
MACRO FUNCTIONS
0x1D 0x3A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Start or end of macro deinition
0x1D 0x5E . . . . . . . . . . . . . . . . . . . . . . . . .<GS ^> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Execute macro
CUSTOM/POS Emulation 21

COMMANDS FOR MECHANISM CONTROL
0x1B 0x69. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Total cut
0x1B 0x6D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Partial cut
0x1D 0x56 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Select cut mode
LOGOS MANAGEMENT COMMANDS
0x1B 0xFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Receive the graphic page from the communication port
0x1C 0x93 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Print logo
MISCELLANEOUS COMMANDS
0x10 0x05 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Real-time request to device
0x10 0x14 0x01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Generate pulse at real-time
0x1B 0x3D . . . . . . . . . . . . . . . . . . . . . . . . .<ESC =>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Select peripherals device
0x1B 0x40. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC @> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Initialize the device
0x1B 0x63 0x35 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Enable or disable the front panel keys
0x1B 0x6F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Open the device cover
0x1B 0x70. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Generate pulse on the drawer connector
0x1B 0xFA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Print graphic (576×910 dots)
0x1B 0xFD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Receive graphic page from communication port
0x1C 0x44 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Print head test
0x1C 0x4D . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Set mass storage
22 CUSTOM/POS Emulation

0x1C 0xB0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Send commands to the display
0x1C 0xC0 0x07 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Emits an acoustic signalling
0x1C 0xC0 0xFF. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Emits an acoustic signalling in base of device status
0x1D 0x49 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Transmit device ID
0x1D 0x50 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
Set horizontal and vertical motion units
0x1D 0xD0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Set horizontal and vertical motion units
0x1D 0xE6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Virtual paper-end limit
0x1D 0xF0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Set print mode
COMMANDS FOR TRUE TYPE FONT
0x1C 0x65 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Enable/Disable encoding
0x1C 0x66 . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
True Type font management
ALIGNMENT COMMANDS
0x1D 0xE7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Set black mark distance
0x1D 0xF6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Align at ticket with the print head
0x1D 0xF8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
Align the ticket with the autocutter
DISPLAY MANAGEMENT COMMANDS
0x0A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Move the cursor down
0x0B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Move the cursor to the nome position
CUSTOM/POS Emulation 23

0x0C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Clear display screen
0x0D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Move cursor to the home position
0x18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Clear current line
0x1B 0x25. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC %> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Select / Cancel user-deined characters
0x1B 0x26. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC &>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Deines user-deined characters
0x1B 0x40. . . . . . . . . . . . . . . . . . . . . . . . . .<ESC @> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
Inizialize display
0x1B 0x52. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Select an international character set
0x1B 0xA0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Clear display screen
0x1C 0x59 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Sets contrast and save data in Flash
0x1C 0x79 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Returns contrast value
0x1C 0x7A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
Sets contrast without saving data in Flash
0x1C 0x7B . . . . . . . . . . . . . . . . . . . . . . . . .<FS {>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Change the contrast from 0% to 100% and displays the results
0x1F 0x01. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
Select overwrite mode
0x1F 0x02. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Select vertical scroll mode
0x1F 0x03. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Select horizontal scroll mode
0x1F 0x0A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Move the cursor up
0x1F 0x0D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Move the cursor to right-most position
0x1F 0x24. . . . . . . . . . . . . . . . . . . . . . . . . .<US $> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Move the cursor to a speciied position
0x1F 0x42. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Move the cursor to the bottom position
24 CUSTOM/POS Emulation

0x1F 0x45. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Set display screen blink interval
COMMUNICATION COMMANDS
0x1B 0xB2 0x44 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Enable communication with the integrated display
0x1B 0xB2 0x50 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
Enable communication with the printer
0x1B 0xB2 0x51 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Enable communication with the external display
CUSTOM/POS Emulation 25

26 CUSTOM/POS Emulation

PRINT COMMANDS

0x0A
Print and line feed

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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]

· Sets the print position to the beginning of the line. · 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

CUSTOM/POS Emulation 27

0x0D
Print and carriage return

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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, 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

28 CUSTOM/POS Emulation

0x1B 0x4A
Print and feed paper

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 4A n

ESC J

n

[Range] [Description] [Notes]

0x00 n 0xFF
Prints the data in the print bufer and feeds the paper [n × vertical 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. · The maximum paper feed amount is 520 mm.

[Default] [Reference]

0x1D 0x50

[Example]

CUSTOM/POS Emulation 29

0x1B 0x64
Print and feed paper n lines

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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.
· The number of rows paper fed is equivalent to [n x char height + line spacing]. · 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]

30 CUSTOM/POS Emulation

0x1D 0x7C
Set printing density

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 7C n GS 0x7C n

[Range] [Description]

0x00 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 0x1D 0x7C

CUSTOM/POS Emulation 31

LINE SPACING COMMANDS

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 30 ESC 0

[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

<ESC 0>

PRINTING DIRECTION

32 CUSTOM/POS Emulation

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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

<ESC 2>

PRINTING DIRECTION

CUSTOM/POS Emulation 33

0x1B 0x33
Set line spacing

<ESC 3>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 33 n

ESC 3

n

[Range] [Description] [Notes]

0x00 n 0xFF
Sets line spacing to [n × (vertical or horizontal motion unit)] inches.
· 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]

n = 0x40 (1/6 inch)

[Reference]

0x1B 0x30, 0x1B 0x32, 0x1D 0x50

[Example]

34 CUSTOM/POS Emulation

CHARACTER COMMANDS

0x1B 0x20
Set right-side character spacing

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 20 n ESC SP n

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

0x00 n 0xFF
Sets the character spacing for the right side of the character to [n × 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 8) 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 character 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 35

0x1B 0x21
Set print mode

<ESC !>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format] [Range] [Description]

Hex ASCII

1B 21 n

ESC !

n

0x00 n 0xFF

Selects print modes using n (see table below):

BIT OFF/ON

Of 0
On

1

2

Of 3
On

Of 4
On

Of 5
On

Of 6
On

Of 7
On

HEX 00 01 00 08 00 10 00 20 00 40 00 80

FUNCTION

11/15 cpi

Character font A selected.

18 x 24

Character font B selected.

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

Underline mode not selected.

Underline mode selected.

15/20 cpi 13 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/of. However, the last-received setting command is the efective one. · 0x1B 0x2D can also be used to turn the underlining mode on/of. However, the last-received setting command is the efective one. · 0x1D 0x21 can also be used to select character height/width. However, the last-received setting command is the efective one.

36 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 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 37

0x1B 0x25
Enable or disable user-deined character set

<ESC %>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 25 n ESC % n

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

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

[Reference]

0x1B 0x26, 0x1B 0x3F

[Example]

38 CUSTOM/POS Emulation

0x1B 0x26
Deines user-deined characters

<ESC &>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 0x0D (font 13 x 24) 0x00 x 0x0A (font 10 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-deined character deinitions are cleared when one of commands 0x1B 0x40, 0x1B 0x3F. are executed is 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 0x25, 0x1B 0x3F

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

CUSTOM/POS Emulation 39

0x1B 0x2D
Turn underline mode on or of

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 2D n

ESC –

n

[Range] [Description]

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

FUNCTON Turns of underline mode Turns on underline mode (1 dot thick) Turns on underline mode (2 dot thick)

<ESC ->

[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. However, 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

40 CUSTOM/POS Emulation

0x1B 0x34
Turn italic mode on or of

<ESC 4>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B ESC

34 n

4

n

[Range] [Description]

0x00 n 0x01 0x30 n 0x31
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]

· The device can print any character in italic mode. · 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 using 0x1B 0x21. However, the last received command is the efective one.
n = 0x00

[Reference]

0x1B 0x21

[Example]

Italic mode off 0x1B 0x34 0x00
Italic mode on 0x1B 0x34 0x01

ABCDEFG 123456
ABCDEFG 123456

PRINTING DIRECTION

CUSTOM/POS Emulation 41

0x1B 0x3F
Cancel user-deined characters

<ESC ?>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 0x25, 0x1B 0x26

[Example]

42 CUSTOM/POS Emulation

0x1B 0x45
Turn bold mode on or of

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 45 n

ESC E

n

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

0x00 n 0xFF
Turns bold mode on or of, based on the n value: – when the Least Signiicant Bit (LSB) of n is 0, the bold mode is of. – when the Least Signiicant Bit (LSB) of n is 1, the bold mode is on.
· Only the Least Signiicant Bit (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

CUSTOM/POS Emulation 43

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 47 n

ESC G

n

[Range] [Description] [Notes]

0x00 n 0xFF
Turns double-strike mode on or of, based on the n value: – when the Least Signiicant Bit (LSB) of n is 0, the double-strike mode is of. – when the Least Signiicant Bit (LSB) of n is 1, the double-strike mode is on.
· Only the Least Signiicant Bit (LSB) of n is efective. · Device output is the same in double-strike and bold 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

44 CUSTOM/POS Emulation

0x1B 0x4D
Select character font

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format] [Range] [Description]

Hex ASCII

1B 4D n

ESC M

n

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

Selects characters font.

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

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

FUNCTION Font 11 cpi (18 x 24) Font 15 cpi (13 x 24) Font 15 cpi (13 x 24) Font 20 cpi (10 x 24)

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

0x1B 0xC1

CUSTOM/POS Emulation 45

0x1B 0x52
Select international character set

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 CHARACTERS 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

46 CUSTOM/POS Emulation

0x1B 0x56
Select print mode 90° turned

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 56 n

ESC V

n

[Range]

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

[Description]

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

n 0x00, 0x30 0x01, 0x31

FUNCTION Disable 90° rotation mode Enable 90° rotation mode

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

· When underlined mode is turned on, the device does not underline 90° rotated characters. Anyway, 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. · This command is not available in Page mode. · If this command is entered in Page mode, the device saves the setting anyway.
n = 0x00
0x1B 0x21, 0x1B 0x2D

CUSTOM/POS Emulation 47

0x1B 0x74
Select character code table

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 74 n

ESC t

n

[Range]

0x01 n 0x35 n = 0xFF

[Description]

Selects a page n from the character code table, as follows:

n

PAGE

0x00 PC437 – U.S.A., Standard Europe

0x01 Katakana

0x02 PC850 – Multilingual

0x03 PC860 – Portuguese

0x04 PC863 – Canadian/French

0x05 PC865 – Nordic

0x0B PC851 – Greek

0x0C PC853 – Turkish

0x0D PC857 – Turkish

0x0E PC737 – Greek

0x0F ISO8859-7 – Greek

0x10 WPC1252

0x11 PC866 – Cyrillic 2

0x12 PC852 – Latin 2

0x13 PC858 for Euro sympol in position213

0x14 KU42 – Thai

0x15 TIS11 – Thai

0x1A TIS18 – Thai

0x1E TCVN_3 – Vietnamese

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

48 CUSTOM/POS Emulation

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

n 0x1F TCVN_3 – Vietnamese 0x20 PC720 – Arabic 0x21 WPC775 – Baltic Rim 0x22 PC855 – Cyrillic 0x23 PC861 – Icelandic 0x24 PC862 – Hebrew 0x25 PC864 – Arabic 0x26 PC869 – Greek 0x27 ISO8859-2 – Latin 2 0x28 ISO8859-15 – Latin 9 0x29 PC1098 – Farci 0x2A PC1118 – Lithuanian 0x2B PC1119 – Lithuanian 0x2C PC1125 – Ukrainian 0x2D WPC1250 – Latin 2 0x2E WPC1251 – Cyrillic 0x2F WPC1253 – Greek 0x30 WPC1254 – Turkish 0x31 WPC1255 – Hebrew 0x32 WPC1256 – Arabic 0x33 WPC1257 – Baltic Rim 0x34 WPC1258 – Vietnamese 0x35 KZ1048 – Kazakhstan 0xFF Space page

PAGE

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

The tables are selectable only if the code pages are present on the machine. By selecting a code page not present on the machine, the code page remains the one currently in use.
n = 0x00

For printing Euro symbol (), the command sequence is: 0x1B, 0x74, 0x13, 0xD5

CUSTOM/POS Emulation 49

0x1B 0x7B
Set/cancel upside-down character printing

<ESC {>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 7B n

ESC {

n

[Range] [Description] [Notes]

0x00 n 0xFF
Turns upside-down printing mode on or of. – when the Least Signiicant Bit (LSB) of n is 0, the upside-down printing mode is of. – when the Least Signiicant Bit (LSB) of n is 1, the upside-down printing mode is on.
· Only the Least Signiicant Bit (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

50 CUSTOM/POS Emulation

0x1B 0xC1
Select character pitch

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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

PITCH

Font A = 11 cpi

Font B = 15 cpi

Font A = 15 cpi

Font B = 20 cpi

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

n = 0x00 0x1B 0x21
Passo caratteri 11 cpi 0x1B 0xC1 0x00

DIREZIONE DI STAMPA

Passo caratteri 15 cpi 0x1B 0xC1 0x01

1 pollice

CUSTOM/POS Emulation 51

0x1C 0x26
Enable chinese fonts

<FS &>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1C 26 FS &

[Range] [Description]

Enable the chinese fonts.

[Notes] [Default]

This command can be used only for the simpliied chinese (GB2312), traditional chinese (BIG5) or extended chinese (GB18030-2000) models. This command enable chinese fonts in RAM. It does not afect the parameter set-up.

[Reference]

0x1C 0x2E See the command manual for the chinese fonts management.

[Example]

52 CUSTOM/POS Emulation

0x1C 0x2E
Disable Chinese fonts

<FS .>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1C 2E FS .

[Range] [Description]

Disable the chinese fonts.

[Notes]

· This command can be used only for the simpliied chinese (GB2312), traditional chinese (BIG5) or extended chinese (GB18030-2000) models.
· This command disable chinese fonts in RAM. It does not afect the parameter set-up. · Disabling the use of chinese fonts will restore the codepage used previously.

[Default] [Reference]

0x1C 0x26 See the command manual for the chinese fonts management.

[Example]

CUSTOM/POS Emulation 53

0x1D 0x21
Select character size

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 21 n

GS !

n

[Range]

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

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

[Description]

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

<GS !>

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]

· 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 topline. · 0x1B 0x21 can also be used to select character size. However, the setting of the last received com-
mand 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.

54 CUSTOM/POS Emulation

[Default] [Reference] [Example]

n = 0x00
0x1B 0x21
For printing a character with 6x width and height the command sequence is: 0x1D 0x21 0x55

CUSTOM/POS Emulation 55

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 42 n

GS B

n

[Range] [Description] [Notes]

0x00 n 0xFF
Turns black and white reverse printing mode on or of, based on the value of n: – when the Least Signiicant Bit (LSB) of n is 0, white/black reverse printing is turned of. – when the Least Signiicant Bit (LSB) of n is 1, white/black reverse printing is turned on.
· Only the Least Signiicant Bit (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

56 CUSTOM/POS Emulation

PRINT POSITION COMMANDS

0x08
Back space
Valid for
[Format] [Range] [Description] [Notes] [Default] [Reference] [Example]

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

Hex

08

ASCII

BS

Moves print position to previous character. Can be used to put two characters at the same position.

CUSTOM/POS Emulation 57

0x09
Horizontal tab

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex

09

ASCII

HT

[Range] [Description]

Moves the print position to the next horizontal tab position.

[Notes] [Default]

· Horizontal tab positions are set by using command 0x1B 0x44. · Ignored unless the next horizontal tab position has been set by using command 0x1B 0x44. · If the command is received when the printing position is at the right margin, the device executes print bufer full printing and horizontal tab processing from the beginning of the next line.
Defaul tab positions are set at intervals of 8 characters (9, 17, 25, …) when the right-side character spacing is 0.

[Reference]

0x1B 0x44

[Example]

TAB

TAB

TAB

1

2

3

ABCDEFGH 12345678
ABCDEFGH 12345678
ABCDEFGH 12345678

PRINTING DIRECTION

58 CUSTOM/POS Emulation

0x1B 0x24
Set absolute print position

<ESC $>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 24 nL nH

ESC $

nL nH

[Range] [Description]

0x00 nL 0xFF 0x00 nH 0xFF
Sets the distance from the beginning of the line to the position at which subsequent characters are to be printed. The distance from the beginning of the line to the print position is [(nL + nH × 256) × (vertical or horizontal motion unit)] inches.

[Notes]

· Settings outside the speciied printable area are ignored. · The horizontal and vertical motion unit are speciied by 0x1D 0x50. · 0x1D 0x50 can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum horizontal movement amount. · In standard mode, the horizontal motion unit (x) is used. · If the setting is outside the printing area width, it sets the absolute print position, but the left or right margin is set at default value.

[Default] [Reference]

0x1B 0x5C, 0x1D 0x50

[Example]

CUSTOM/POS Emulation 59

0x1B 0x28 0x76
Set relative vertical print position

<ESC (>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 28 76 nL nH

ESC (

v

nL nH

[Range] [Description]

0x00 nL 0xFF 0x00 nH 0xFF
Sets the print vertical position based on the current position by using the horizontal or vertical motion unit. This command sets the distance from the current position to [(nL + nH × 256) × (horizontal or vertical motion unit)].

[Notes]

· When the starting position is speciied by N motion unit to the bottom: nL + nH × 256 = N · When the starting position is speciied by N motion unit to the top (negative direction), use the complement of 65536: nL + nH × 256 = 65536 – N · The horizontal and vertical motion unit are speciied by 0x1D 0x50. · The 0x1D 0x50 command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum horizontal movement amount. · In standard mode, the vertical motion unit is used.

[Default] [Reference]

0x1D 0x50

[Example]

60 CUSTOM/POS Emulation

0x1B 0x44
Set horizontal tab position

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 44 ESC D

n1…nk n1…nk

00 NUL

[Range] [Description]

0x01 n 0xFF 0x00 k 0x20
Sets horizontal tab positions · n speciies the column number for setting a horizontal tab position calculated from the beginning of the line. · k indicates the total number of horizontal tab positions to be set.

[Notes] [Default]

· The horizontal tab position is stored as a value of [character width x n] measured from the beginning of the line. The character width includes the right-side character spacing and double-width characters are set with twice the width of normal characters. · This command cancels previous tab settings. · When setting n = 0x08, the print position is moved to column 9 sending 0x09. · Up to 32 tab positions (k = 0x20) can be set. Data exceeding 32 tab positions is processed as normal data. · Send [n] k in ascending order and place a 0 NUL code at the end. When [n] k is less than or equal to the preceding value [n] k-1, the setting is complete and the data which follows is processed as normal data. · 0x1B 0x44 00 cancels all horizontal tab positions. · The previously speciied horizontal tab position does not change, even if the character width is modiied.
Default tab positions are set at intervals of 8 characters (columns 9, 17, 25, …) when the right-side character spacing is 0.

[Reference]

0x09

CUSTOM/POS Emulation 61

[Example]

To set a tabulation to column 4 send the command: 0x1B 0x44 0x03 0x00
TAB 1
ABCD 123 45678

PRINTING DIRECTION

To print the string ABCD’ to the tabulation previously set, the command sequence is: 0x09ABCD`

where: 0x09 `ABCD’

move the print position to the set horizontal tab (4th column). is the string to be printed.

62 CUSTOM/POS Emulation

0x1B 0x5C
Set relative print position

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 5C nL nH

ESC

nL nH

[Range] [Description] [Notes]

0x00 nL 0xFF 0x00 nH 0xFF
Sets the print starting position based on the current position by using the horizontal or vertical motion unit. Sets the distance from the current position to [(nL+ nH × 256) × horizontal or vertical motion unit].
· It’s possible to print further on the right margin set for every font. In this case the printing continues up to the maximum border of the device mechanism and then begins a new row. · When the starting position is speciied by N motion units to the right: nL + nH × 256 = N · When the starting position is speciied by n motion units to the left (negative direction), use the complement of 65536: nL + nH × 256 = 65536 ­ N · If setting exceeds the printing area width, the left or right margin is set to the default value. · The horizontal and vertical motion unit are speciied by 0x1D 0x50. · 0x1D 0x50 can change the horizontal (and vertical) motion units. However, the value cannot be less than the minimum horizontal movement amount. · In standard mode, the horizontal motion unit is used. · Setting the right value, it’s possible to print characters over the right edge.

[Default] [Reference]

0x1B 0x24, 0x1D 0x50

[Example]

CUSTOM/POS Emulation 63

0x1B 0x61
Select justiication

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 61 n

ESC a

n

[Range] [Description]

0x00 n 0x02 0x30 n 0x32
This command selects the type of justiication based on the value of n as follows:

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

JUSTIFICATION Left justiication
Centered Right justiication

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

· This command is only enabled when inserted at the beginning of a line. · Lines are justiied within the speciied printing area. · Spaces set by 0x09, 0x1B 0x24 and 0x1B 0x5C will be justiied according to the previously-entered mode.
n = 0x00

Left justification 0x1B 0x61 0x00
Centred 0x1B 0x61 0x01
Right justification 0x1B 0x61 0x02

ABCDEFG 123456
ABCDEFG 123456
ABCDEFG 123456

PRINTING DIRECTION

64 CUSTOM/POS Emulation

0x1D 0x4C
Set left margin

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format] [Range] [Description]

Hex ASCII

1D 4C nL nH

GS L

nL nH

0x00 nL 0xFF 0x00 nH 0xFF

Sets the left margin to [(nL + nH × 256) × horizontal motion unit] inches.

Printable area

Left margin

Printing area width

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

· This command is enabled only if set at the beginning of the line. · If the setting exceeds the printable area, the maximum value of the printable area is used. · If the left margin + printing area width is greater than the printable area, the printing area width is set at maximum value. · The horizontal and vertical motion unit are speciied by 0x1D 0x50. Changing the horizontal or vertical motion unit does not afect the current left margin. · The 0x1D 0x50 command can change the horizontal (and vertical) motion unit. · However, the value cannot be less than the minimum horizontal movement amount and it must be in even units of the minimum horizontal movement amount.
0x1D 0x50, 0x1D 0x57

CUSTOM/POS Emulation 65

0x1D 0x57
Set printing area width

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 57 nL nH GS W nL nH

[Range] [Description]

0x00 nL 0xFF 0x00 nH 0xFF 0x0000 (nL + nH × 256) 0340
Sets the printing area width to the area speciied by nL and nH. The left margin is set to [(nL + nH × 256) × horizontal motion unit] inches.

Area stampabile

Margine sinistro

Larghezza area di stampa

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

· This command is only enabled if set at the beginning of the line. · If the right margin is greater than the printable area, the printing area width is set at maximum value. · If the printing area width = 0, it is set at the maximum value. · The horizontal and vertical motion units are speciied by 0x1D 0x50. Changing the horizontal or vertical motion unit does not afect the current left margin. · The 0x1D 0x50 command can change the horizontal (and vertical) motion unit. · However, the value cannot be less than the minimum horizontal movement amount and it must be in even units of the minimum horizontal movement amount.
0x1D 0x4C, 0x1D 0x50

66 CUSTOM/POS Emulation

BIT IMAGE COMMANDS

0x1B 0x2A
Select image print mode

<ESC *>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1B 2A m

ESC *

m

nL nH d1…dk nL nH d1…dk

[Range] [Description]

m = 0x00, 0x01, 0x20, 0x21 0x00 nL 0xFF 0x00 nH 0x03 0x00 d 0xFF
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. 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 × 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.

CUSTOM/POS Emulation 67

[Default] [Reference] [Example]

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

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

68 CUSTOM/POS Emulation

0x1C 0x70
Print NV bit image

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1C 70 n

m

FS p

n

m

[Range] [Description]

0x01 n 0xFF 0x00 m 0x03 0x30 m 0x33
Print a NV bit image n using the mode speciied by m:

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

MODE Normal Double width Double heigth Quadruple

· n is the number of the NV bit image (deined using the 0x1C 0x71 command).

[Notes]

· NV bit image means a bit image which is deined in a non-volatile memory by 0x1C 0x71 and printed by 0x1C 0x70. · This command is not efective when the speciied NV bit image has not been deined. · In standard mode, this command is efective only when there is no data in the print bufer. · This command is not afected by print modes (emphasized, underline, character size, white/black reverse printing, etc.), except upside-down printing mode. · If the printing area width set by 0x1D 0x4C and 0x1D 0x57 for the NV bit image is less than one vertical line, the following processing is executed only on the line in question. However, in NV bit image mode, one vertical line means 1 dot (one half dot for slip paper) in normal mode (m = 0x00, 0x30) and in double-height mode (m = 0x01, 0x32), and it means 2 dots (two half dots for slip paper) in double-width mode ( m = 0x01, 0x31) and in quadruple mode ( m = 0x03, 0x33). · The printing area width is extended to the right in NV bit image mode up to one line vertically. In this case, printing does not exceed the printable area. · If the printing area width cannot be extended by one line vertically, the left margin is reduced to accommodate one line vertically. · If the downloaded bit image to be printed exceeds one line, the excess data is not printed.

CUSTOM/POS Emulation 69

[Default] [Reference] [Example]

· This command feeds dots (for the height n of the NV bit image) in normal and double-width modes, and (for the height n x 2 of the VN bit image) in double- height and quadruple modes, regardless of the line spacing speciied by 0x1B 0x32 or 0x1B 0x33. · After printing the bit image, this command sets the print position to the beginning of the line and processes the data that follows as normal data. · In page mode, this command is efective only if m = 0X00.
0x1C 0x71

70 CUSTOM/POS Emulation

0x1C 0x71
Deine NV bit image

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1C 71 n [xL xH yL yH d1…dk] 1…[xL xH yL yH d1…dk] n

FS q

n [xL xH yL yH d1…dk] 1…[xL xH yL yH d1…dk] n

[Range] [Description]

0x01 n 0xFF 0x00 xL 0xFF 0x00 xH 0x03 (when 1 (xL + xH × 256) 1023) 0x00 yL 0x01 (when 1 (yL + yH ×256) 288) 0x00 d 0xFF k = (xL + xH × 256) × (yL + yH × 256) × 8 Total deined data area = 3M bytes
Deine the NV bit image speciied by n. · n speciies the number of the deined NV bit image. · xL, xH speciies (xL + xH × 256) × 8 dots in the horizontal direction for the NV bit image you are deining. · yL, yH speciies (yL + yH × 256) × 8 dots in the vertical direction for the NV bit image you are deining.

[Notes]

· Frequent write command execution may cause damage the NV memory. Therefore, it is recommended to write the NV memory 10 times or less a day. · The device executes a hardware reset after the procedure to place the image into the non- volatile memory. Therefore, user-deined characters, downloaded bit images, and macros should be deined only after completing this command. The device clears the receive and print bufers and resets the mode to the mode that was in efect at power on. · During processing this command, the device is in BUSY when writing the data to the user NV memory and stops receiving data. Therefore it is prohibitted to transmit the data including the realtime commands during the execution of this command.

· This command cancels all NV bit images that have already been deined by this command. The device can not redeine only one of several data deinitions previously deined. In this case, all data needs to be sent again. · From the beginning of the processing of this command till the inish of hardware reset, mechanical operations (including initializing the position of the device head when the cover is open, paper feeding by using the PAPER FEED button, etc.) cannot be executed. · NV bit image means a bit image which is deined in a non- volatile memory by 0x1C 0x71 and printed by 0x1C 0x70. · In standard mode, this command is efective only when processed at the beginning of the line.

CUSTOM/POS Emulation 71

[Default] [Reference]

· In page mode, this command is not efective. · This command is efective when 7 bytes <FS~yH> is processed as a normal value.
· When the amount of data exceeds the capacity left in the range deined by xL, xH, yL, yH, the device processes xL, xH, yL, yH out of the deined range. · In the irst group of NV bit images, when any of the parameters xL, xH, yL, yH is out of the deinition range, this command is disabled. · In groups of NV bit images other than the irst one, when the device processes xL, xH, yL, yH out of the deined range, it stops processing this command and starts writing into the non-volatile images. At this time, NV bit images that haven’t been deined are disabled (undeined), but any NV bit images before that are enabled. · d indicates the deinition data. In data (d) a 1 bit speciies a dot to be printed and a 0 bit speciies a dot not to be printed.
· This command deines n as the number of a NV bit image. Numbers rise in order from NV bit image 01H. Therefore, the irst data group [xL xH yL yH d1…dk] is NV bit image 01H, and the last data group [xL xH yL yH d1…dk] is NV bit image n. The total agrees with the number of NV bit images speciied by command 0x1C 0x70. · A deinition data of a NV bit image consists of [xL xH yL yH d1…dk]. Thefore, when only one NV bit image is deined, n=1. · The device processes a data group [xL xH yL yH d1…dk] once.ù · The device uses ([data: ( xL + xH × 256) × ( yL + yH × 256) × 8] + [header :4]) bytes of non-volatile memory.
· The deinition area in this device is a maximum of 3M bytes. This command can deine several NV bit images, but cannot deine a bit image data whose total capacity [bit image data + header] exceeds 3M bytes. · The device is busy immediately before writing into non-volatile memory. · When this command is received during macro deinition, the device ends macro deinition, and begins executing this command. · Once a NV bit image is deined, it is not erased by executing 0x1B 0x40, reset, and power of. · This command executes only deinition of a NV bit image and does not execute printing. Printing of the NV bit image is executed by the 0x1C 0x70 command.
0x1C 0x70

72 CUSTOM/POS Emulation

[Example]

To make a image or logo of width = 512 dots and height = 768 dots the command sequence to send is: 0x1C 0x71 0x01 0x40 0x00 0x60 0x00 followed by 49152 bytes which deine the image as the following drawing:

When xL = 64, xH = 0 yL = 96, yH = 0

(xL + xH 256) 8 dots = 512 dots

d97

d1

d49057

(yL + yH 256) 8 dots = 768 dots

MSB d1
LSB

d96

d49152

CUSTOM/POS Emulation 73

0x1D 0x2A
Deine dowloaded bit image

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

<GS *>

[Format] [Range] [Description] [Notes]

Hex ASCII

1D 2A x

y

d1…d(x × y × 8)

GS *

x

y

d1…d(x × y × 8)

0x01 x 0xFF 0x01 y 0x30 x × y 1536 0x00 d 0xFF

Deines a downloaded bit image using the number of dots speciied by x and y. · x speciies the number of dots in the horizontal direction. · y speciies the number of dots in the vertical direction.

· The number of dots in the horizontal direction is x × 8, in the vertical direction it is y × 8. · If x × y is out of the speciied range, this command is disabled. · d indicates bit-image data. Data (d) speciies a bit printed to 1 and not printed to 0. · The downloaded bit image deinition is cleared when: – 0x1B 0x40 is executed. – 0x1B 0x26 is executed. – The device is reset or the power is turned of.

[Default] [Reference]

74 CUSTOM/POS Emulation

[Example]

The following igure shows the relationship between the downloaded bit image and the printed data.
x × 8 dots

d1 dy+1 dy × 2+1
d2

MSB

y × 8 dots

LSB

dy dy × 2

dx × y × 8

CUSTOM/POS Emulation 75

0x1D 0x2F
Print dowloaded bit image

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 2F m

GS /

m

[Range] [Description]

0x00 m 0x03 0x30 m 0x33
Prints a received bit image using the mode speciied by m as follows:

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

MODE Normal Double width Double height Quadruple

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

· This command is ignored if a downloaded bit image has not been deined. · In standard mode, this command is efective only when there is no data in the print bufer. · This command has no efect in the print modes (emphasized, underline, character size, or white/ black reverse printing), except for upside-down printing mode. · If the downloaded bit-image to be printed exceeds the printable area, the excess data is not printed. · If the printing area width set by 0x1D 0x4C and 0x1D 0x57 is less than the bit image horizontal size, the following processing is performed: 1) The printing area width is extended toward the right side up to hold the bit image. In this case, printing does not exceed the printable area. 2) If the printing area width cannot be extended toward the right side, because there’s no more printing area, the left margin is reduced to accommodate the bit image.
0x1D 0x2A

76 CUSTOM/POS Emulation

0x1D 0x76 0x30
Print raster image

<GS v 0>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format] [Range] [Description]

Hex ASCII

1D 76 30 m

GS v

0

m

xL xH yL yH d1…dk xL xH yL yH d1…dk

0x00 m 0x03, 0x30 m 0x31 0x00 xL 0xFF 0x00 xH 0xFF (1 xL + xH × 256 65535) 0x00 yL 0xFF 0x00 yH 0x08 (1 yL + yH × 256 2047) 0x00 d 0xFF k = (xL + xH × 256) + (yL + yH × 256) (except for k = 0)

Selects raster bit image mode. The value of m selects the mode as follows:

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

MODE Normal Double width Double height Quadruple

[Notes]

· xL, xH selects the number of data bits (xL + xH × 256) in the horizontal direction for the bit image. · yL, yH selects the number of data bits (yL + yH × 256) in the vertical direction for the bit image. · k shows the number of data of the image. It’s an explanation parameter so it isn’t necessary to transmit it. · d shows the data of the image.
· In standard mode for receipt paper, this command is efective only when there is no data in the print bufer. · The data (d) identify as 1 a printed bit and as 0 a non printed bit. · If a raster bit image is longer than one line, the surplus data aren’t printed. · This command has no efect in all print modes (character size, emphasized, upside-down, underline, white/black reverse printing, etc.) for raster bit image, except the reverse mode (90° anticlockwise rotation). · This command feed the paper as much as is necessary to print the raster bit image, though the spacing set by 0x1B 0x32 or 0x1B 0x33.

CUSTOM/POS Emulation 77

[Default] [Reference] [Example]

· Don’t use this command during a macro execution because it can’t be included in a macro. · After the printing, the printing position moves to the beginning of the line. · The following table shows the report between the image data and the printing result:

d1 dX+1
: . . .

d2 dX+2
: dk-2

. . .

dx

. . .

dX x 2

. . .

:

dk-1

d

78 CUSTOM/POS Emulation

STATUS COMMANDS

0x10 0x04
Real-time status transmission

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

10 04 n DLE EOT n

[Range]

0x01 n 0x04 n = 0x17 n = 0x20 n = 0x21

[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 = 0x17 n = 0x20 n = 0x21

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

CUSTOM/POS Emulation 79

Device status (n = 0x01)

BIT OFF/ON

0

Of

1

On

2

Of

On

Of 3
On

4

On

5

6

Of 7
On

HEX 00 02 00 04 00 08 10 00 80

FUNCTION Not used. Fixed to Of Not used. Fixed to On Drawer kick-out signal level Low (pin 3). Drawer kick-out signal level High (pin 3). On-line. Of- line. Not used. Fixed to On RESERVED RESERVED LF key released LF key pressed

Of-line status (n = 0x02)

BIT OFF/ON

0

Of

1

On

Of 2
On

Of 3
On

4

On

Of 5
On

Of 6
On

7

Of

HEX 00 02 00 04 00 08 10 00 20 00 40 00

FUNCTION Not used. Fixed to Of Not used. Fixed to On Cover closed Cover opened Paper isn’t feeded by FEED. key Paper is feeded by FEED. key Not used. Fixed to On Paper present Printing stop due to paper end No error Error Not used. Fixed to Of

80 CUSTOM/POS Emulation

Error status (n = 0x03)

BIT OFF/ON

0

Of

1

On

2

Of 3
On

4

On

Of 5
On

Of 6
On

7

Of

HEX 00 02 00 08 10 00 20 00 40 00

FUNCTION Not used. Fixed to Of Not used. Fixed to On RESERVED Cutter ok Cutter error Not used. Fixed to On No unrecoverable error. Unrecoverable error No auto-recoverable error Auto-recoverable error Not used. Fixed to Of

Paper roll sensor status (n = 0x04)

BIT OFF/ON

0

Of

1

On

Of 2,3
On

4

On

Of 5, 6
On

7

Of

HEX 00 02 00 0C 10 00 60 00

FUNCTION Not used. Fixed to Of Not used. Fixed to On Paper present.. Near paper end. Not used. Fixed to On Paper present Paper not present Not used. Fixed to Of

CUSTOM/POS Emulation 81

Print status (n = 0x17)

BIT OFF/ON

0

Of

1

On

Of 2
On

3

4

On

Of 5
On

6

7

Of

HEX 00 02 00 04 10 00 20 00

FUNCTION Not used. Fixed to Of Not used. Fixed to On Paper drag motor of Paper drag motor on RESERVED Not used. Fixed to On Paper present Paper absent RESERVED Not used. Fixed to Of

FULL STATUS (n = 0x20, 6 bytes) 1° Byte = 0x10 (DLE) 2° Byte = 0x0F 3° Byte = Paper status

BIT OFF/ON

OFF 0
ON

1

OFF 2
ON

3

4

5

Of 6
On

7

HEX 00 01 00 04 00 40 –

FUNCTION Paper present Paper not present RESERVED Paper present Near paper end RESERVED RESERVED RESERVED Paper virtually present Virtual paper end RESERVED

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

82 CUSTOM/POS Emulation

4° byte = User status

BIT OFF/ON

Of 0,1
On

Of 2
On

Of 3
On

4

Of 5
On

Of 6
On

7

HEX 00 03 00 04 00 08 00 20 00 40 –

FUNCTION 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 RESERVED

5° byte = Recoverable error status

BIT OFF/ON

Of 0
On

Of 1
On

2

Of 3
On

4

Of 5
On

6

Of 7
On

HEX 00 01 00 02 00 08 00 20 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 RESERVED Black mark aligned Black mark not aligned

CUSTOM/POS Emulation 83

6° byte = Unrecoverable error status

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 Cutter ok Cutter error Cutter cover ok Cutter cover open RAM ok RAM error EEPROM ok EEPROM error RESERVED RESERVED RESERVED RESERVED

n = 21: transmit device ID 1° Byte = (refer to command 0x1D 0x49)

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

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

Request for device status transmission: Device response:

0x10 0x04 0x01 0x80 LF key pressed

84 CUSTOM/POS Emulation

0x1B 0x76
Transmit device status

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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

Of

5

6

7

Of

HEX 00 03 00 (0C) 00 00

FUNCTION Near paper-end sensor: paper present. Near paper-end sensor: paper not present. Paper-end sensor: paper present. Paper-end sensor: paper not present. Not used. Fixed to Of. Undeined. Undeined. Not used. Fixed to Of.

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

This command is executed immediately, even when the data bufer is full (Busy). 0x10 0x04

CUSTOM/POS Emulation 85

0x1C 0xEA
Transmit the device serial number

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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′

86 CUSTOM/POS Emulation

0x1D 0x72
Transmit status

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 72 n

GS r

n

[Range] [Description]

0x01 n 0x02 0x31 n 0x32
Transmits the status speciied by n as follows:

n

FUNCTION

0x01, 0x31 Transmits paper sensor status

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

BIT OFF/ON

0,1

Of

Of 2,3
On

4

Of

5

6

7

Of

HEX 00 00 (0C) 00 00

FUNCTION Not used. Fixed to Of. Paper-end sensor: paper present. Paper-end sensor: paper not present. Not used. Fixed to Of. Undeined. Undeined. Not used. Fixed to Of.

CUSTOM/POS Emulation 87

Drawer connector status (n = 0x02, 0x32)

BIT OFF/ON

Of 0,1
On

1

2

3

4

Of

5

6

7

Of

HEX 00 01 00 00

FUNCTION Connector pin 3 at low level. Connector pin 3 at high level. Undeined. Undeined. Undeined. Not used. Fixed to Of. Undeined. Undeined. Not used. Fixed to Of.

[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

88 CUSTOM/POS Emulation

0x1D 0xE0
Enable or disable automatic FULL STATUS back

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D E0 n GS 0xE0 n

[Range] [Description]

0x00 n 0xFF Enable or disable automatic full status back. n speciies the composition of FULL STATUS as follows:

BIT OFF/ON

0

Of

On

1

Of

On

2

Of

On

3

Of

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

[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 2° Byte = n Next byte (depends how many bits are active in in)
0x10 0x04

CUSTOM/POS Emulation 89

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D E1 GS 0xE1

[Range] [Description]

Reading of length of 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 near paper end 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’

90 CUSTOM/POS Emulation

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D E2 GS 0xE2

[Range] [Description]

Reading the number of cuts performed from the autocutter.

[Notes]

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

[Default] [Reference] [Example]

If the autocutter has performed 785 cuts, the answer will be: `785cuts’

CUSTOM/POS Emulation 91

0x1D 0xE3
Reading of length of printed paper

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D E3 GS 0xE3

[Range] [Description]

Reading of length expressed in centimetre of printed paper.

[Notes]

The command returns a string indicating how much paper is printed.

[Default] [Reference] [Example]

If the device has printed about 388.9 m, the answer will be: `38890cm’

92 CUSTOM/POS Emulation

0x1D 0xE5
Reading number of power up

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D E5 GS 0xE5

[Range] [Description]

Reading number of power up of the device.

[Notes]

The command returns a string indicating the number of device power ups.

[Default] [Reference] [Example]

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

CUSTOM/POS Emulation 93

BARCODE COMMANDS

0x1D 0x28 0x6B
Print two-dimensional barcode

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 28 6B pL pH cn fn

GS (

k

pL pH cn fn

[Range] [Description]

cn = 0x30, 0x31, 0x33, 0x34 0x41 fn 0x45 0x50 fn 0x52
Processes the data concerning two-dimensional barcode. · Barcode type is speciied by cn · Function is speciied by fn

cn 0x30 0x30 0x30 0x30 0x30
0x30

fn 0x41 0x42 0x43 0x44 0x45

FUNCTION Function 065 Function 066 Function 067 Function 068 Function 069

0x50 Function 080

0x30
0x31 0x31 0x31 0x31
0x31
0x31 0x33 0x33

0x51 Function 081

0x41 0x42 0x43 0x45

Function 065 Function 066 Function 067 Function 069

0x50 Function 080

0x51 0x41 0x42

Function 081 Function 365 Function 366

PDF 417: Specify the number of columns PDF 417: Specify the number of rows PDF 417: Specify the width of module PDF 417: Specify the module height PDF 417: Specify the error correction level PDF 417: Store the received data in the barcode save area PDF 417: Print the barcode data in the barcode save area QRcode: Specify encoding scheme QRcode: Specify dot size of the module QRcode: Specify size of barcode QRcode: Specify the error correction level QRcode: Store the received data in the barcode save area QRcode: Print the barcode data DATAMATRIX: Set encoding scheme DATAMATRIX: Set rotate

94 CUSTOM/POS Emulation

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

0x33 0x33
0x33

0x43 Function 367 0x44 Function 368
0x50 Function 380

0x33
0x34 0x34 0x34 0x34 0x34 0x34

0x51 Function 381

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

Function 065 Function 067 Function 068 Function 069 Function 080 Function 081

DATAMATRIX: Set dot size of the module DATAMATRIX: Set size of barcode DATAMATRIX: Store the received data in the barcode save area DATAMATRIX: Print the barcode data in the barcode save area AZTEC: Specify encoding scheme AZTEC: Specify dot size of the module AZTEC: Specify size of barcode AZTEC: Specify the error correction level AZTEC: Store the received data in the barcode save area AZTEC: Print the barcode

CUSTOM/POS Emulation 95

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

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 = 0x03, pH = 0x00)

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 auto processing is speciied, the maximum number of columns in the data area is 30 columns. · When n is not 0x00, speciies the number of columns of the data area as n code word.

· 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 turned of.

n = 0x00

[Reference]

0x1D 0x28 0x6B

[Example]

To deine 3 columns the command sequence is the following: 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

96 CUSTOM/POS Emulation

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

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 = 0x03, pH = 0x00)

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 auto processing is speciied, the maximum number of rows is 20. · When n is not 0x00, speciies the number of rows of the data area as n rows.

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

n = 0x00

[Reference]

0x1D 0x28 0x6B

[Example]

To deine 3 rows the command sequence is the following: 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

CUSTOM/POS Emulation 97

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

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 = 0x03, pH = 0x00)

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 or the device is reset or turned of. n = 0x03

[Reference]

0x1D 0x28 0x6B

[Example]

To deine width 4 the command sequence is the following: 0x1D 0x28 0x6B 0x03 0x00 0x30 0x43 0x04

Module height

Module width

0

5

10

15 17 Modules number

98 CUSTOM/POS Emulation

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

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 = 0x03, pH = 0x00)

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 or the device is reset or turned of. n = 0x03

[Reference]

0x1D 0x28 0x6B

[Example]

To deine height 4 the command sequence is the following: 0x1D 0x28 0x6B 0x03 0x00 0x30 0x44 0x04

Module height

Module width

0

5

10

15 17 Modules number

CUSTOM/POS Emulation 99

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

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 = 0x04, pH = 0x00)

m = 0x30

0x30 n 0x38

m = 0x31

0x01 n 0x28

Speciies the error correction level of PDF417. · pL and pH specify the number of successive bytes to be sent. · The error correction level is speciied by “level” when m = 0x30. · The error correction level is speciied by “ratio” when m = 0x31 [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
0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38

CORRECTION LEVEL
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

100 CUSTOM/POS Emulation

[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 or the device is reset or turned of. m = 0x31, n = 0x01 [ratio: 10%] 0x1D 0x28 0x6B
To deine error correction = 0.2, the command sequence is the following: 0x1D 0x28 0x6B 0x03 0x00 0x30 0x45 0x30 0x02

CUSTOM/POS Emulation 101

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

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 (0x00 pL 0xFF, 0x00 pH 0x04) · PDF417 barcode only with alphanumeric characters:
4 (pL + pH × 256) 1854 (0x00 pL 0xFF, 0x00 pH 0x07) · PDF417 barcode only with numeric characters:
4 (pL + pH × 256) 2729 (0x00 pL 0xFF, 0x00 pH 0x0A)
Stores the data (d1…dk) in the barcode save area for printing in PDF417 format. · 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 081. The data in the barcode save area are reserved after processing Function 081. · 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 or the device is reset or turned of.

[Reference]

0x1D 0x28 0x6B

[Example]

102 CUSTOM/POS Emulation

0x1D 0x28 0x6B [fn 081]

<GS ( k>

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 28 6B pL pH 30 51 30

GS (

k

pL pH 0

Q

0

[Range] [Description]

(pL + pH × 256) = 3 (pL = 0x03, pH = 0x00)
Encodes the data in the barcode save area and prints it in PDF417 format. pL and pH specify the number of successive bytes to be sent.

[Notes]

· In standard mode, use this function when the 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 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 065) is speciied, the number of columns is calculated by the current printing area, module width (Function 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

CUSTOM/POS Emulation 103

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 = 0x03, pH = 0x00)

Speciies encoding type of QRcode barcode. pL and pH specify the number of successive bytes to be sent.

n 0x00 0x01

ENCODING SCHEME QRcode MicroQR

<GS ( k>

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

· QRcode: Encode all extended ASCII characters data up to a maximum length of 7089 numeric digits, 4296 alphabetic characters or 2953 bytes of data. · MicroQR (a miniature version of the QRcode barcode for short message): Encode all numbers from 0 to 9 up to a maximum length of 35 characters.
n = 0x00
0x1D 0x28 0x6B

QRcode

MicroQR

104 CUSTOM/POS Emulation

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 28 6B pL pH 31 42 n

GS (

k

pL pH 1

B

n

[Range] [Description] [Notes]

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

(pL = 0x03, pH = 0x00)

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]

<GS ( k>

Module 6 dots

CUSTOM/POS Emulation 105

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

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 28 6B pL pH 31 43 n

GS (

k

pL pH 1

C

n

[Range] [Description]

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

(pL = 0x03, pH = 0x00)

Speciies QRcode barcode eversion, as follows:

n

VERSION

0x00 AUTO

0x01 V1

0x02 V2

0x03 V3

0x04 V4

0x05 V5

0x06 V6

0x07 V7

0x08 V8

0x09 V9

0x0A V10

0x0B V11

0x0C V12

0x0D V13

n

VERSION

0x0E V14

0x0F V15

0x10 V16

0x11 V17

0x12 V18

0x13 V19

0x14 V20

0x15 V21

0x16 V22

0x17 V23

0x18 V24

0x19 V25

0x1A V26

0x1B V27

n

VERSION

0x1C V28

0x1D V29

0x1E V30

0x1F V31

0x20 V32

0x21 V33

0x22 V34

0x23 V35

0x24 V36

0x25 V37

0x26 V38

0x27 V39

0x28 V40

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

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

106 CUSTOM/POS Emulation

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

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 28 6B pL pH 31 45 n

GS (

k

pL pH 1

E

n

[Range] [Description]

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

(pL = 0x04, pH = 0x00)

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

n 0x00 0x01 0x02 0x03 0x04

ECC level

AUTO

ECC = approx 20% of barcode

Recovery Capacity = approx 7%

ECC = approx 37% of barcode

Recovery Capacity = approx 15%

ECC = approx 50% of barcode

Recovery Capacity = approx 25%

ECC = approx 65% of barcode

Recovery Capacity = approx 30%

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

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

Level L

Level M

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

Level Q

Level H

CUSTOM/POS Emulation 107

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

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 081. The data in the barcode save area are reserved after processing Function 081. · 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]

108 CUSTOM/POS Emulation

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 28 6B pL pH 31 51 31

GS (

k

pL pH 1

Q

1

[Range] [Description]

(pL+pH × 256) = 3

(pL = 0x03, pH = 0x00)

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]

<GS ( k>

CUSTOM/POS Emulation 109

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 28 6B pL pH 33 41 n

GS (

k

pL pH 3

A

n

[Range] [Description]

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

(pL = 0x03, pH = 0x00)

Set the encoding scheme speciied by n as follows:

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

ENCODING Ascii C40 Text X12 Edifact
Base256 AutoBest

<GS ( k>

[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

110 CUSTOM/POS Emulation

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 = 0x03, pH = 0x00)

Set rotate by n as follows:

n 0x00 0x01

ROTATION Nessuna rotazione
Rotazione

<GS ( k>

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

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

CUSTOM/POS Emulation 111

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

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 = 0x03, pH = 0x00)

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

<GS ( k>

112 CUSTOM/POS Emulation

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

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[Format]

Hex ASCII

1D 28 6B pL pH 33 44 n

GS (

k

pL pH 3

D

n

[Range] [Description]

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

(pL = 0x03, pH = 0x00)

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

BARCODE SIZE 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

BARCODE SIZE 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]

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

[Default]

DmtxSymbolSquareAuto

[Reference]

0x1D 0x28 0x6B

[Example]

CUSTOM/POS Emulation 113

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

<GS ( k>

Valid for

K3 STD K3 DSP K3 Wi-Fi K3 HS K3 HS LF

[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 381. The data in the barcode save area reserved after processing Function 381. · pL and pH specify the number of

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

CUSTOM User Manuals

Related Manuals