Telpar MTP7632 Programming Manual

PROGRAMMING MANUAL
KIOSK Printer
MTP7632
187 CROSBY ROAD
DOVER, NH 03820
800-872-4886 fax: 603-742-9938
www.telpar.com
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 2 -
Declaration
If you need this manual, please comply with the Clause as below. If you disagree with it, please return this manual immediately. This manual contains the private confidential information belonging to Telpar..
Telpar has the right to disclose its confidential information and does not be responsible for the loss or damages caused from the wrong usage or reference of this manual by users. Information in this document is subject to change without notice, which is only used for product maintenance or service relative to this manual. Telpar reserves the right to improve products as new technology, components, software, and firmware become available. If users need further data about the products, please feel free to contact Telpar. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose without the express written permission of Telpar.
Copyright
Copyright© 2006
Technical Contact Information
Address: 187 Crosby Road, Dover NH 03820 Hot line: 800-872-4886 Fax: 603-742-9938
Http: // www.telpar.com E-mail: info@telpar.com
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 3 -
Revision History
Date Version Remarks
2006-03-21
V1.0 Original edition
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 4 -
Content
1. General Information ............................................................................................................................. 1
1.1 Key Terms......................................................................................................................................... 1
1.2 Command Explanation ..................................................................................................................... 1
2. Kiosk Command Set ............................................................................................................................ 2
HT.........................................................................................................................................................2
LF .........................................................................................................................................................2
FF ......................................................................................................................................................... 2
CR ........................................................................................................................................................3
DLE EOT n...........................................................................................................................................3
CAN......................................................................................................................................................6
ESC FF.................................................................................................................................................6
ESC SP n .............................................................................................................................................6
ESC ! n.................................................................................................................................................7
ESC $ nL nH ........................................................................................................................................8
ESC % n...............................................................................................................................................9
ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)]..........................................................................9
ESC * m nL nH d1... dk ...................................................................................................................... 11
ESC - n...............................................................................................................................................13
ESC 2 ................................................................................................................................................. 14
ESC 3 n.............................................................................................................................................. 14
ESC = n..............................................................................................................................................14
ESC ? n.............................................................................................................................................. 15
ESC @ ...............................................................................................................................................15
ESC D n1...nk NUL ............................................................................................................................16
ESC E n..............................................................................................................................................16
ESC G n .............................................................................................................................................17
ESC J n ..............................................................................................................................................17
ESC L ................................................................................................................................................. 18
ESC M n............................................................................................................................................. 19
ESC R n .............................................................................................................................................19
ESC S.................................................................................................................................................20
ESC T n..............................................................................................................................................20
ESC V n............................................................................................................................................21
ESC W xL xH yL yH dxL dxH dyL dyH ..............................................................................................22
ESC \ nL nH .......................................................................................................................................23
ESC a n.............................................................................................................................................. 24
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 5 -
ESC c 0 n ...........................................................................................................................................24
ESC c 1 nL nH ...................................................................................................................................25
ESC c 3 n ...........................................................................................................................................25
ESC c 4 n ...........................................................................................................................................26
ESC c 5 n ...........................................................................................................................................26
ESC c 8 n ...........................................................................................................................................27
ESC c 9 t ............................................................................................................................................27
ESC c @ n .........................................................................................................................................28
ESC c I..........................................................................................................................................28
ESC d n.............................................................................................................................................. 28
ESC i ..................................................................................................................................................29
ESC l n X0l X0h Y0l Y0h X1l X1h Y1l Y1h ........................................................................................29
ESC t n ............................................................................................................................................... 30
ESC v .................................................................................................................................................30
ESC { n...............................................................................................................................................31
FS p n m.............................................................................................................................................31
FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n .....................................................................32
GS FF.................................................................................................................................................34
GS ! n .................................................................................................................................................34
GS # n ................................................................................................................................................36
GS $ nL nH ........................................................................................................................................36
GS ( A pL pH n m...............................................................................................................................37
GS ( E pL pH m [parameter] ..............................................................................................................37
GS ( E pL pH m d1 d2 (m = 1) <Function 1>.....................................................................................38
GS ( E pL pH m d1 d2 d3 (m = 2) <Function 2>................................................................................ 38
GS ( E pL pH m [a1 b18...b11]...[ak bk8...bk1] (m = 3) <Function 3> ...............................................38
GS ( E pL pH m a (m = 4) <Function 4> ............................................................................................39
GS * x y d1...d(x × y × 8)....................................................................................................................40
GS / m ................................................................................................................................................41
GS : ....................................................................................................................................................42
GS B n................................................................................................................................................42
GS C 0 n m.........................................................................................................................................43
GS C 1 aL aH bL bH n r..................................................................................................................... 43
GS C 2 nL nH.....................................................................................................................................44
GS C ; sa ; sb ; sn; sr; sc;  ..............................................................................................................45
GS H n................................................................................................................................................46
GS I n .................................................................................................................................................46
GS L nL nH ........................................................................................................................................47
GS P xL xH yL yH ..............................................................................................................................47
GS V m GS V m n...................................................................................................................... 48
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 6 -
GS W nL nH .......................................................................................................................................49
GS \ nL nH..........................................................................................................................................50
GS ^ r t m ...........................................................................................................................................50
GS a n ................................................................................................................................................51
GS f n .................................................................................................................................................53
GS h n ................................................................................................................................................53
GS k m d1...dk NUL GS k m n d1...dn....................................................................................... 54
GS p n ................................................................................................................................................56
GS q n ................................................................................................................................................57
GS r n ................................................................................................................................................. 57
GS w n................................................................................................................................................57
FS ! n.................................................................................................................................................. 59
FS & ...................................................................................................................................................59
FS - n..................................................................................................................................................60
FS ......................................................................................................................................................60
FS 2 c1 c2 d1...dk ..............................................................................................................................61
FS S n1 n2 .........................................................................................................................................62
FS W n ...............................................................................................................................................63
4.Programming Instructions ................................................................................................................. 64
4.1 General Information........................................................................................................................ 64
4.2 Programming ABC.......................................................................................................................... 64
4.2.1 Print modes............................................................................................................................... 64
4.2.2 Paper supported .......................................................................................................................65
4.2.3 PRST action modes.................................................................................................................. 65
4.3 Programming examples.................................................................................................................. 66
4.3.1Initialization ................................................................................................................................66
4.3.2 Set printing and print data
character /barcode/bit image)...................................................67
4.3.3 Print and cut paper....................................................................................................................71
4.3.4 Status check..............................................................................................................................71
4.3.5 Download bit images into RAM or FLASH................................................................................ 72
4.3.6 Recommendations on applicable flow for programm ...............................................................75
Appendix A: ASCII TABLE ..................................................................................................................... 77
Appendix B: Code Page Table .............................................................................................................. 78
Appendix C: Code 128 Bar Code .......................................................................................................... 88
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 1 -
1. General Information
1.1 Key Terms
Real-time commands – These commands are acted on immediately upon being received by the printer
(regardless the printer’s busy or error status). Page mode -- Under this mode, the printer possesses all data in specified memory and thinks of this as a virtual page. The page is printed when the printer receives print command either FF or ESC FF. Standard mode – Standard mode is the default mode of printer uses to operate. Under this mode, the printer prints data and feeds paper upon print line buffer full (data is enough for one print line) or receiving print command like LF.
Marked paper mode– Configuration of printer is marked paper. Presenter – Presenter is the front mechanism of the KIOSK printer. It is used to accommodate the
printout during printing and retract the printout when user does not want the printout. It is abbreviated as
PRST in this programming manual. HRI Characters – Human readable interpretation of the barcode. NV – Non-volatile memory in which data stored does not loss when power off. RAM – Random Access Memory Motion unit – The motion unit has vertical motion unit and horizontal motion unit, which specify the least
space for vertical motion and horizontal motion.
ASB – Auto status back DPI – Print dots per inch (one inch equals to 25.4mm). It is used to identify the resolution of a printer. FI,
203DPI means 203 print dots per inch. DPI: Dot Per Inch. Mini-breadth – To ensure PRESENTER to feed labels out of printer, mini-breadth is allowed before cutting operation, which should be the space from Presenter to cutter.
Font 0 – A standard character, Font A size for 203 DPI model is 12 x 24; the size for 300 DPI is 18 x 34; Font 1 – Compressed character, Font B size for 203 DPI model is 9 X 17; the size for 300 DPI is 13 X
24; Asia Character Set – Double-byte code character used in Asia, the size for 203DPI is 24 x 24; the size for 300DPI is 36 x 36.
1.2 Command Explanation
[Name]
[Format]
[Range]
[Description]
[Notes]
[Default]
[Reference]
The name and function summary. The command format is expressed in ASCII, Hex and Decimal separately. The range of variation value is selected for a command. The detailed functions of command. Lists items shall be given attention to. The main features of the command are given in this paragraph. After initialization of printer with power on, primary value is used in commands. Lists all other commands related or similar to the command.
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 2 -
2. Kiosk Command Set
HT
[Name] [Format]
[Description] [Notes]
[Default]
[Reference]
Horizontal tab. ASCII HT Hex 09 Decimal 9 Moves the print position to the next horizontal tab position.
This command is ignored unless the next horizontal tab position has been set. If this command is received when the printing position is at max printable space,
the printer executes print buffer-full printing of the current line and moves the print position to the beginning of next line.
Horizontal tab positions are set with ESC D. When the print buffer is full, the printer acts as follows,
1) Under standard mode, prints current line and moves the print position to the beginning of next line.
2) Under page mode, executes carriage return and moves the print position to the beginning of next line.
The default setting of the horizontal tab position for the paper roll is every 8th ASCII character.
ESC D
LF
[Name] [Format]
[Description]
[Notes] [Reference]
Print and feeds one line. ASCII LF Hex 0A Decimal 10 Under standard mode, prints the data in the print buffer and feeds one line. It only feeds one line when current buffer area is blank. Under page mode, executes carriage return and moves the print position to the beginning of next line. This command sets the print position to the beginning of the line.
ESC 2, ESC 3
FF
[Name] Print and feed paper.
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 3 -
[Format]
[Description]
[Notes]
[Reference]
ASCII FF Hex 0C Decimal 12 Under page mode prints the data in the print buffer collectively and returns to standard mode.
Under standard mode, this command functions the same as LF command. The buffer data is deleted after being printed. This command sets the print position to the beginning of the line.
ESC FF, ESC L, ESC S
CR
[Name] [Format]
[Description] [Notes]
[Reference]
Print and carriage return ASCII CR Hex 0D Decimal 13
When automatic line feed is enabled, this command functions the same as LF; This command is disabled according to the printer configuration When automatic line feed is disabled, this command is ignored.
LF
DLE EOT n
[Name] Real-time status transmission
[Format] ASCII DLE EOT n
Hex 10 04 n
Decimal 16 4 n
[Range] 2 ≤ n≤7,9 ≤ n≤11
[Description] Transmits the selected printer status specified by n in real-time,according to the following
parameters:
n = 2Transmit peripheral equipment status
n = 3Transmit error status.
n = 4Transmit paper roll sensor status .
n = 5Transmit printer statusEqual to first byte data of ASB).
n = 6Transmit printer statusEqual to second byte data of ASB).
n = 7Transmit printer statusEqual to third byte data of ASB).
n = 9Transmit PRST status.
n = 10Reset printer
n = 11Clear printer errors.(function as the clear errors command)
[Notes] When n is out of range, the return value is invalid.
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 4 -
The printer transmits specified status immediately upon receiving this command, when
the command is enabled.
Even though the printer is not selected using ESC = (select peripheral device), this
command is still effective.
The printer transmits the status without confirming whether the host computer can
receive data.
This command is only valid for serial and USB interfaces. If printer has these two
interfaces, data shall return to them at the same time.
The reset command is used to clear the error status and the print buffer as well. Make
sure to cancel the print duty in the application when using this command.
n = 2: Transmits printer status defined as below:
Bit Off/On Hex. Description
0 0 0 Fixed to 0 1 1 2 Fixed to 1 2 0/1 00/04 Top cover closed/ Top cover open 3 0/1 00/08 No FEED button action / FEED button action 4 1 10 Fixed to 1 5 0/1 0/20 Paper adequate/ Paper end 6 0/1 00/40 Normal / Error 7 0 00 Fixed to 0
n=3,Transmits error status defined as below
Bit Off/On Hex. Description
0 0 00 Fixed to 0 1 1 02 Fixed to 1 2 0 00 Fixed to 0 3 0/1 00/08 Cutter normal/Cutter error 4 1 10 Fixed to 1 5 0/1 00/20 Top cover closed/ Top cover open
6 0/1 00/40
Print head temperature normal/ Print head overheated
7 0 00 Fixed to 0
n=4,Transmits paper roll sensor status defined as below
Bit Off/On Hex. Description
0 0 00 Fixed to 0 1 1 02 Fixed to 1 2 0/1 00/04 Paper adequate / Paper near end 3 0/1 00/08 Paper adequate / Paper near end 4 1 10 Fixed to 1 5 0/1 00/20 Paper adequate / Paper end 6 0/1 00/40 Paper adequate / Paper end 7 0 00 Fixed to 0
n = 5:Transmits printer status defined as below
Bit Off/On Hex. Description
0 0/1 00/01 Paper adequate/Paper near end 1 1/1 00/02 Top cover closed/ Top cover open 2 0/1 00/04 Paper adequate/Paper end 3 0/1 00/08 Printhead normal/overheated 4 0/1 00/10 Cutter normal/Cutter error 5 0 00 Reserve 6 0 00 Reserve 7 0 00 Fixed to 0
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 5 -
n = 6Transmits printer status defined as below
Bit Off/On Hex. Description
0 0/1 00/01 PRST without paper / PRST with paper 1 0/1 00/02 Normal/Paper jam at printing site 2 0/1 00/04 Normal/Paper jam on PRST 3 0/1 00/08 Normal/Black mark missing 4 0/1 00/10 Auto paper loading normal/ error 5 0/1 00/20 Buffer not full/buffer full 6 0/1 0/40 System normal/system error 7 0 0 Fixed to 0
n = 7:Transmits printer course status
Bit Off/On Hex. Description Error
00000/10000 00/10
Printer idle status Normal/Error
Top cover open, print head overheated, paper end
00001/10001 01/11
Printing status Normal/ Error
Top cover open, print head overheated, paper end, paper jam
00010/10010 02/12
Cutting paper status Normal/ Error
Top cover open, print head overheated, paper end, cutter error, paper jam
00011/10011 03/13
PRST feeding paper status Normal/ Error
Top cover open, print head overheated, paper end, paper jam
00100/10100 04/14
PRST waiting status Normal/Error
Top cover open, print head overheated, paper end
00101/10101 05/15
PRST retraction status Normal/Error
Top cover open, print head overheated, paper end , paper jam
00110/10110 06/16
PRST ejection status Error/Normal
Top cover open, print head overheated, paper end , paper jam
0~4
00111/10111 07/17
A
uto paper loading status
Normal/Error
Top cover open, print head overheated, paper end
5 0/1 00/20
PrstIn with paper /PrstIn without paper
6 0/1 00/40
No FEED button action/FEED button action
7 0/1 00/80
Paper retract normally user take the paper away in the process of retracting
Notes
• The seventh byte will be cleared up after the next cut.
• PrstIn indicates the state of PrstIn sensor before or after retraction,with paper means that the paper holder is full of paper or some paper is absorbed on the channels.
• When PrstIn sensor is in with paper state before retraction,the printer cannot judge weather the
paper was taken away by user in the retraction process.
n = 9,Transmit PRST status
Bit Off/On Hex. Description
0 0/1 00/01 PRST without paper / PRST with paper 1-3 0 00 Fixed to 0 4 1 02 Fixed to 1 5-7 0 00 Fixed to 0
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 6 -
n = 10,reset printer
Printer shall clear error information and buffer area and execute half-auto feeding
course with this command. Printer status recover with the command after manually cancel error
n = 11, clear printer error
When executes this command, printer shall clear errors automatically according to
error status. If the operation succeeds, it enters normal status, otherwise only via manual operation.
CAN
[Name] [Format]
[Description] [Notes]
[Reference]
Cancel print data in page mode ASCII CAN Hex 18 Decimal 24 In page mode, deletes all print data in the print buffer.
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
ESC FF
[Name] [Format]
[Description] [Notes]
[Reference]
Print data in page mode 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, not change settings for
ESC T and ESC W, and the position for buffering character data.
FF, ESC L, ESC S
ESC SP n
[Name] [Format]
[Range]
Set right-side character spacing ASCII ESC SP n Hex 1B 20 n Decimal 27 32 n 0 n 255
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 7 -
[Description]
[Notes]
[Default] [Reference]
Sets the character spacing for the right side of the character to [n × horizontal or vertical motion units] inches.
The horizontal and vertical motion units are specified by GS P. Without setting of right character spacing, only changing the horizontal or vertical
motion unit does not affect the current right-side spacing.
The right-side character spacing for double-width mode is twice the normal value.
When characters are enlarged, the right-side character spacing is enlarged accordingly.
This command sets values independently in each mode (standard and page
modes).
In standard mode, the horizontal motion unit is used. In page mode, the horizontal or vertical motion unit is specified 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.
For 300DPI printers, the maximum right-side spacing is 288/305 inches. Any setting
exceeding the maximum is converted to the maximum automatically.
For 203DPI printers, the maximum right-side spacing is 288/203 inches. Any setting
exceeding the maximum is converted to the maximum automatically.
n = 0
GS P
ESC ! n
[Name] [Format]
[Range] [Description]
Select print mode ASCII ESC ! n Hex 1B 21 n Decimal 27 33 n 0 n 255 Selects print mode(s) with n as follows:
Bit 1/0 Hex Decimal Function
0 00 0 Standard ASCII characters0 1 01 1 Compressed ASCII characters
1,2 Undefined.
0 00 0 Emphasized mode not selected 3 1 08 8 Emphasized mode selected 0 00 0 Double-height mode not selected 4 1 10 16 Double-height mode selected 0 00 0 Double-width mode not selected 5 1 20 32 Double-width mode selected
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 8 -
[Notes]
[Default] [Reference]
6 Undefined
0 00 0 Underline mode not selected7 1 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 cannot underline the space set by HT
or 90° clockwise-rotated characters.
The thickness of the underline is that selected by ESC -. When some characters in a line are double or more height, all the characters on the
line are aligned at the baseline.
ESC E can also turn on or off emphasized mode. However, 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 last received command is
effective.
n = 0
ESC -, ESC E, GS !
ESC $ nL nH
[Name] [Format]
[Range]
[Description]
[Notes]
[Reference]
Set absolute print position ASCII ESC $ nL nH Hex 1B 24 nL nH Decimal 27 36 nL nH 0nL 255 0 nH255 Sets the distance from the beginning of the line to the position at which subsequent characters are to be printed as below. [(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 is selected depending on the
starting position of the printable area as follows:
1When 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. 2When 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
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 9 -
ESC % n
[Name] [Format]
[Range] [Description]
[Notes]
[Default] [Reference]
Select/cancel user-defined character set 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 ?
ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)]
[Name] [Format]
[Range]
[Description]
[Notes]
Define user-defined characters 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)] 203DPI model
y = 3 32 ≤ c1 ≤ c2 127 0 x 12 Standard ASCII font 0 x 9 Compressed ASCII font
300DPI model
0<y<6 32 ≤ c1 ≤ c2 127 0 x 18 Standard ASCII font 0 x 12 Compressed ASCII font
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).
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 10 -
[Default] [Example]
It is possible to define multiple characters for consecutive character codes. If only
one character is desired, use c1 = c2. d is the data for the downloaded characters. The dot pattern is in the horizontal
direction from the left side.
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. The user-defined character definition is cleared when:
ESC ? is executed. The power is turned off.
All user-defined Characters defined with this command will be cleared when the GS
* command is executed. ESC %, ESC ?
203 DPI model When standard ASCII font (12 × 24) is selected.
When compressed ASCII font (9×17) is selected.
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 11 -
ESC * m nL nH d1... dk
[Name] [Format]
[Range]
[Description]
Download and print bit-image 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, 35 0 nL 255 0 nH 3 0 d 255 Selects a bit-image mode with m for the number of dots specified by nL and nH, d1...dk is data, of which number is decided by horizontal dots number and selected bit-image mode as follows: 203DPI
Vertical Direction Horizontal Direction
m
Bit-Image Mode
Number
of Dots
Dot
Density
Dot
density
Number of Data (K)
0 8-dot single-density 8 67 DPI 101 DPI nL + nH × 256
1 8-dot double-density 8 67 DPI 203 DPI nL + nH × 256 32 24-dot single-density 24 203 DPI 101 DPI ( nL + nH × 256) × 3 33,35 24-dot double-density 24 203 DP 203 DPI ( nL + nH × 256) × 3
300DPI
Vertical Direction Horizontal Direction
m
Mode
Number
of Dots
Dot
Density
Dot
density
Number of Data (K)
0 8-dot single-density 8 100 DPI 150 DPI nL + nH × 256
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 12 -
[Notes]
1 8-dot double-density 8 100 DPI 300 DPI nL + nH × 256 32 24-dot single-density 24 300 DPI 150 DPI ( nL + nH × 256) × 3 33,35 24-dot double-density 24 300 DPI 300 DPI ( nL + nH × 256) × 3
If the value of m is out of the specified range, nL and data following are
processed as normal data.
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:
When 24-dot bit image is selected:
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 13 -
ESC - n
[Name] [Format]
[Range] [Description]
[Notes]
[Default] [Reference]
Turn underline mode on/off ASCII ESC - n Hex 1B 2D n Decimal 27 45 n 0 n 2, 48 n 50 Turns underline mode on or off, based on the following values of n:
n Function
0, 48 Turns off underline mode 1, 49 Turns on underline mode (1-dot thick) 2, 50 Turns on underline mode (2-dots thick
)
The printer can underline all characters (including right-side character spacing), but
cannot underline the space set by HT. The printer cannot underline 90° clockwise rotated characters and white/black
inverted characters.
Changing the character size does not affect the current underline thickness. Underline mode can also be turned on or off by using ESC !. Note, however, that
the last received command is effective. n = 0 HT, ESC !
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 14 -
ESC 2
[Name] [Format]
[Description] [Notes] [Reference]
Select default line spacing ASCII ESC 2 Hex 1B 32 Decimal 27 50 Selects 1/6-inch line (approximately 4.23 mm) spacing. The line spacing can be set independently in standard mode and in page mode.
ESC 3
ESC 3 n
[Name] [Format]
[Range] [Description] [Notes]
[Default] [Reference]
Set line spacing ASCII ESC 3 n Hex 1B 33 n Decimal 27 51 n 0 n 255 Sets the line spacing to [ n × vertical or horizontal motion unit] inches.
The line spacing can be set independently in standard mode and in page mode. The horizontal and vertical motion units are specified by GS P. Changing the
horizontal or vertical motion unit does not affect the current line spacing.
In standard mode, the vertical motion unit (y) is used. In page mode, this command functions as follows, depending on the starting
position and direction of the printable area:
When the starting position is set to the upper left or lower right of
the printable area with ESC T, the vertical motion unit (y) is used.
When the starting position is set to the upper right or lower left of
the print able area with ESC T, the horizontal motion unit ( x) is used.
The maximum paper feed amount is 600 mm (23.6 inches) for 300 DPI printer and
900mm (35.4 inches) for 203 DPI printer. If a paper feed amount of more than 600
mm (300DPI) or 900mm (203DPI) is set, the printer feeds the paper only 600mm
(300DPI) or 900mm (203DPI). Line spacing is equivalent to approximately 4.23mm (1/6 inches).
ESC 2, GS P
ESC = n
[Name] [Format]
Set peripheral device ASCII ESC = n
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 15 -
[Range] [Description] [Notes]
[Default]
Hex 1B 3D n Decimal 27 61 n 0 n 255 Disable or enable peripheral device to which host computer sends data.
• The lowest bit of n is effective;
• When the LSB of n is 0, printer is disabled;
• When the LSB of n is 1, printer is enabled’
• When the printer is enabled when power on When the printer is disabled, it ignores all data except for real-time command (DLE EOT) until it is enabled by this command. N = 1
ESC ? n
[Name] [Format]
[Range] [Description] [Notes]
[Reference]
Cancel user-defined characters ASCII ESC ? n Hex 1B 3F n Decimal 27 63 n 32 n 127 Cancels user-defined characters. This command cancels the pattern defined for the character code specified by n.
After the user-defined characters are canceled, the corresponding pattern for the
internal character is printed. If a user-defined character has not been defined for the specified character code,
the printer ignores this command.
ESC &, ESC %
ESC @
[Name] [Format]
[Description]
[Notes]
Initialize printer ASCII ESC @ Hex 1B 40 Decimal 27 64 Clears the data in the print buffer and resets the printer mode to the default mode when the power was turned on.
The bit-image data or user-defined characters in RAM are cleared. The macro definition is not cleared. The NV bit image data is not cleared.
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 16 -
ESC D n1...nk NUL
[Name] [Format]
[Range]
[Description]
[Notes]
[Example] [Default]
[Reference]
Set horizontal tab positions ASCII ESC D n1... nk NUL Hex 1B 44 n1...nk 00 Decimal 27 68 n1...nk 0 1 n 255 0 ≤ k ≤ 32 Sets horizontal tab positions. n+1 specifies the column number for setting a horizontal tab position from the
beginning of the line. k indicates the total number of horizontal tab positions to be set. The horizontal tab position is stored as a value of [character width × 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 the previous horizontal tab settings. Up to 32 tab positions (k = 32) can be set. Data exceeding 32 tab positions is
processed as normal data.
Transmit [n] k in ascending order and place a NUL code 0 at the end. When [n] k is less than or equal to the preceding value [n] k-1, tab setting is finished
and the following data is processed as normal data.
ESC D NUL cancels all horizontal tab positions. The previously specified horizontal tab positions do not change, even if the
character width changes.
The character width is independent for each standard and page mode. When n = 8, printing position is at the ninth line
The default tab positions are at intervals of 8 standard ASCII characters (columns 9, 17, 25).
HT
ESC E n
[Name] [Format]
[Range] [Description]
Turn emphasized mode on/off ASCII ESC E n Hex 1B 45 n Decimal 27 69 n 0 n 255 Turns emphasized mode on or off When the LSB of n is 0, emphasized mode is turned off.
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 17 -
[Notes]
[Default] [Reference]
When the LSB of n is 1, emphasized mode is turned on.
Only the least significant bit of n is effective. ESC ! turn on and off emphasized mode in the same way, the last received
command is available. Printer output is the same in double-strike mode and in emphasized mode. n = 0
ESC !, ESC G
ESC G n
[Name] [Format]
[Range] [Description]
[Notes]
[Default] [Reference]
Turn on/off double-strike mode ASCII ESC G n Hex 1B 47 n Decimal 27 71 n 0 n 255 Turns double-strike mode on or off.
When the LSB of n is 0, double-strike mode is turned off. When the LSB of n is 1, double-strike mode is turned on.
Only the least significant bit of n is enabled. Printer output is the same in double-strike mode and in emphasized mode. ESC ! can turn emphasized mode on/off, the last received command is effective.
n = 0
ESC E, ESC !
ESC J n
[Name] [Format]
[Range] [Description]
[Notes]
Print and feed paper ASCII ESC J n Hex 1B 4A n Decimal 27 74 n 0 n 255 Prints the data in the print buffer and feeds the paper [ n × vertical or horizontal motion unit] inches. After printing is completed, this command sets the print starting position to the
beginning of the line. The paper feed amount set by this command does not affect the settings of ESC 2
or ESC 3.
The horizontal and vertical motion units are specified by GS P. In standard mode, the printer uses the vertical motion unit (y).
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 18 -
[Reference]
In page mode, this command functions as follows, depending on the starting
position of the printable area for selecting vertical motion unit(y) or horizontal
motion unit(x):
When the starting position is set to the upper left or lower right of
the printable area using ESC T, the vertical motion unit (y) is used.
When the starting position is set to the upper right or lower left of
the print able area using ESC T, the horizontal motion unit (x) is used.
The maximum line spacing is 600mm (23.6 inches) for 300DPI printer and 900mm
(35.4 inches) for 203DPI printer. When the setting value exceeds the maximum, it is
converted to the maximum automatically.
GS P
ESC L
[Name] [Format]
[Description] [Notes]
[Reference]
Select page mode ASCII ESC L Hex 1B 4C Decimal 27 76 Switches from standard mode to page mode. This command is enabled only when processed at the beginning of a line in
standard mode.
This command has no effect in page mode. After printing by FF is completed or by ESC S, the printer returns to standard mode.This command sets the position where data is buffered to the position specified by
ESC T within the printing area defined by ESC W.
This command switches the settings for the following commands to those for page
mode:
Set right-side character spacing: ESC SP Select line spacing: ESC 2, ESC 3
Only value settings is possible for the following commands in page mode; these
commands are not executed until switch to standard mode.
Turn 90° clockwise rotation mode on/off: ESC V Turn upside-down printing mode on/off: ESC { Set left margin: GS L Set printable area width: GS W
The printer returns to standard mode, after it is reset, or executes ESC @. FF, CAN, ESC FF, ESC S, ESC T, ESC W, GS $, GS \
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 19 -
ESC M n
[Name] [Format]
[Range] [Description]
[Notes]
Select character font ASCII ESC M n Hex 1B 4D n Decimal 27 77 n n = 0, 1, 2, 3, 48, 49, 50, 51 Selects character fonts.
N Function
0,48 Select standard ASCII font 1,49 Select compressed ASCII font: 2,50 Select user defined character 3,51 Select Chinese font, include:
1) Simplified Chinese(GB2312)
2) Traditional Chinese(BIG5)
3) Japanese (JIS/SJIS/EUC)
4) Korean (KSC5601/EUC) The printer will print selected Chinese font [simplified Chinese, traditional Chinese, Japanese (EUC) or Korean (EUC)] according to its configuration
• When Chinese font is selected, Chinese font and western font can be
printed together. The font code in <20>H~<FE>H is identified as Western font automatically, and those in <A1>H~<FE> are Chinese font.
• When Japanese is selected, the command switches western font to
Japanese.
• After Chinese font is selected, Font A is also enabled automatically.
ESC R n
[Name] [Format]
[Range] [Description]
Select an international character set ASCII ESC R n Hex 1B 52 n Decimal 27 82 n 0 n 13 Selects an international character set n from the following table,see below:
ASCII Code (Hex)
n Country
23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E
0 U.S.A # $ @ [ \ ] ^ ` { | } ~ 1 France # $ à ° ç § ^ ` é ù è ¨ 2 Germany # $ § Ä Ö Ü ^ ` ä ö ü ß 3 U.K. £ $ @ [ \ ] ^ ` { | } ~ 4
Denmark I
# $ @ Æ Ø Å ^ ` æ ø å ~
5 Sweden # ¤ É Ä Ö Å Ü é ä ö å ü
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 20 -
[Notes] [Default]
6 Italy # $ @ ° \ é ^ ù à ò è ì 7
Spain I
Pt $ @ ¡ Ñ ¿ ^ ` ¨ ñ } ~
8 Japan # $ @ [ ¥ ] ^ ` { | } ~ 9 Norway # ¤ É Æ Ø Å Ü é æ ø å ü 10
Denmark II
# $ É Æ Ø Å Ü é æ ø å ü
11
Spain II
# $ á ¡ Ñ ¿ é ` í ñ ó ú
12 Latin
America
# $ á ¡ Ñ ¿ é ü í ñ ó ú
13 Korea # $ @ [ W ] ^ ` { | } ~
This command is only enabled for 203DPI printer. n = 0
ESC S
[Name] [Format]
[Description] [Notes]
[Reference]
Select standard mode ASCII ESC S Hex 1B 53 Decimal 27 83 Switches from page mode to standard mode.
This command is effective only in page mode. Data buffered in page mode are cleared. This command sets the print position to the beginning of the line. The page mode zone is initialized as default. This command switches the settings for the following commands to those for
standard mode:
Set right-side character spacing: ESC SP Select default line spacing: ESC 2, ESC 3
The following commands are enabled only to set in standard mode.
Set printing area in page mode: ESC W Select print direction in page mode: ESC T
The following commands are ignored in standard mode.
Set absolute vertical print position in page mode: GS $ Set relative vertical print position in page mode: GS \
Standard mode is selected automatically when the printer is reset, or command
ESC @ is used. FF, ESC FF, ESC L
ESC T n
[Name] [Format]
Select print direction in page mode ASCII ESC T n
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 21 -
[Range]
[Description]
[Notes]
[Default] [Reference]
Hex 1B 54 n Decimal 27 84 n 0 n 3 48 n 51 Selects the print direction and starting position in page mode. n specifies the print direction and starting position as follows:
When the command is input in standard mode, the printer executes only internal flag
operation. This command does not affect printing in standard mode.
This command sets the starting position where data is buffered within the printing
area.
Parameters for horizontal or vertical motion units (x or y) differ as follows, depending
on the starting position of the printing area:
If the starting position is the upper left or lower right of the printing area, data
is buffered in the direction perpendicular to the paper feed direction: Commands using horizontal motion units: ESC SP, ESC $, ESC \ Commands using vertical motion units: ESC 3, ESC J, GS $, GS \
If the starting position is the upper right or lower left of the printing area, data
is buffered in the paper feed direction: Commands using horizontal motion units: ESC 3, ESC J, GS $, GS \ Commands using vertical motion units: ESC SP, ESC $, ESC \
n = 0
ESC $, ESC L, ESC W, ESC \, GS $, GS P, GS \
ESC V n
[Name] [Format]
[Range] [Description]
Turn 90° clockwise rotation mode on/off ASCII ESC V n Hex 1B 56 n Decimal 27 86 n 0 n 1, 48 n 49 Turns 90° clockwise rotation mode on/off. n is used as follows:
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 22 -
[Notes]
[Default] [Reference]
n F
unctio
n
0, 48 Turns off 90° clockwise rotation mode 1, 49 Turns on 90° clockwise rotation mode
This command only affects printing in standard mode. When underline mode is turned on, the printer does not underline 90° clockwise
rotation. Double-width and double-height commands in 90° rotation mode enlarge
characters in the opposite directions from double-height and double- width
commands in normal mode. n = 0
ESC !, ESC -
ESC W xL xH yL yH dxL dxH dyL dyH
[Name] [Format]
[Range] [Description]
[Notes]
Set printing area in page mode ASCII ESC W xL xH yL yH dxL dxH dyL dyH Hex 1B 57 xL xH yL yH dxL dxH dyL dyH Decimal 27 87 xL xH yL yH dxL dxH dyL dyH 0 xL, xH, yL, yH, dxL, dxH, dyL, dyH 255 (except dxL= dxH=0 or dyL= dyH=0) The horizontal starting position, vertical starting position, printing area width, and printing area height are defined as x0, y0, dx (inch), dy (inch), respectively. Each setting for the printing area is calculated as follows: Horizontal starting position: x0 = [(xL + xH × 256) × (horizontal motion unit)]inches Vertical starting position: y0 = [(yL + yH × 256) × (vertical motion unit)]inches Printing area width: dx = [dxL + dxH × 256] × (horizontal motion unit)]inches Printing area height: dy = [dyL + dyH × 256] × (vertical motion unit)]inches If this command is input in standard mode, the printer executes only internal flag
operation. This command does not affect printing in standard mode. If the horizontal or vertical starting position is set outside the printable area, the
printer stops command processing and processes the following data as normal
data. If the printing area width or height is set to 0, the printer stops command processing
and processes the following data as normal data. This command sets the position where data is buffered to the position specified by
ESC T within the printing area. If (horizontal starting position + printing area width) exceeds the printable area, the
printing area width is automatically set to (horizontal printable area- horizontal
starting position). If (vertical starting position + printing area height) exceeds the printable area, the
printing area height is automatically set to (vertical printable area – vertical starting
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 23 -
[Default] [Reference]
position). The horizontal and vertical motion units are specified by GS P. Changing the
horizontal or vertical motion unit does not affect the current printing area. Use the horizontal motion unit (x) for setting the horizontal starting position and
printing area width, and use the vertical motion unit (y) for setting the vertical
starting position and printing area height. When the horizontal starting position, vertical starting position, printing area width,
and printing area height are defined as X, Y, Dx, and Dy respectively, the printing
area is set as shown in the figure below.
Decided by printer configuration
CAN, ESC L, ESC T, GS P
ESC \ nL nH
[Name] [Format]
[Range]
[Description]
[Notes]
Set horizontal relative print position ASCII ESC \ nL nH Hex 1B 5C nL nH Decimal 27 92 nL nH 0 nl 255 0 nH 255 Sets the print starting 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] inches
Any setting that exceeds the printable area is ignored. When pitch N is specified to the right, nL+ nH × 256 = N. When pitch N is specified to the left (the negative direction): nL+ nH × 256 = 65536
- N.
The print starting position moves from the current position to [N × horizontal or
Confidential MTP7632 Programming Manual
Telpar 800-872-4886 24 -
[Reference]
vertical motion unit]
The horizontal and vertical motion units are specified by GS P. In standard mode, the horizontal motion unit is used. In page mode, the horizontal or vertical motion unit differs as follows, depending on
the starting point of the printing area:
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.
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 P
ESC a n
[Name] [Format]
[Range] [Description]
[Notes]
[Default]
Select justification ASCII ESC a n Hex 1B 61 n Decimal 27 97 n 0 n 2, 48 n 50 Aligns all the data in one line to the specified position
n selects the justification as follows:
n Justification
0,48 Left justification 1, 49 Centerin
g
2, 50 Right justification
The command is enabled only when processed at the beginning of the line in
standard mode.
If this command is input in page mode, the printer performs only internal flag
operations.
n = 0
[Example]
ESC c 0 n
[Name] [Format]
Select paper type to be used ASCII ESC c 0 n
Loading...
+ 67 hidden pages