Академический Документы
Профессиональный Документы
Культура Документы
Command Reference
2 inch Compact KIOSK Face Mount Printer
NPK2092
Revision
1.00
2011.10.24
1st edition
D-F10087
Table of Contents
1. Application 1
2. Command2
2.1 Command List 2
2.2 Printer Driver 4
2.3 Command Details 4
3. Character Code Table36
3.1 Domestic Character Code Table (International Character Set: Japanese) 36
3.2 Overseas Character Code (International Character Set: USA) 37
3.3 CODE PAGE858 38
3.4 International Character Code Table 39
3.5 CODE PAGE1250 40
3.6 CODE PAGE1251 41
3.7 CODE PAGE1252 42
3.8 CODE PAGE1254 43
1. Application
This reference describes command and character code page for NP-K2092.
Please refer to product specifications for specifications and precautions for NP-K2092.
2. Command
2.1 Command List
1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
11)
12)
13)
14)
15)
16)
17)
18)
19)
20)
21)
22)
23)
24)
25)
26)
27)
28)
29)
30)
31)
32)
33)
34)
35)
36)
37)
38)
39)
40)
41)
42)
43)
44)
45)
46)
47)
[Horizontal Tab] HT 4
[Print and Line Feed] LF 4
[Carriage Return] CR 4
[Software Reset] DC1 4
[Line Print Permission] DC3 + 4
[Line Print Prohibition] DC3 4
[Line Buffer A Selection] DC3 A 4
[Line Buffer B Selection] DC3 B 5
[Line Buffer Clear] DC3 C 5
[Write-in dot setting of line buffer] DC3 D nl nh 5
[Line Pattern Fill] DC3 F n1 n2 5
[Write-in line setting of line buffer] DC3 L nl nh ml mh 5
[Line 1 dotline print execution] DC3 P 5
[Line Image Write-in] DC3 V Dn 6
[Barcode Termination Change] ESC RS c n 6
[Character Right Space Quantity Setting] ESC SP n 6
[Print Mode Batch Setting] ESC ! n 6
[Line Overlap Mode] ESC # n 7
[Absolute Position Setting] ESC $ n1 n2 7
[Download Characters Set SET/UNSET] ESC % n 7
[Download Characters Definition] ESC & s n m a Dn 8
[Bit Image Mode Set] ESC * m n1 n2 Dn 10
[Underline SET/UNSET] ESC n 12
[1/6 inch Line Feed Amount Setting] ESC 2 12
[Line Feed Setting of Smallest Paper Feed Pitch Unit] ESC 3 n 12
[Printer Initialization] ESC @ 12
[Back Feed] ESC B n 12
[Horizontal Tab Position Setting] ESC D n1 n2 --- NUL 13
[Enhanced Print SET/UNSET] ESC E n 13
[Double Strike Print SET/UNSET] ESC G n 13
[Print and Paper Feed at Smallest Pitch Unit] ESC J n 13
[International Character Selection] ESC R n 14
[90 Clockwise Rotated Character SET/UNSET] ESC V n 14
[Relative Position Setting] ESC n1 n2 14
[Position Alignment] ESC a n 14
[Raster Bit Image] ESC b n1 n2 n3 Dn 15
[Feed Switch VALID/INVALID] ESC c 5 n 16
[Print and n Line Feed] ESC d n 16
[Full Cut] ESC i 16
[Partial Cut] ESC m 16
[QR Code Print (model 2)] ESC q S E V M 17
[Printer Information Transmission] ESC s n 18
[Character Code Table Selection] ESC t n 18
[Printer Status Transmission] ESC v 19
[Inverted Character SET/UNSET] ESC { n 19
[Partition Drive Selection] GS % n 19
[User Code Page Registration] GS & n Dn 19
48)
49)
50)
51)
52)
53)
54)
55)
56)
57)
58)
59)
60)
61)
62)
63)
64)
65)
66)
67)
68)
69)
70)
*[00 n1 FF]h
*[00 n2 FF]h
Fills selected line buffer with 2 bytes data set in n1n2.
n1 is 8dots in left side while n2 is right side.
LSB is left side.
termination
00
[00]h
80
[FF]h
Default of n is [00]h
16) [Character Right Space Quantity Setting] ESC SP n
Code: [1B]h + [20]h + n
*[00 n 20]h
Sets right SPACE quantity of character by dot. (1/203 inch unit)
Right SPACE is reflected with zoom when double width zoom mode.
Default of n is [00]h.
17) [Print Mode Batch Setting] ESC ! n
Code: [1B]h + [21]h + n
Sets print mode.
n has the following meaning.
bit
function
*[00 n FF]h
value
0
1
0 Character font
Font A
Font B
1 Undefined
2 Undefined
3 Enhanced
UNSET
SET
4 Double height
UNSET
SET
5 Double width
UNSET
SET
6 Undefined
7 Underline
UNSET
SET
If double height and double width are set at the same time, quadruple character will be
formed.
All of the printed characters will be underlined except for the 90 clock-wise rotated
characters and spaces created by [Horizontal Tab].
Underline width is determined by the value set in [Underline SET/UNSET].
Default is 1dot width.
Enhanced print control is only effective when Kanji mode.
Enables to print with different character sizes mixed e.g. double width and normal size etc.
The default of n is [00]h.
24dots
12dots
P1
P4
P2
P5
P3
P6
P7
P34
MSB
P35
P36
LSB
<Reference>
when Font B
9dots
P1
P4
P2
P5
P3
P6
P7
MSB
P25
17dots
P26
LSB
MSB
P27
LSB
00
01
20
21, 23
Horizontal Direction
Dot Quantity
Dot Density
Dot Density
Max. Dots
8
8
24
24
67 dpi
67 dpi
203 dpi
203 dpi
101 dpi
203 dpi
101 dpi
203 dpi
192
384
192
384
10
D1 D2 D3
MSB
D1
D2
D3
LSB
Print Data
=1dot
Single density
Double density
D1
D4
D7
D2
D5
D8
D3
D6
D9
D1 D2 D3 D4 D5 D6 D7 D8 D9
MSB
LSB
Print Data
=1dot
Single density
11
Double density
12
13
14
D2
Dn1+2
Dn12+2
Dn1
Dn1*2
Dn13
n2+(256 n3)dots
n1(n2+256 n3)
MSB
LSB
15
16
17
4
L
2. Process Time
Model (V)
Time (sec)
1
0.4
2
0.5
3
0.7
4
0.9
5
1.0
6
1.3
7
1.5
8
1.7
9
2.0
10
2.3
Model (V)
Time (sec)
11
2.7
12
3.0
13
3.4
14
3.8
15
4.2
16
4.7
17
5.1
18
5.7
19
6.2
20
6.7
Model (V)
Time (sec)
21
7.3
22
7.8
23
8.5
24
9.1
25
9.7
26
10.5
27
11.2
28
11.8
29
12.6
30
13.4
Model (V)
31
32
33
34
35
36
37
38
39
40
Time (sec)
14.1
15.0
15.8
16.7
17.5
18.4
19.4
20.4
21.3
22.3
*Process time depends on model
Beware that process time when fixing the mask (no optimization) will be approx. 1/10 comparing to when
optimization.
*The above mentioned times are just for reference.
42) [Printer Information Transmission] ESC s n
Code: [1B]h + [73]h + n
Transmits printer information.
n and details of returned data are as follows.
n(hex) Printer Information Returned data format
Returned data length
Variable-length string
02
Model Info.
Max. 32Byte
(terminal NULL=00h)
03
F/W version info.
Fixed-length string
8Byte
04
Boot version info.
Fixed-length string
8Byte
05
SW setting info.
Fixed-length Hex data
4Byte
(MS1set+MS2set+00h+00h)
1C
Check SUM info.
Fixed-length Hex data
2Byte
Returned format
[FF]h + n(*1) + returned data
(*1) designated n in command.
Please refer to 4.1.1 Switch Setting in this product specifications when interface setting is
SERIAL with using XON/XOFF control.
43) [Character Code Table Selection] ESC t n
Code: [1B]h + [74]h + n
*[00 n 07]h
Selects character code table
n has the following meaning.
n(hex)
Font Table
00
International Code page
01
Japanese Code page
02
Code Page 858
03
Code Page 1250
04
Code Page 1251
05
Code Page 1252
06
Code Page 1254
07
User Code Page
Default value of n is [01]h
D-F10087 NP-K2092 Command Reference Rev.1.00
18
Partition
*[00 n 05]h
Number of dots
when conducting ATST
00
Optimization (anomaly)
64
01
Fix without partition
384
02
Fix in 2 partition
192
03
Fix in 3 partition
128
04
Fix in 6 partition
64
05
Optimization
64
Default value of n is [05]h.
When out of range, it will be ignored and do not change.
47) [User Code Page Registration] GS & n Dn
Code: [1D]h + [26]h + n + Dn
*[00 n 01]h
Registers User Code Page.
n(Hex)
Registeration Font Type
00
User Code Page Font A (1224)
01
User Code Page Font B (917)
Dn is registeration font data. Data format is raster format.
Since it definitely requires data (10752 bytes) for the amount of 224 characters, please set
[00]h to all of the unregistered data part.
(horizontal 2 bytes vertical 24 bytes) 224 characters ([20]h ~ [FF]h)
*Also registerable to [7F]h, [FF]h.
D-F10087 NP-K2092 Command Reference Rev.1.00
19
Reference example
In case of Font A
d1 =00h
d3 =00h
d5 =06h
d7 =06h
d9 =06h
d11=0Fh
d13=0Fh
d15=0Fh
d17=19h
d19=19h
d21=19h
d23=19h
d25=30h
d27=3Fh
d29=3Fh
d31=30h
d33=60h
d35=60h
d37=60h
d39=60h
d41=60h
d43=60h
d45=00h
d47=00h
24 dots
d2 =00h
d4 =00h
d6 =00h
d8 =00h
d10=00h
d12=00h
d14=00h
d16=00h
d18=80h
d20=80h
d22=80h
d24=80h
d26=C0h
d28=C0h
d30=C0h
d32=C0h
d34=60h
d36=60h
d38=60h
d40=60h
d42=60h
d44=60h
d46=00h
d48=00h
12 dots
: Dummy data part. Set as 0 fix when registeration.
20
Reference example
In case of Font B
d1 =00h
d3 =00h
d5 =00h
d7 =00h
d9 =00h
d11=00h
d13=00h
d15=00h
d17=3Ch
d19=7Eh
d21=C3h
d23=C3h
d25=C3h
d27=C3h
d29=C3h
d31=FFh
d33=FFh
d35=C3h
d37=C3h
d39=C3h
d41=C3h
d43=C3h
d45=C3h
d47=C3h
17 dots
9 dots
: Dummy data part. Set as 0 fix when registeration.
21
d2 =00h
d4 =00h
d6 =00h
d8 =00h
d10=00h
d12=00h
d14=00h
d16=00h
d18=00h
d20=00h
d22=00h
d24=00h
d26=00h
d28=00h
d30=00h
d32=00h
d34=00h
d36=00h
d38=00h
d40=00h
d42=00h
d44=00h
d46=00h
d48=00h
22
23
24
Switch
b0
b1
b2
b3
b4
b5
b6
b7
MS1-1
MS1-2
MS1-3
MS1-4
MS1-5
MS1-6
MS1-7
MS1-8
Value
0
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
1
ON
ON
ON
ON
ON
ON
ON
ON
Switch
b0
b1
b2
b3
b4
b5
b6
b7
MS2-1
MS2-2
MS2-3
MS2-4
MS2-5
MS2-6
MS2-7
MS2-8
Value
0
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
1
ON
ON
ON
ON
ON
ON
ON
ON
25
26
27
Number
Types of Character
Numbers (0~9)
12
Numbers (0~9)
UPC-E
8
Numbers (0~9)
JAN-13
(EAN-13)
13
Numbers (0~9)
JAN-8
(EAN-8)
Number (0~9)
Alphabet (A~Z)
CODE39
Marks ($%*+ ./:SPACE)
Start/Stop Code (*)
ITF
Even
Number: 0~9
Number (0~9)
CODABAR
Variable Marks ($%*+ ./:SPACE)
(NW-7)
length
Start/Stop Code (ABCD)
(abcd)
*Refer to next page for CODE128.
Remarks
*Check digit that has calculated inside printer will
be automatically added to 12th digit.
*Calculated value will be prioritized if numerical
value differs from 12th digit.
*Compress 12 digits data to 8 digits inside printer
*Check digit that has calculated inside printer will
be automatically added to 8th digit.
*Calculated value will be prioritized if numerical
value differs from 12th digit.
*Check digit that has calculated inside printer will
be automatically added to 13th digit.
*Calculated value will be prioritized if numerical
value differs from 13th digit.
*Check digit that has calculated inside printer will
be automatically added to 8th digit.
*Calculated value will be prioritized if numerical
value differs from 8th digit.
*Make sure to enter Start/Stop Code "*".
Variable
length
28
CODE128
1. Overview
2 digits-characters are rendered by ASCII 128 characters (numeric characters, capitals/lower cases,
symbols and control codes) with one bar pattern. A number of numeric characters to render is
variable-length. Stop code and check digit are automatically attached.
2. Character types
Code set A: able to render ASCII character of [00]h ~ [5F]h
Code set B: able to render ASCII character of [20]h ~ [7F]h
Code set C: able to render numeric double digits(00-99) by 1 bar pattern.
Special characters:
1) Start code / code selection character (CODE A, CODE B and CODE C)
The barcode data has to start with this character.
You can change the code set from one to the other in middle of the data.
2) Shift character (SHIFT)
Code set A: One character right after SHIFT is treated as code set B.
Code set B: One character right after SHIFT is treated as code set A.
Code set C: N/A
3) Function characters (FNC1, FNC2, FNC3, and FNC4)
These characters depend on an application.
Code set C can handle only "FNC1."
3. Detail Specifications
Command execution is halted if the barcode data does not start with a "start code."
Command execution is halted if the combination of "{" and the next character is not a defined
special character.
To use "{" as a character, the string has to be "{{" ([7B]h + [7B]h).
If there is character unable to use in selected code set, it can be printed but not readable by a
scanner.
To use [00]h as a code, change the barcode termination character to [FF]h with "Barcode
termination change."command.
HRI character specifications of control/special characters:
1) Control characters ([00]h~[1F]h, [7F]h)
A space character is printed.
2) Start code / code definition character (CODE A, CODE B and CODE C)
No printing.
3) Shift character (SHIFT)
No printing.
4) Function characters (FNC1, FNC2, FNC3, and FNC4)
A space character is printed.
4. Character Table
Special Characters
ASCII
CODE A
{A
CODE B
{B
CODE C
{C
SHIFT
{S
FNC 1
{1
FNC 2
{2
FNC 3
{3
FNC 4
{4
Hexadecimal
[7B]h + [41]h
[7B]h + [42]h
[7B]h + [43]h
[7B]h + [53]h
[7B]h + [31]h
[7B]h + [32]h
[7B]h + [33]h
[7B]h + [34]h
29
Code Set A
HEX
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0
NULL
SOH
STX
ETX
EOT
ENQ
ACK
BEL
BS
HT
LF
VT
FF
CR
SO
SI
1
DLE
DC1
DC2
DC3
DC4
NAK
SYN
ETB
CAN
EM
SUB
ESC
FS
GS
RS
US
2
SP
!
#
$
%
&
(
)
*
+
,
.
/
3
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
4
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
5
P
Q
R
S
T
U
V
W
X
Y
Z
[
]
^
_
Code Set B
HEX
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
2
SP
!
#
$
%
&
(
)
*
+
,
.
/
3
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
4
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
5
P
Q
R
S
T
U
V
W
X
Y
Z
[
]
^
_
6
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
7
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~
DEL
Code Set C
HEX
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0
00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
1
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
2
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
3
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
30
4
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
5
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
6
96
97
98
99
31
32
*[a1 = 77]h
*[21 a2 7E]h
Shift JIS code system: *[a1 = EC]h
*[40 a2 7E, 80 a2 9E]h
MSB
P1 P4
24dots
P7
P70
P2 P5
P71
P3 P6
P72
33
LSB
34
35
BIN
3 4
6 7
8 9
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
0000 NUL
0001
0010
0011
0100
0101
0110
0111
1000
1001
HT
1010
LF
1011
ESC
C 1100
FF FS
D 1101
CR GS
E 1110
RS
SP
DC1
DC3
F 1111
SP
SP
* SP indicated SPACE
* CR is ignored.
* Printer operation cannot be guaranteed if the blank control code (codes below [1F]h) is
transmitted to printer.
* This code table indicates simplified symbol and is not print result. There may be some difference
from the actual print.
36
BIN
3 4
6 7
8 9
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
0000 NUL
0001
0010
0011
0100
0101
0110
0111
1000
1001
HT
1010
LF
1011
ESC
C 1100
FF FS
D 1101
CR GS
E 1110
RS
SP
DC1
DC3
F 1111
SP
SP
* SP indicated SPACE
* CR is ignored.
* Printer operation cannot be guaranteed if the blank control code (codes below [1F]h) is
transmitted to printer.
* This code table indicates simplified symbol and is not print result. There may be some difference
from the actual print.
37
BIN
3 4
6 7
8 9
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
0000 NUL
0001
0010
0011
0100
0101
0110
0111
1000
1001
HT
1010
LF
1011
ESC
C 1100
FF FS
D 1101
CR GS
E 1110
RS
SP
DC1
DC3
F 1111
SP
SP
* SP indicated SPACE
* CR is ignored.
* Printer operation cannot be guaranteed if the blank control code (codes below [1F]h) is
transmitted to printer.
* This code table indicates simplified symbol and is not print result. There may be some difference
from the actual print.
38
Character set
23h 24h 40h 5Bh 5Ch 5Dh 5Eh 60h 7Bh 7Ch 7Dh 7Eh
00h U.S.A
01h France
02h Germany
03h U.K.
04h Denmark I
05h Sweden
06h Italy
07h Spain
08h Japan
09h Norway
0Ah Denmark II
*This code table indicates simplified symbol and is not print result. There may be some difference from
the actual print.
39
BIN
3 4
6 7
8 9
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
0000 NUL
0001
0010
0011
0100
0101
0110
0111
1000
1001
HT
1010
LF
1011
ESC
C 1100
FF FS
D 1101
CR GS
E 1110
RS
SP SP
SP
DC1
SP
DC3
SP
SP SP
F 1111
SP
* SP indicated SPACE
* CR is ignored.
* Printer operation cannot be guaranteed if the blank control code (codes below [1F]h) is
transmitted to printer.
* This code table indicates simplified symbol and is not print result. There may be some difference
from the actual print.
40
BIN
3 4
6 7
8 9
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
0000 NUL
0001
0010
0011
0100
0101
0110
0111
1000
1001
HT
1010
LF
1011
ESC
C 1100
FF FS
D 1101
CR GS
E 1110
RS
SP
SP
DC1
DC3
SP
F 1111
SP
* SP indicated SPACE
* CR is ignored.
* Printer operation cannot be guaranteed if the blank control code (codes below [1F]h) is
transmitted to printer.
* This code table indicates simplified symbol and is not print result. There may be some difference
from the actual print.
41
BIN
3 4
6 7
8 9
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
0000 NUL
0001
0010
0011
0100
0101
0110
0111
1000
1001
HT
1010
LF
1011
ESC
C 1100
FF FS
D 1101
CR GS
E 1110
RS
SP SP
SP
DC1
SP
DC3
F 1111
SP SP
SP SP
* SP indicated SPACE
* CR is ignored.
* Printer operation cannot be guaranteed if the blank control code (codes below [1F]h) is
transmitted to printer.
* This code table indicates simplified symbol and is not print result. There may be some difference
from the actual print.
42
BIN
3 4
6 7
8 9
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
SP SP
0000 NUL
0001
0010
0011
0100
0101
0110
0111
1000
1001
HT
1010
LF
1011
ESC
C 1100
FF FS
D 1101
CR GS
SP SP
E 1110
RS
SP SP
SP
DC1
SP
DC3
F 1111
SP SP
* SP indicated SPACE
* CR is ignored.
* Printer operation cannot be guaranteed if the blank control code (codes below [1F]h) is
transmitted to printer.
* This code table indicates simplified symbol and is not print result. There may be some difference
from the actual print.
43