Wincor Nixdorf TH180 Programmer's Guide

Category
Print & Scan
Type
Programmer's Guide
TH180
Thermal Printer
Programmer’s Guide
Edition November 2012
All brand and product names mentioned in this document are
trademarks of their respective owners.
Copyright © Wincor Nixdorf International GmbH, 2012
The reproduction, transmission or use of this document or its contents
is not permitted without express authority.
Offenders will be liable for damages.
All rights, including rights created by patent grant or registration of a
utility model or design, are reserved.
Delivery subject to availability; technical modifications possible.
Contents
Control Code List ...................................................................................................................................... 1
Commands related to printing instructions ................................................................................... 1
Commands related to printing characters ..................................................................................... 1
Commands related to the print position ....................................................................................... 2
Commands related to bit images ................................................................................................... 2
Commands related to macro functions ......................................................................................... 2
Commands related to bar code ..................................................................................................... 2
Commands related to new line quantities ..................................................................................... 3
Commands related to mechanical control ..................................................................................... 3
Command related to paper detectors ........................................................................................... 3
Commands related to the status ................................................................................................... 3
Command related to the panel switches ....................................................................................... 3
Commands related to auxiliary functions ...................................................................................... 4
Commands related to extension functions ................................................................................... 4
Commands related to the two-dimensional barcode ..................................................................... 4
Code Tables .............................................................................................................................................. 5
Page 0 (PC437) .............................................................................................................................. 5
Page 1 (Katakana) .......................................................................................................................... 6
Page 2 (PC850) .............................................................................................................................. 7
Page 3 (PC860) .............................................................................................................................. 8
Page 4 (PC863) .............................................................................................................................. 9
Page 5 (PC865) ............................................................................................................................ 10
Page 16 (WPC1252) ..................................................................................................................... 11
Page 17 (PC866)........................................................................................................................... 12
Page 18 (PC852)........................................................................................................................... 13
Page 19 (PC858)........................................................................................................................... 14
Page 254 (MIK) ............................................................................................................................ 15
Page 255 (Blank Page) ................................................................................................................. 16
Page 8 (PC857) ............................................................................................................................ 17
Page 26 ( Thai code 18) ................................................................................................................ 18
Page 40 (PC864)........................................................................................................................... 19
Page 249 (PC851)......................................................................................................................... 20
Page 250 (PC869)......................................................................................................................... 21
Page 251 (ISO8859-2) .................................................................................................................. 22
Page 252 (ISO8859-7) .................................................................................................................. 23
Page 253 (PC866 Type 2) ............................................................................................................. 24
Command Details .................................................................................................................................... 25
Commands related to printing instructions ................................................................................. 25
LF ..................................................................................................................................................... 25
FF ..................................................................................................................................................... 25
CR .................................................................................................................................................... 26
ESC FF ............................................................................................................................................. 26
ESC J n ............................................................................................................................................ 27
ESC d n ............................................................................................................................................ 28
Commands related to printing characters ................................................................................... 29
CAN .................................................................................................................................................. 29
ESC SP n ......................................................................................................................................... 30
ESC ! n ............................................................................................................................................. 31
ESC % n ........................................................................................................................................... 33
ESC & y c1 c2 [xld1 d(y×x1)] [xkd1d (y×xk)] ............................................................................. 34
ESC - n ............................................................................................................................................. 35
ESC ? n ............................................................................................................................................ 36
ESC E n............................................................................................................................................ 36
ESC G n ........................................................................................................................................... 37
ESC M n ........................................................................................................................................... 38
ESC R n ........................................................................................................................................... 39
ESC V n ............................................................................................................................................ 40
ESC t n ............................................................................................................................................. 41
ESC { n ............................................................................................................................................. 42
GS ! n ............................................................................................................................................... 43
GS B n .............................................................................................................................................. 45
GS b n .............................................................................................................................................. 46
Commands related to the print position ..................................................................................... 47
HT .................................................................................................................................................... 47
ESC $ nL nH ................................................................................................................................... 48
ESC D n1~nk NULL ....................................................................................................................... 49
ESC T n ............................................................................................................................................ 51
ESC W xL xH yL yH dxL dxH dyL dyH ............................................................................................... 52
ESC \ nL nH ..................................................................................................................................... 54
ESC a n ............................................................................................................................................ 55
GS $ nL nH ....................................................................................................................................... 56
GS L nL nH ....................................................................................................................................... 57
GS W nL nH ..................................................................................................................................... 59
GS \ nL nH ........................................................................................................................................ 61
Commands related to bit images ................................................................................................. 62
ESC * m nL nH d1 ~ dk .................................................................................................................... 62
FS p n m ........................................................................................................................................... 65
FS q n [xL xH yL yH d1 ~ dk] 1 ~ [xL xH yL yH d1 ~ dk] n ...................................................... 67
GS * x y [data] x × y × 8 ................................................................................................................... 69
GS / m .............................................................................................................................................. 70
GS v 0 m xL xH yL yH d1 ~ dk........................................................................................................... 71
Commands related to macro functions ....................................................................................... 73
GS : .................................................................................................................................................. 73
GS ^ r t m .......................................................................................................................................... 74
Commands related to bar code ................................................................................................... 75
GS H n ............................................................................................................................................. 75
GS f n ............................................................................................................................................... 76
GS h n .............................................................................................................................................. 76
GS k m d1 ~ dk NULL ...................................................................................................................... 77
GS k m n d1 ~ dn .............................................................................................................................. 79
GS w n ............................................................................................................................................. 81
Commands related to new line quantities ................................................................................... 82
ESC 2 ............................................................................................................................................... 82
ESC 3 n ............................................................................................................................................ 83
Commands related to mechanical control ................................................................................... 84
GS V m ............................................................................................................................................. 84
GS V m n .......................................................................................................................................... 85
ESC i ............................................................................................................................................... 86
ESC m .............................................................................................................................................. 86
Command related to paper detectors ......................................................................................... 87
ESC c 3 n ......................................................................................................................................... 87
ESC c 4 n ......................................................................................................................................... 88
Commands related to the status ................................................................................................. 89
DLE EOT n ....................................................................................................................................... 89
GS a n .............................................................................................................................................. 94
GS r n ............................................................................................................................................... 99
ESC u n .......................................................................................................................................... 101
ESC v ............................................................................................................................................ 102
Command related to the panel switches ................................................................................... 103
ESC c 5 n ...................................................................................................................................... 103
Commands related to auxiliary functions .................................................................................. 104
DLE ENQ n ................................................................................................................................... 104
ESC @ ........................................................................................................................................... 105
ESC L ............................................................................................................................................ 106
ESC S ............................................................................................................................................ 107
ESC p m t1 t2 ................................................................................................................................. 108
GS I n ............................................................................................................................................. 110
GS P x y ........................................................................................................................................ 112
DLE DC4 n m t .......................................................................................................................... 114
DLE DC4 0x02 a b ...................................................................................................................... 115
DLE DC4 08H d1…..d7 ................................................................................................................ 116
Commands related to extension functions ............................................................................... 117
GS ( A pL pH n m ................................................................................................................ 117
GS ( D pL pH m [ a1 b1 ]…[ ak bk ] ................................................................................. 118
GS ( E pL pH fn [ parameter ] ............................................................................................... 119
<Function 1> GS ( E pL pH fn d1 d2 ................................................................................ 120
<Function 2> GS ( E pL pH fn d1 d2 d3.......................................................................... 120
<Function 3> GS ( E pL pH fn [ a1 b18 .. b11 ]..[ ak bk8…bk1] ........................................ 121
<Function 4> GS ( E pL pH fn a .......................................................................................... 123
<Function 5> GS ( E pL pH fn [ a1 n1L n1H ]..[ ak nkL nkH ] ...................................... 124
<Function 6> GS ( E pL pH fn a ......................................................................................... 126
<Function 7> GS ( E pL pH fn a d1 d2 ............................................................................ 129
<Function 8> GS ( E pL pH fn y c1 c2 [ x d1 … d(y × x) ]k ............................................ 130
<Function 9> GS ( E pL pH fn x c1 c2 [ y d1… d(x × y) ]k ............................................... 131
<Function 10> GS ( E pL pH fn c1 c2 ............................................................................... 132
<Function 11> GS ( E pL pH fn a d1…d k .......................................................................... 133
<Function 12> GS ( E pL pH fn a ....................................................................................... 134
GS ( H pL pH fn m ............................................................................................................... 135
<Function 48> GS ( H pL pH fn m d1 d2 d3 d4 ................................................................... 136
<Function 49> GS ( H pL pH fn m d ................................................................................... 137
GS ( K pL pH fn m ............................................................................................................... 137
GS ( L pL pH m fn [ parameter ] ......................................................................................... 138
GS 8 L p1 p2 p3 p4 m fn [ parameter ] ............................................................................ 138
<Function 48> GS ( L pL pH m f n .................................................................................... 139
<Function 50> GS ( L pL pH m f n .................................................................................... 139
<Function 51> GS ( L pL pH m fn ...................................................................................... 139
<Function 64> GS ( L pL pH m fn d1 d2 ......................................................................... 140
<Function 65> GS ( L pL pH m fn d1 d2 d3 .................................................................. 141
<Function 66> GS ( L pL pH m fn kc1 kc2 ...................................................................... 141
<Function 67> GS ( L pL pH m fn a kc1 kc2 b xL xH yL yH [ c d1…dk ]1… [ c d1…dk ]b 142
<Function 69> GS ( L pL pH m fn kc1 kc2 x y ............................................................. 143
<Function 112> GS ( L pL pH m fn a bx by c xL xH yL yH d1…dk .................................... 144
GS ( M pL pH fn n................................................................................................................ 145
<Function 1> GS ( M pL pH f n m ...................................................................................... 146
<Function 2> GS ( M pL pH fn m ...................................................................................... 146
<Function 3> GS ( M pL pH fn m ....................................................................................... 146
GS ( N pL pH fn [ parameter ] .............................................................................................. 146
<Function 48> GS ( N pL pH fn m .................................................................................... 147
GS T n ........................................................................................................................................ 147
The two-dimensional barcode .............................................................................................................. 148
GS ( k pL pH cn fn [parameter] ................................................................................................. 148
<Function 165> GS ( k pL pH cn fn n1 n2 ................................................................................. 149
<Function 167> GS ( k pL pH cn fn n ........................................................................................ 149
<Function 169> GS ( k pL pH cn fn n ......................................................................................... 150
<Function 180> GS ( k pL pH cn, fn, m, d1………dk ................................................................... 150
<Function 181> GS ( k pL pH cn fn m ........................................................................................ 151
<Function 182> GS ( k pL pH cn fn m ........................................................................................ 151
Initial Operations ................................................................................................................................... 152
Transmission Status Identification ...................................................................................................... 154
Effective invalidity of the ornamentation ............................................................................................. 155
Development position with the page mode ......................................................................................... 156
TH180 Programmer’s Guide
1
Control Code List
Commands related to printing instructions
No.
Control code Designation
1
LF Print and line feed
2
FF
Print
and
return
to
mode
(in page mode)
3
CR Print and carriage return
4
ESC FF Print data in page mode
5
ESC J n Print and feed paper
6
ESC d n Print and feed n lines
Commands related to printing characters
No.
Control code Designation
1
CAN Cancel print data in page mode
2
ESC SP n Set right-side character spacing
3
ESC ! n Select print mode(s)
4
ESC % n Select/cancel user-defined character set
5
ESC & y c1 c2 Define user-defined characters
6
ESC – n Turn underline mode on/off
7
ESC ? n Turn emphasized mode on/off
8
ESC E n Turn double-strike mode on/off
9
ESC G n Turn double-strike mode on/off
10
ESC M n Select character fonts
11
ESC R n Select international character set
12
ESC V n Turn 90°clockwise rotation mode on/off
13
ESC t n Select character code table
14
ESC { n Turn upside-down printing mode on/off
15
GS ! n Set character size
16
GS B n Turn white/black reverse printing mode on/off
17
GS b n Select/cancel smoothing
TH180 Programmer’s Guide
2
Commands related to the print position
No. Control code Designation
1 HT Horizontal tab
2 ESC $ nL nH Set absolute print position
3 ESC D Set horizontal tab positions
4 ESC T n Select print direction in page mode
5 ESC W xL xH Set printing area in page mode
6 ESC \ nL nH Set relative print position
7 ESC a n Select justification
8 GS $ nL nH
Set
absolute
position
for
character
direction
in
page mode
9 GS L nL nH Set left margin
10 GS W nL nH Set printing area width
11
GS
\
nL
nH
Set
relative
position
for
character
direction
in
page mode
Commands related to bit images
No. Control code Designation
1 ESC * m nL nH Select bit-image mode
2 FS p n m Print in NV bit mode image
3 FS q n Define NV bit image mode
4 GS * x y Define user-defined bit image
5 GS / m Print user-defined bit image
6 GS v 0 m xL xH Print a raster bit image
Commands related to macro functions
No. Control code Designation
1 GS : Start/end macro definition
2 GS ^ r t m Execute macro.
Commands related to bar code
Serial Control code Designation
1 GS H n
Select
printing
position
for
HRI
character
2 GS f n Select character font for HRI characters
3 GS h n Select bar code height
4 GS k m Print bar code (No. 1)
5 GS k m n Print bar code (No. 2)
6 GS w n Select bar code width
TH180 Programmer’s Guide
3
Commands related to new line quantities
No. Control code Designation
1 ESC 2 Select 1/6-inch line spacing
2 ESC 3 n Set line spacing
Commands related to mechanical control
No. Control code Designation
1 GS V m Cut paper (No. 1)
2 GS V m n Cut paper (No. 2)
3 ESC i Full cut
4 ESC m Partial cut
Command related to paper detectors
No. Control code Designation
1 ESC c 3 n
Select paper sensor(s) to output paper out signals
2 ESC c 4 n Select paper sensor(s) to stop printing
Commands related to the status
No. Control code Designation
1 DLE EOT n Real-time status transmission
2 GS a n Enable/disable automatic status back (ASB)
3 GS r n Transmit status
4 ESC u n Transmit peripheral device status
5 ESC v Transmit paper detector status
Command related to the panel switches
No. Control code Designation
1 ESC c 5 n Enable/disable panel buttons
TH180 Programmer’s Guide
4
Commands related to auxiliary functions
No. Control code Designation
1 DLE ENQ n Real-time request to printer
3 ESC @ Initialize printer
4 ESC L Select page mode
5 ESC S Select standard mode
6 ESC p m t1 t2 Generate pulse
7 GS I n Transmit printer ID
8 GS P x y Set horizontal and vertical motion units
11 DLE DC4 1 m t Real time generate pulse
12 DLE DC4 2 a b Power off processing execution
13 DLE DC4 8 d1…d7 Buffer clear
Commands related to extension functions
No. Control code Designation
1 GS ( A pL pH n m
Execute test print
2 GS ( C pL pH fn b Edit user NV memory
3 GS ( D pL pH m
Valid / invalid real-time command
4 GS (E pL pH fn
User setting command group
5 GS (H pL pH fn m
Request of response sending.
6 GS ( K pL pH fn m Printing control method selection
7 GS ( L pL pH m fn
Graphics data designation
8 GS 8 L p1 p2 p3 p4
Graphics data designation
9 GS ( M pL pH fn m Customize the printer
10 GS ( N pL pH fn m
Designates character decoration
11 GS T n
Moves printing position to the beginning of the line
Commands related to the two-dimensional barcode
No. Control code Designation
1 GS ( k pL pH cn fn
Print the two-dimensional barcode
TH180 Programmer’s Guide
5
Code Tables
Page 0 (PC437)
TH180 Programmer’s Guide
6
Page 1 (Katakana)
TH180 Programmer’s Guide
7
Page 2 (PC850)
TH180 Programmer’s Guide
8
Page 3 (PC860)
TH180 Programmer’s Guide
9
Page 4 (PC863)
TH180 Programmer’s Guide
10
Page 5 (PC865)
TH180 Programmer’s Guide
11
Page 16 (WPC1252)
TH180 Programmer’s Guide
12
Page 17 (PC866)
TH180 Programmer’s Guide
13
Page 18 (PC852)
TH180 Programmer’s Guide
14
Page 19 (PC858)
TH180 Programmer’s Guide
15
Page 254 (MIK)
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162

Wincor Nixdorf TH180 Programmer's Guide

Category
Print & Scan
Type
Programmer's Guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI