Wincor Nixdorf TH200 User manual

Category
Print & Scan
Type
User manual
TH200
High Speed Thermal Printer
Programmer’s Guide
TH200
March 2005
Programmer’s Guide TH200
2
1. Commands Summary Table................................................................................................................ 5
2. Description of Commands and Sequences....................................................................................... 8
HT.............................................................................................................................................................. 9
LF............................................................................................................................................................... 9
FF.............................................................................................................................................................. 9
CR........................................................................................................................................................... 10
CAN......................................................................................................................................................... 10
DLE EOT n............................................................................................................................................. 10
DLE ENQ n ............................................................................................................................................ 13
DLE DC4 n m t...................................................................................................................................... 14
ESC FF................................................................................................................................................... 14
ESC SP n ............................................................................................................................................... 15
ESC ! n ................................................................................................................................................... 16
ESC $ nL nH.......................................................................................................................................... 17
ESC % n................................................................................................................................................. 17
ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)]...................................................................... 18
ESC * m nL nH d1... dk........................................................................................................................ 20
ESC – n .................................................................................................................................................. 22
ESC 2...................................................................................................................................................... 22
ESC 3 n .................................................................................................................................................. 23
ESC = n.................................................................................................................................................. 23
ESC ? n .................................................................................................................................................. 24
ESC @.................................................................................................................................................... 24
ESC D n1...nk NUL............................................................................................................................... 25
ESC E n.................................................................................................................................................. 25
ESC G n ................................................................................................................................................. 26
ESC J n................................................................................................................................................... 26
ESC L...................................................................................................................................................... 27
ESC M n................................................................................................................................................. 27
ESC R n.................................................................................................................................................. 28
ESC S..................................................................................................................................................... 28
ESC T n .................................................................................................................................................. 29
ESC V n.................................................................................................................................................. 30
ESC W xL xH yL yH dxL dxH dyL dyH............................................................................................... 30
ESC \ nL nH........................................................................................................................................... 31
ESC a n .................................................................................................................................................. 32
ESC c 3 n ............................................................................................................................................... 33
ESC c 4 n ............................................................................................................................................... 33
ESC c 5 n ............................................................................................................................................... 34
ESC d n .................................................................................................................................................. 34
ESC p m t1 t2 ........................................................................................................................................ 35
ESC t n ................................................................................................................................................... 36
ESC { n................................................................................................................................................... 37
Programmer’s Guide TH200
3
FS g 1 m a1 a2 a3 a4 nL nH d1...dk.................................................................................................. 38
FS g 2 m a1 a2 a3 a4 nL nH ............................................................................................................... 39
FS p n m................................................................................................................................................. 40
FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n.................................................................... 41
GS FF ..................................................................................................................................................... 43
GS ! n...................................................................................................................................................... 43
GS $ nL nH............................................................................................................................................. 45
GS ( A pL pH n m .................................................................................................................................. 46
GS * x y d1...d(x × y × 8)...................................................................................................................... 47
GS / m..................................................................................................................................................... 48
GS :......................................................................................................................................................... 48
GS B n .................................................................................................................................................... 49
GS H n.................................................................................................................................................... 49
GS I n...................................................................................................................................................... 50
GS L nL nH............................................................................................................................................. 51
GS P x y.................................................................................................................................................. 52
â‘ GS V m â‘¡GS V m n........................................................................................................................ 53
GS W nL nH........................................................................................................................................... 54
GS \ nL nH.............................................................................................................................................. 55
GS ^ r t m ............................................................................................................................................... 56
GS a n..................................................................................................................................................... 57
GS f n...................................................................................................................................................... 59
GS h n..................................................................................................................................................... 59
â‘ GS k m d1...dk NUL â‘¡GS k m n d1...dn.................................................................................... 60
GS r n...................................................................................................................................................... 63
GS v 0 m xL xH yL yH d1....dk............................................................................................................ 64
GS w n.................................................................................................................................................... 65
FS ! n....................................................................................................................................................... 66
FS &........................................................................................................................................................ 67
FS – n ..................................................................................................................................................... 67
FS ........................................................................................................................................................... 68
FS 2 c1 c2 d1...dk................................................................................................................................. 68
FS C n..................................................................................................................................................... 69
FS S n1 n2............................................................................................................................................. 70
FS W n.................................................................................................................................................... 71
3. Character Code Tables ...................................................................................................................... 72
3.1 Page 0 (PC437: USA).................................................................................................................... 72
3.2 PAGE1 (Katakana)......................................................................................................................... 73
3.3 Page 2 (PC850: Multilingual)........................................................................................................ 74
3.4 Page 3 (PC860: Portuguese) ....................................................................................................... 75
3.5 Page 4 (PC863: Canadian-French)............................................................................................. 76
3.6 Page 5 (PC865: Nordic)................................................................................................................ 77
3.7 Page 18 (PC852 Latin2)................................................................................................................ 78
3.8 Page 19 (PC858)............................................................................................................................ 79
Programmer’s Guide TH200
4
3.9 Page 16 (WPC1252)...................................................................................................................... 80
3.10 Page 17 (PC866: Cyrillic #2)...................................................................................................... 81
3.11 Thai character code 11 ................................................................................................................ 82
3.12 International Character Set......................................................................................................... 83
4. Appendix.......................................................................................................................................... 84
Appendix A Printable Area & Cutting Positions.......................................................................... 84
Appendix B FEED button menu.................................................................................................. 85
Appendix C Hexadecimal Dump mode....................................................................................... 90
Appendix D Page Mode.............................................................................................................. 91
Appendix E Miscellaneous Notes............................................................................................... 95
Appendix F
Marked Paper Specification.................................................................................... 96
Appendix G Transmission Status Identification........................................................................... 97
Appendix H EEPROM Setting Table........................................................................................... 98
Appendix I Example printing in page mode............................................................................. 100
Appendix J
Code 128 bar code................................................................................................ 103
Programmer’s Guide TH200
5
1. Commands Summary Table
Command Name
Parameter
Setting
Std
Mode
Page
Mode
GS P
function
Page
HT Horizontal tab
☆ ☆
9
LF Print and line feed
☆ ☆
9
FF Print and return to standard mode (in page mode) %
☆
9
CR Print and carriage return
☆ ☆
10
CAN Cancel print data in page mode %
☆
10
DLE EOT Real-time status transmission
☆ ☆
10
DLE ENQ Real-time request to printer
☆ ☆
13
DLE DC4 Generate pulse at real-time
☆ ☆
14
ESC FF Print data in page mode %
☆
14
ESC SP Set right-side character spacing
☆ ☆ ☆ ☆
15
ESC ! Select print mode(s)
☆ ☆ ☆
16
ESC $ Set absolute print position
☆ ☆ ☆
17
ESC % Select/cancel user-defined character set
☆ ☆ ☆
17
ESC & Define user-defined characters
☆ ☆ ☆
18
ESC * Select bit-image mode
☆ ☆
20
ESC – n Turn underline mode on/off
☆ ☆ ☆
22
ESC 2 Select default line spacing
☆ ☆ ☆
22
ESC 3 Set line spacing
☆ ☆ ☆ ☆
23
ESC = Select peripheral device
☆ ☆ ☆
23
ESC ? Cancel user-defined characters
☆ ☆ ☆
24
ESC @ Initialize printer
☆ ☆ ☆
24
ESC D Set horizontal tab positions
☆ ☆ ☆
25
ESC E Turn emphasized mode on/off
☆ ☆ ☆
25
ESC G Turn double-strike mode on/off
☆ ☆ ☆
26
ESC J Print and feed paper
☆ ☆ ☆
26
ESC L Select page mode
(☆)
% 27
ESC M Select character font
☆ ☆
27
ESC R Select an international character set
☆ ☆ ☆
28
ESC S Select standard mode %
☆
28
ESC T Select print direction in page mode
☆ ◆ ☆
29
ESC V Turn 90° clockwise rotation mode on/off
☆ ☆ ◆
30
ESC W Set printing area in page mode
☆ ◆
☆
30
ESC \ Set relative print position
☆ ☆ ☆
31
ESC a Select justification
☆ (☆) ◆
32
ESC c 3 Select paper sensor(s) to output paper-end signals
☆ ☆ ☆
33
Programmer’s Guide TH200
6
Command Name
Parameter
Setting
Std
Mode
Page
Mode
GS P
function
Page
ESC c 4 Select paper sensor(s) to stop printing
☆ ☆ ☆
33
ESC c 5 Enable/disable panel button
☆ ☆ ☆
34
ESC d Print and feed n lines
☆
Disabled 34
ESC p General pulse
☆ ☆
35
ESC t Select character code table
☆ ☆ ☆
36
ESC { Turn upside-down printing mode on/off
☆ (☆) ◆
37
FS g 1 Write to NV user memory
☆ ☆
Disabled 38
FS g 2 Read from NV user memory
☆ ☆
39
FS p Print NV bit image
☆
Disabled 40
FS q Define NV bit image
☆ (☆)
Disabled 41
GS FF Feed next mark to the printing position
☆ ☆
43
GS ! Select character size
☆ ☆ ☆
43
GS $ Set absolute vertical print position in page mode %
☆ ☆
45
GS ( A Execute test print
☆
Disabled 46
GS * Define downloaded bit image
☆ ☆ ☆
47
GS / Print downloaded bit image
★ ☆
48
GS : Start/end macro definition
☆ ☆ ☆
48
GS B Turn white/black reverse printing mode on/off
☆ ☆ ☆
49
GS H Select printing position of HRI characters
☆ ☆ ☆
49
GS I Transmit printer ID
☆ ☆
50
GS L Set left margin
☆ (☆) ◆ ☆
51
GS P Set horizontal and vertical motion units
☆ ☆ ☆
52
GS V Select cut mode and cut paper
(☆) ☆ ☆
53
GS W Set printing area width
☆ (☆) ◆ ☆
54
GS \ Set relative vertical print position in page mode %
☆ ☆
55
GS ^ Execute macro
☆ ☆
56
GS a Enable/disable Automatic Status Back (ASB)
☆ ☆ ☆
57
GS f Select font for HRI characters
☆ ☆ ☆
59
GS h Set bar code height
☆ ☆ ☆
59
GS k Print bar code
◆ ☆
60
GS r Transmit status
☆ ☆
63
GS v 0 Print raster bit image
â—†
Disabled 64
GS w Set bar code width
☆ ☆ ☆
65
Programmer’s Guide TH200
7
Kanji command list
(for Asia language models)
Command
Type
Command Name
Executin
g
Setting
Standard
mode
Page
mode
GS P
function
Page
FS ! Set print mode(s) for Kanji characters
☆ ☆ ☆
66
FS & Select Kanji character mode
☆ ☆ ☆
67
FS - Turn underline mode on/off for Kanji characters
☆ ☆ ☆
67
FS . Cancel Kanji character mode
☆ ☆ ☆
68
FS 2 Define user-defined Kanji characters
☆ ☆ ☆
68
FS C Select Kanji character code system
☆ ☆ ☆
69
FS S Set Kanji character spacing
☆ ☆ ☆ ☆
70
FS W Turn quadruple-size mode on/off for Kanji characters
☆ ☆ ☆
71
Notes:
Parameter Setting: Set printer parameters.
☆ Enabled only when the command is set at the beginning of a line.
★ Enabled only when data is not present in the printer buffer.
% Ignored. No effect.
â—Š Only value setting is possible.
Disabled: Parameters are processed as printable data.
Programmer’s Guide TH200
8
2. Description of Commands and Sequences
Format
Code: The code sequence.
ASCII : code
Hex : hexadecimal equivalents.
Decimal : decimal equivalents.
[ ]k indicates contents of [ ] repeated k times.
Range: Allowable ranges for the arguments.
Description: Describes the command’s function.
Details: Describes the usage of the command in detail.
Notes: Additional information on setting and using the printer command.
Default: Default parameter values, if any.
Reference: Lists related commands.
Example: Illustrations on command usage.
Programmer’s Guide TH200
9
HT Horizontal tab
Code:
Description:
Notes:
Reference:
ASCII HT
Hex 09
Decimal 09
Moves the print position to the next horizontal tab position.
 This command is ignored unless the next horizontal tab position has been set.
 If the next horizontal tab position exceeds the printing area, the printer sets the printing
position to [Printing area width + 1].
 Horizontal tab positions are set with ESC D.
 If this command is received when the printing position is at [printing area width + 1], the
printer executes print buffer-full printing of the current line and horizontal tab processing
from the beginning of the next line.
 The default setting of the horizontal tab position for the paper roll is font A (12×24) every
8th character.
ESC D
LF
Print and line feed
Code:
Description:
Notes:
Reference:
ASCII LF
Hex 0A
Decimal 10
Prints the data in the print buffer and feeds one line based on the current line spacing.
 This command sets the print position to the beginning of the line.
ESC 2, ESC 3
FF
Print and return to standard mode in page mode
Code:
Description:
Notes:
Reference:
ASCII FF
Hex 0C
Decimal 12
Prints the data in the print buffer collectively and returns to standard mode in page mode,
prints the data in the print buffer and feeds one line based on the current line spacing in
standard mode.
 This command is valid only in page mode.
 The buffer data is deleted after being printed.
 The printer does not execute paper cutting.
 This command sets the print position to the beginning of the line.
ESC FF, ESC L, ESC S
Programmer’s Guide TH200
10
CR Print and carriage return
Code:
Description:
Notes:
Reference:
ASCII CR
Hex 0D
Decimal 13
When automatic line feed is enabled, this command functions the same as LF; when
automatic line feed is disabled, this command is ignored.
 Sets the print starting position to the beginning of the line.
 This command is set according to the printer configuration.
LF
CAN Cancel print data in page mode
Code:
Description:
Notes:
Reference:
ASCII CAN
Hex 18
Decimal 24
In page mode, deletes all the print data in the current area.
 This command is enabled only in page mode.
 If data that existed in the previously specified printing area also exists in the currently
specified printing area, it is deleted.
ESC L, ESC W
DLE EOT n Real-time status transmission
Code:
Range:
Description:
Notes:
ASCII DLE EOT n
Hex 10 04 n
Decimal 16 4 n
1 ≤ n ≤ 4
Transmits the selected printer status specified by n in real-time, according to the following
parameters:
n = 1: Transmit printer status
n = 2: Transmit off-line status
n = 3: Transmit error status
n = 4: Transmit paper roll sensor status
 The status is transmitted whenever the data sequence of <10>H<04>H< n> (1 ≤ n ≤ 4)
is received.
Example:
In ESC * m nL nH d1...dk, d1=<10>H, d2=<04>H, d3=<01>H
 This command should not be used within the data sequence of another command that
consists of 2 or more bytes.
Example:
If you attempt to transmit ESC 3 n to the printer, but DTR (DSR for the
Programmer’s Guide TH200
11
host computer) goes to MARK before n is transmitted and then DLE
EOT 3 interrupts before n is received, the code <10>H for DLE EOT 3
is processed as the code for ESC 3 <10>H.
 Even though the printer is not selected using ESC = (select peripheral device), this
command is effective.
 The printer transmits the current status. Each status is represented by one-byte data.
 The printer transmits the status without confirming whether the host computer can
receive data.
 The printer executes this command upon receiving it.
 This command is executed even when the printer is off-line, the receive buffer is full, or
there is an error status with a serial interface model.
 With a parallel interface model, this command is ignored.
 When Auto Status Back (ASB) is enabled using the GS a command, the status
transmitted by the DLE EOT command and the ASB status must be differentiated..
n = 1: Printer status
Bit Off/On Hex Decimal Function
0 Off 00 0 Not used. Fixed to Off
1 On 02 2 Not used. Fixed to On
Off 00 0 Drawer open/close signal is LOW (connector 2
On 04 4 Drawer open/close signal is HIGH (connector
Off 00 0 On-line. 3
On 08 8 Off-line
4 On 10 16 Not used. Fixed to On
5,6 Undefined
7 Off 00 00 Not used. Fixed to Off.
n = 2: Off-line status
Bit Off/On Hex Decimal Function
0 Off 00 0 Not used. Fixed to Off
1 On 02 2 Not used. Fixed to On
Off 00 0 Cover is closed. 2
On 04 4 Cover is open
Off 00 0 Paper is not being fed by using the 3
On 08 8 Paper is being fed by the FEED button
4 On 10 16 Not used. Fixed to On
Off 00 0 No paper-end stop. 5
On 20 32 Printing is being stopped.
Off 00 0 No error. 6
On 40 64 Error occurs
7 Off 00 0 Not used. Fixed to Off
Bit 5: Becomes on when the paper end sensor detects paper end and printing
stops.
Programmer’s Guide TH200
12
Reference:
n = 3: Error status
Bit Off/On Hex Decimal Function
0 Off 00 0 Not used. Fixed to Off
1 On 02 2 Not used. Fixed to On
2 Undefined
Off 00 0 No auto-cutter error 3
On 08 8 Auto-cutter error occurs.
4 On 10 16 Not used. Fixed to On
Off 00 0 No unrecoverable error 5
On 20 32 Unrecoverable error occurs
Off 00 0 No auto-recoverable error. 6
On 40 64 Auto recoverable error occurs
7 Off 00 0 Not used. Fixed to Off
Bit 3: If these errors occur due to paper jams or the like, it is possible to recover by
correcting the cause of the error and executing DLE ENQ n (1 ≤ n ≤ 2). If an error
due to a circuit failure (e.g. wire break) occurs, it is impossible to recover.
Bit 6: When printing is stopped due to high print head temperature until the print head
temperature drops sufficiently or when the paper roll cover is open during printing,
bit 6 is On.
n = 4: Continuous paper sensor status
Bit Off/On Hex Decimal
Function
0 Off 00 0 Not used. Fixed to Off
1 On 02 2 Not used. Fixed to On
Off 00 0 Paper roll near-end sensor: paper 2,3
On 0C 12 Paper near-end is detected by the paper
4 On 10 16 Not used. Fixed to On.
Off 00 0 Paper roll sensor: Paper present 5,6
On 60 96 Paper roll end detected by paper roll
7 Off 00 0 Not used. Fixed to Off
DLE ENQ, GS a, GS r
Programmer’s Guide TH200
13
DLE ENQ n Real-time request to printer
Code:
Range:
Description:
Notes:
Reference:
ASCII DLE ENQ n
Hex 10 05 n
Decimal 16 5 n
1 ≤n ≤ 2
Responds to a request from the host computer. n specifies the requests as follows:
n Request
1 Recover from an error and restart printing from the line where the error occurred
2 Recover from an error after clearing the receive and print buffers
 This command is effective only when an auto-cutter error occurs.
 The printer starts processing data upon receiving this command.
 This command is executed even when the printer is off-line, the receive buffer is full, or
there is an error status with a serial interface model.
 With a parallel interface model, this command can not be executed when the printer is
busy.
 The status is also transmitted whenever the data sequence of <10>H<05>H<n> (1 ≤ n ≤
2) is received.
Example:
In ESC * m nL nH dk, d1 = <10>H, d2 = <05>H, d3 = <01>H
 This command should not be contained within another command that consists of two or
more bytes.
Example:
If you attempt to transmit ESC 3 n to the printer, but DTR (DSR for the host
computer) goes to MARK before n is transmitted, and DLE ENQ 2 interrupts
before n is received, the code <10>H for DLE ENQ 2 is processed as the code for
ESC 3 <10>H.
 DLE ENQ 2 enables the printer to recover from an error after clearing the data in the
receive buffer and the print buffer. The printer retains the settings (by ESC !, ESC 3,
etc.) that were in effect when the error occurred. The printer can be initialized
completely by using this command and ESC @. This command is enabled only for
errors that have the possibility of recovery, except for print head temperature error.
 When the printer is disabled with ESC = (Select peripheral device), the error recovery
functions (DLE ENQ 1 and DLE ENQ 2) are enabled, and the other functions are
disabled.
DLE EOT
Programmer’s Guide TH200
14
DLE DC4 n m t Generate pulse at real-time
Code:
Range:
Description:
Notes:
Reference:
ASCII DLE DC4 n m t
Hex 10 14 n m t
Decimal 16 20 n m t
n = 1
m = 0, 1
1 ≤ t≤ 6
Outputs the pulse specified by t to connector pin m as follows:
m Connector pin
0 Drawer kick-out connector pin 2
1 Drawer kick-out connector pin 5
The pulse ON time is [t × 100 ms] and the OFF time is [t × 100ms].
 When the pulse is output to the connector pin specified while ESC p or DEL DC4 is
executed while this command is processed, this command is ignored.
 The printer executes this command upon receiving it.
 With a serial interface model, this command is executed even when the printer is
off-line, the receive buffer is full, or there is an error status.
 With a parallel interface model, this command cannot be executed when the printer is
busy.
 If print data includes the same character strings as this command, the printer performs
the same operation specified by this command. The user must consider this.
 This command should not be used within the data sequence of another command that
consists of 2 or more bytes.
 This command is effective even when the printer is disabled with ESC = (Select
peripheral device).
ESC p
ESC FF
Print data in page mode
Code:
Description:
Notes:
Reference:
ASCII ESC FF
Hex 1B 0C
Decimal 27 12
In page mode, prints all buffered data in the printing area collectively.
 This command is enabled only in page mode.
 After printing, the printer does not clear the buffered data, setting values for ESC T and
ESC W, and the position for buffering character data.
FF, ESC L, ESC S
Programmer’s Guide TH200
15
ESC SP n Set right-side character spacing
Code:
Range:
Description:
Notes:
Default:
Reference:
ASCII ESC SP n
Hex 1B 20 n
Decimal 27 32 n
0 ≤ n ≤ 255
Sets the character spacing for the right side of the character to [n × horizontal or vertical
motion units].
 The right-side character spacing for double-width mode is twice the normal value. When
characters are enlarged, the right-side character spacing is n times normal value.
 This command sets values independently in each mode (standard and page modes).
 The horizontal and vertical motion units are specified by GS P. Changing the horizontal
or vertical motion unit does not affect the current right-side spacing.
 In standard mode, the horizontal motion unit is used.
 In page mode, the horizontal or vertical motion unit differs in page mode, depending on
starting position of the printable area as follows:
1 When the starting position is set to the upper left or lower right of the printable
area using ESC T, the horizontal motion unit (x) is used.
2 When the starting position is set to the upper right or lower left of the printable
area using ESC T, the vertical motion unit (y) is used.
 The maximum right-side spacing is 255/180 inches. Any setting exceeding the
maximum is converted to the maximum automatically.
n = 0
GS P
Programmer’s Guide TH200
16
ESC ! n Select print mode(s)
Code:
Range:
Description:
Notes:
Default:
Reference:
ASCII ESC ! n
Hex 1B 21 n
Decimal 27 33 n
0 ≤ n ≤ 255
Selects print mode(s) using n as follows:
Bit Off/On Hex Decimal Function
Off 00 0 Character font A (12 × 24) 0
On 01 1 Character font B (9 × 17)
1,2 Undefined.
Off 00 0 Emphasized mode not selected 3
On 08 8 Emphasized mode selected
Off 00 0 Double-height mode not selected 4
On 10 16 Double-height mode selected
Off 00 0 Double-width mode not selected 5
On 20 32 Double-width mode selected
6 Undefined
Off 00 0 Underline mode not selected 7
On 80 128 Underline mode selected
 When both double-height and double-width modes are selected, quadruple size
 Characters are printed.
 The printer can underline all characters, but can not underline the space set by HT or
90° clockwise rotated characters.
 The thickness of the underline is that selected by ESC -, regardless of the character
size.
 When some characters in a line are double or more in height, all the characters on the
line are aligned at the baseline.
 ESC E can also turn on or off emphasized mode. However, the setting of the last
received command is effective.
 ESC - can also turn on or off underline mode. However, the setting of the last received
command is effective.
 GS ! can also select character size. However, the setting of the last received command
is effective.
n = 0
ESC -, ESC E, GS !
Programmer’s Guide TH200
17
ESC $ nL nH Set absolute print position
Code:
Range:
Description:
Notes:
Reference:
ASCII ESC $ nL nH
Hex 1B 24 nL nH
Decimal 27 36 nL nH
0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
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.
 Settings outside the specified printable area are ignored.
 The horizontal and vertical motion units are specified by GS P.
 In standard mode, the horizontal motion unit (x) is used.
 In page mode, horizontal or vertical motion unit differs depending on the starting
position of the printable area as follows:
1.When the starting position is set to the upper left or lower right of the printable
area using ESC T, the horizontal motion unit (x) is used.
2.When the starting position is set to the upper right or lower left of the printable
area using ESC T, the vertical motion unit (y) is used.
ESC \, GS $, GS \, GS P
ESC % n Select/cancel user-defined character set
Code:
Range:
Description:
Notes:
Default:
Reference:
ASCII ESC % n
Hex 1B 25 n
Decimal 27 37 n
0 ≤ n ≤255
Selects or cancels the user-defined character set.
 When the LSB of n is 0, the user-defined character set is canceled.
 When the LSB of n is 1, the user-defined character set is selected.
 When the user-defined character set is canceled, the internal character set is
automatically selected.
 n is available only for the least significant bit.
n = 0
ESC &, ESC ?
Programmer’s Guide TH200
18
ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] Define user-defined characters
Code:
Range:
Description:
Notes:
Default:
Reference:
Example:
ASCII ESC & y c1 c2 [x1 d1...d(y × x1)] ... [xk d1...d(y × xk)]
Hex 1B 26 y c1 c2 [x1 d1...d(y × x1)] ... [xk d1...d(y × xk)]
Decimal 27 38 y c1 c2 [x1 d1...d(y × x1)] ... [xk d1...d(y × xk)]
y = 3
32 ≤ c1 ≤ c2 ≤ 127
0< x ≤ 24
0 ≤ d1 ... d(y × xk) ≤ 255
Defines user-defined characters.
 y specifies the number of bytes in the vertical direction.
 c1 specifies the beginning character code for the definition, and c2 specifies the final
code.
 x specifies the number of dots in the horizontal direction.
 The allowable character code range is from ASCII code <20>H to <7F>H (96
characters).
 It is possible to define multiple characters for consecutive character codes. If only one
character is desired, use c1 = c2.
 d is the dot data for the characters. The dot pattern is in the horizontal direction from the
left side. Any remaining dots on the right side are blank.
 The data to define a user-defined character is (y × x) bytes.
 Set a corresponding bit to 1 to print a dot or 0 to not print a dot.
 A user-defined character and a downloaded bit image can be defined simultaneously.
 The user-defined character definition is cleared when:
â‘ ESC ? is executed.
â‘¡The the power is turned off.
 When the user-defined characters are defined in font B (9 × 17), only the most
significant bit of the 3rd byte of data in vertical direction is effective.
The internal character set
ESC %, ESC ?
 When font A (12 × 24) is selected.
Programmer’s Guide TH200
19
· When font B (9×17) is selected.
Programmer’s Guide TH200
20
ESC * m nL nH d1... dk Select bit-image mode
Code:
Range:
Description:
Notes:
ASCII ESC * m nL nH d1...dk
Hex 1B 2A m nL nH d1...dk
Decimal 27 42 m nL nH d1...dk
m = 0, 1, 32, 33
0 ≤ nL ≤ 255
0 ≤ nH ≤ 3
0 ≤ d ≤ 255
Selects a bit-image mode using m for the number of dots specified by nL and nH, as
follows:
Vertical Direction Horizontal Direction
m Mode
Number of
Dots
Dot
Density
Dot
density
Number of Data
(K)
0 8-dot single-density 8 60 DPI 101 DPI nL + nH × 256
1 8-dot double-density 8 60 DPI 203 DPI nL + nH × 256
32 24-dot single-density 24 180 DPI 101 DPI (nL + nH × 256) ×
33 24-dot double-density 24 180 DP 203 DPI (nL + nH × 256) ×
 If the value of m is out of the specified range, nL and data following are processed as
normal data.
 The nL and nH indicate the number of dots of the bit image in the horizontal direction.
The number of dots is calculated by 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 a dot.
 After printing a bit image, the printer returns to normal data processing mode.
 This command is not affected by print modes (emphasized, double-strike, underline,
character size or white/black reverse printing), except upside-down printing mode.
 The relationship between the image data and the dots to be printed is as follows:
 When 8-dot bit image is selected:
  • 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

Wincor Nixdorf TH200 User manual

Category
Print & Scan
Type
User manual

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

Finding information in a document is now easier with AI