Page 2
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.
Confidential MTP7632 Programming Manual 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..............................
Page 5
Confidential MTP7632 Programming Manual 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 ............................
Page 6
Confidential MTP7632 Programming Manual 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 ..............................
Confidential MTP7632 Programming Manual 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.
Confidential MTP7632 Programming Manual 2. Kiosk Command Set [Name] Horizontal tab. [Format] ASCII Decimal [Description] Moves the print position to the next horizontal tab position. [Notes] 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.
Confidential MTP7632 Programming Manual [Format] ASCII Decimal [Description] Under page mode prints the data in the print buffer collectively and returns to standard mode. [Notes] Under standard mode, this command functions the same as LF command. The buffer data is deleted after being printed.
Confidential MTP7632 Programming Manual 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.
Confidential MTP7632 Programming Manual n = 6:Transmits printer status defined as below: Off/On Hex. Description 00/01 PRST without paper / PRST with paper 00/02 Normal/Paper jam at printing site 00/04 Normal/Paper jam on PRST 00/08 Normal/Black mark missing 00/10 Auto paper loading normal/ error...
Confidential MTP7632 Programming Manual 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.
Confidential MTP7632 Programming Manual [Description] Sets the character spacing for the right side of the character to [n × horizontal or vertical motion units] inches. [Notes] 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.
Confidential MTP7632 Programming Manual Undefined Underline mode not selected Underline mode selected [Notes] 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°...
Confidential MTP7632 Programming Manual ESC % n [Name] Select/cancel user-defined character set [Format] ASCII 25 n Decimal 37 n [Range] 0 ≤ n ≤255 [Description] Selects or cancels the user-defined character set. ♦ When the LSB of n is 0, the user-defined character set is canceled.
Page 16
Confidential MTP7632 Programming Manual 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.
Confidential MTP7632 Programming Manual ESC - n [Name] Turn underline mode on/off [Format] ASCII Decimal [Range] 0 ≤ n ≤2, 48 ≤n ≤ 50 [Description] Turns underline mode on or off, based on the following values of n: Function 0, 48...
Confidential MTP7632 Programming Manual ESC 2 [Name] Select default line spacing [Format] ASCII Decimal [Description] Selects 1/6-inch line (approximately 4.23 mm) spacing. [Notes] The line spacing can be set independently in standard mode and in page mode. [Reference] ESC 3...
Confidential MTP7632 Programming Manual Decimal [Range] 0 ≤ n ≤ 255 [Description] Disable or enable peripheral device to which host computer sends data. [Notes] • The lowest bit of n is effective; • When the LSB of n is 0, printer is disabled;...
Confidential MTP7632 Programming Manual ♦ When the LSB of n is 1, emphasized mode is turned on. [Notes] 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.
Confidential MTP7632 Programming Manual 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.
Confidential MTP7632 Programming Manual ESC M n [Name] Select character font [Format] ASCII Decimal [Range] n = 0, 1, 2, 3, 48, 49, 50, 51 [Description] Selects character fonts. Function 0,48 Select standard ASCII font 1,49 Select compressed ASCII font:...
Confidential MTP7632 Programming Manual Decimal [Range] 0 ≤ n ≤ 3 48 ≤ n ≤ 51 [Description] Selects the print direction and starting position in page mode. n specifies the print direction and starting position as follows: [Notes] When the command is input in standard mode, the printer executes only internal flag operation.
Confidential MTP7632 Programming Manual Function 0, 48 Turns off 90° clockwise rotation mode 1, 49 Turns on 90° clockwise rotation mode [Notes] This command only affects printing in standard mode. When underline mode is turned on, the printer does not underline 90° clockwise rotation.
Confidential MTP7632 Programming Manual 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.
Confidential MTP7632 Programming Manual 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: ①...
Confidential MTP7632 Programming Manual 63 30 n Decimal 99 48 n [Range] n =0,1,2 [Description] Selects paper type specified by n as follows. Paper type Continuous paper Marked paper [Notes] If n selects 0, other settings are disabled. [Default] n = 0...
Confidential MTP7632 Programming Manual Paper end sensor is not available Paper end sensor is available undefined [Notes] • It is possible to select two sensors to output signals. Then, if any of the sensors detects a paper end, the paper end signal is output.
Confidential MTP7632 Programming Manual In the macro ready mode, the panel buttons are always enabled. [Default] n = 0 ESC c 8 n [Name] Select PRST action mode [Format] ASCII 63 38 n Decimal 99 56 n [Range] 0 ≤ n ≤ 3 [Description] Selects PRST action mode specified by n as follows.
Confidential MTP7632 Programming Manual [Range] 0 ≤ n ≤ 240 [Description] Sets the time period (t in seconds) for PRST to wait before it takes any actions set by ESC c 8. [Notes] Actions here mean the PRST action modes specified in ESC c 8 command.
Confidential MTP7632 Programming Manual This command does not affect the line spacing set by ESC 2 or ESC 3. The maximum paper feed amount is 600mm (23.6 inches) for 300DPI printer and is 900mm (35.4 inches) for 203DPI printers. If the paper feed amount (nx line spacing) of more than 600mm (300DPI) or 900mm (203DPI) is specified, the printer feeds the paper only 600mm (300DPI) or 900mm (203DPI).
Confidential MTP7632 Programming Manual ESC t n [Name] Select character code table [Format] ASCII Decimal [Range] 0 ≤ n ≤ 5, 16 ≤ n ≤ 19, [Description] Selects a page n from the character code table. Page PC437 Katakana PC850...
Confidential MTP7632 Programming Manual ESC { n [Name] Turns on/off upside-down printing mode [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turns upside-down printing mode on or off. ♦ When the LSB of n is 0, upside-down printing mode is turned off.
Confidential MTP7632 Programming Manual 300DPI: Vertical Dot Density Horizontal Dot Mode (DPI) Density (DPI) 0.48 Normal 1.49 Double-width 2.50 Double-height 3.51 Quadruple ♦ n is the number of the NV bit image (defined using the FS q command). ♦ m specifies the bit image mode.
Page 39
Confidential MTP7632 Programming Manual This command cancels all NV bit images that have already been defined by this command. The printer cannot redefine only one of several data definitions previously defined. In this case, all data needs to be sent again.
Confidential MTP7632 Programming Manual power off. This command performs only definition of a NV bit image and does not perform printing. Printing of the NV bit image is performed by the FS p command. [Reference] FS p [Example] When xL = 64, xH = 0, yL = 96, yH = 0...
Page 41
Confidential MTP7632 Programming Manual Decimal [Range] 0 ≤ n ≤ 255 (1 ≤ vertical number of times ≤ 6, 1 ≤ horizontal number of times ≤ 6) [Description] Selects the character height using bits 0 to 3 and selects the character...
Confidential MTP7632 Programming Manual GS # n [Name] Specify a number for the bit-image to be downloaded. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 7 [Description] Specifies a number for the bit-image to be downloaded. This number is to be used when downloading and printing this bit-image.
Confidential MTP7632 Programming Manual GS ( A pL pH n m [Name] Execute test printing [Format] ASCII pL pH n m pL pH n m [Range] ( pL+( pH × 256))=2 (pL=2, pH=0) 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 1 ≤...
Confidential MTP7632 Programming Manual [Notes] • Frequent write command executions by a NV memory write command may damage the NV memory. Therefore, it is recommended to write the NV memory 10 times or less a day. GS ( E pL pH m d1 d2 (m = 1) <Function 1>...
Confidential MTP7632 Programming Manual Switch No. Status • If a not-supported memory switch number is selected (out of a), this command is ignored; • If this command is ignored, the printer doesn’t send any data. • The memory switch number a treats the same information with the memory switch number of Function 3.
Confidential MTP7632 Programming Manual GS / [Reference] GS / m [Name] Print downloaded bit image [Format] ASCII Decimal [Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51 [Description] Prints a downloaded bit image using the mode specified by m.
Confidential MTP7632 Programming Manual for the bit-image to be printed is defined by GS # command. [Reference] GS * , GS # GS : [Name] Start/end macro definition [Format] ASCII Decimal [Description] Starts or ends macro definition. [Notes] Macro definition starts when this command is received during normal operation.
Confidential MTP7632 Programming Manual characters, and spacing skipped by HT, ESC $, and ESC \. This command does not affect the space between lines. Underline mode is disabled when White/black reverse mode is selected. Otherwise it is enabled when white/black reverse mode is turned off.
Confidential MTP7632 Programming Manual operation range specified by GS C 1 or GS C;, it is forced to convert to the minimum value. In count-down mode, if the counter value specified by this command goes out of the counter operation range specified by GS C 1 or GS C;, It is forced to convert to the maximum value.
Confidential MTP7632 Programming Manual [Reference] GS C 0, GS C 1, GS C 2, GS c GS H n [Name] Select printing position for HRI characters [Format] ASCII Decimal [Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51 [Description] Selects the printing position of HRI characters when printing a bar code.
Confidential MTP7632 Programming Manual In standard mode, the following commands use x or y, regardless of character rotation (upside-down or 90° clockwise rotation): ① C ommands using x: ESC SP, ESC $, ESC \, FS S, GS L, GS W ②...
Confidential MTP7632 Programming Manual [Notes for ①and②] This command is effective only processed at the beginning of a line. [Note for ②] When m = 0 or 48, if the paper feed length (L1) is less than the minimum page...
Confidential MTP7632 Programming Manual When m = 0: The macro executes r times continuously at the interval specified by t (t x 250 ms). When m = 1: After waiting for the period specified by t, the PAPER OUT LED indicators blink and the printer waits for the FEED button to be pressed.
Page 58
Confidential MTP7632 Programming Manual Reserve Reserve Fixed to 0 Second byte (printer information) Off/On Hex. Description 00/01 PRST without paper / PRST with paper 00/02 Normal/Paper jam on printing part 00/04 Normal/Paper jam on PRST 00/08 Normal/Black mark missing 00/10...
Confidential MTP7632 Programming Manual printer . • 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.
Confidential MTP7632 Programming Manual Decimal [Range] 1 ≤ n ≤ 255 [Description] n specifies the number of dots in the vertical direction. [Default] n = 162 [Reference] GS k GS k m d1...dk NUL GS k m n d1...dn •...
Page 61
Confidential MTP7632 Programming Manual When JAN13 (EAN13) barcode system is selected, if more than 13 barcodes data is received, the printer will process the excess data as normal data. When JAN8 (EAN8) barcode system is selected, if more than 8 bytes barcodes data is received, the printer will process the excess data as normal data.
Confidential MTP7632 Programming Manual FNC4 7B, 34 123, 52 "{" 7B, 7B 123, 123 [Example] Example data for printing "No. 123456" In this example, the printer first prints "No." using CODE B, then prints the following numbers using CODE C.
Confidential MTP7632 Programming Manual [Notes] nA and nB is valid when nC and nD equals to zero. GS q n [Name] Set error correcting grade of PDF417 [Format] ASCII Decimal [Range] 0≤ n≤8 [Description] Set error correcting grade of PDF417...
Page 64
Confidential MTP7632 Programming Manual [Range] 2 ≤ n ≤ 6 [Description] Set the horizontal size of the bar code. n specifies the bar code width as follows: Binary-level Bar Code Module Width (dots) for Thin element width Thick element Multi-level Bar Code...
Confidential MTP7632 Programming Manual 3. Chinese character control commands FS ! n [Name] Set print mode for Chinese character [Format] ASCII Decimal [Range] 0 ≤n ≤ 255 [Description] Set the print mode for Chinese character, using n as follows: Decimal...
Confidential MTP7632 Programming Manual character or not, then process the first byte and the second byte if the code is for Chinese. •When use Chinese GB18030 character set, the printer process the third and the forth byte if the Chinese character is forth-byte code.
Confidential MTP7632 Programming Manual FS S n1 n2 [Name] Set the right and left character spacing [Format] ASCII Decimal [Range] 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 255 [Description] Set the right spacing and the left spacing to n1 and n2 respectively.
Confidential MTP7632 Programming Manual FS W n [Name] Select/cancel quadruple-size mode of Chinese character [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Select/cancel quadruple-size mode of Chinese character . • When the LSB of n is 0, quadruple-size mode of Chinese character is turned off.
Confidential MTP7632 Programming Manual 4.Programming Instructions 4.1 General Information 1) The instructions are compiled to help users who use commands to control the printer quickly master the command set. 2) All programming examples are given in Hex. 3) Commands cited in the instructions are bolded and underlined. For instance, 1B 40. Data following the commands are not underlined.
Confidential MTP7632 Programming Manual 4.2.2 Paper supported Black mark paper is thermal sensitive paper on which black marks are published regularly. The black marks are referenced to set print area and cut position. Refer to relative user’s manual for detailed black mark requirements.
Confidential MTP7632 Programming Manual 4.3.2 Set printing and print data(character /barcode/bit image) 1) Set print area and print position Horizontal tab(09) Set horizontal absolute print position(1B 24) Set horizontal tab positions(1B 44) Select print direction in page mode(1B 54 n)...
Confidential MTP7632 Programming Manual 1D 2F 00 (print downloaded bit image) 1D 2F 01 (print download bit image) 1D 2F 02 (print downloaded bit image) 1D 2F 03 (print downloaded bit image) 1D 56 00 (cut paper) 4.3.3 Print and cut paper To print in line mode, use command 0A.
Confidential MTP7632 Programming Manual a) First confirm if the fourth byte is synchronous data and frontal three bytes is complied to grammar. b) Printer process status is transmitted depending on the third byte of printer return value. The lower four bits of third byte gives information on what process the printer is in and whether there are any errors.
Page 79
Confidential MTP7632 Programming Manual //Utility:Transform bmp format bit image into printer processable data // //Parameter:pBmpData---Pointer to source data nPixelsOfWidth----bit image width(in dots) nPixelsOfHeight---bit image height(in dots) pBmpDataRotated---Pinter to target data //Value return:1: data transformation ok. 0: parameter error. // //************************************************//...
Confidential MTP7632 Programming Manual FFFFFFC000000000FFFF818007000000FFFC03800F801C00FFC007000FC03E00FC000E000FC03 E0060000C000FC03E00000008000FC03E00040000000FC01C000C00000007C000001C0000000780 00001C00000007800000380000000F800000700000000F000000700000001F000000F80000003E000 000FE0000007C000000FF800000F8000000FFF80003F80000003FFFE00FF00000001FFFFFFFC000 000007FFFFFF8000000000FFFFFF00000000001FFFFC000000000001FFF80000000000000FE00000 000000003FC0000000000001FF0000000000780FFC0000000000FFFFF00000000000FFFFC0000000 0000FFFE000000000000FFF00000000000007F0000000000000000000000000000000000000000000 00000003F00000000000001FFC0000000000007FFE000000000001FFFE000000000007FFFE000000 00000FFFFE00000000001FE03E00000000003F001C000000000078001C0000000000F00038000000 0001C000380000000001C0007000000000038000E000000000030001CE00000000070007FE000000 0007003FFE000000000703FFFE00000000073FFFFE0000000007FFFFFC0000000007FFFFFC00000 00007FFFE18000000000FFFC038000000000FF80070000000000FC000E0000000000C0000C000000 0000000008000000000000000000000000000000000000000000020000000000000007000000000000 000F0000C0000000001E000FC0000000001C00FFC000000000380FFFC00000000070FFFFC000000 0007FFFFFC0000000007FFFFF0000000000FFFFF00000000000FFFF000000000000FFF0000000000 000FFC0000000000000F38000000000000007000000000000000E000000000000000C000FC0000000 001800FFE0000000003807FFE000000000303FFFE00000000071FFFFE0000000007FFFFFE000000 000FFFFF9C000000000FFFF818000000000FFFC03807C000000FFE00700FE000000FF000E01FF00 000070000C03FF80000000000C07FF800000000000078780000000003F0F01C000000003FF8E01C0 0000000FFFDC00C00000003FFFD800C00000007FFFF800C0000001FFFFF000C0000003FE07E000 C0000007F001E001C000000F8001C001C000001E000380038000001C00038007800000380007000F 80000070000E003F00000070001E01FF00000060007FFFFE000000E003FFFFFC000000E03FFFFFF 8000000E3FFFFFFF0000000FFFFFFFFC0000000FFFFFFFE00000000FFFFE00000000001FFFC000 000000001FFC0000000000003FC00000000000003C000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000 1D 23 00 (Select the number of the bit image to be printed)...
Page 82
Confidential MTP7632 Programming Manual 3) Check printer status after printing. If the ASB is enabled, the status is transmitted automatically. Telpar 800-872-4886 76 -...
Confidential MTP7632 Programming Manual Appendix C: Code 128 Bar Code A.1 Description of the CODE128 Bar Code In code 128 bar code system, it is possible to represent 128 ASCII characters, 2-digit numerals and some special characters in using one bar code character that is defined by combining one of code set A, code set B and code set C.
Page 95
Confidential MTP7632 Programming Manual A.2 Character Set Characters in Code Set A: Transmit data Transmit data Transmit data Character Character Character Decimal Decimal Decimal NULL FNC1 7B,31 123,49 FNC2 7B,32 123,50 FNC3 7B,33 123,51 FNC4 7B,34 123,52 123,83 < SHIFT...
Page 96
Confidential MTP7632 Programming Manual Transmit data Transmit data Transmit data Character Character Character Decimal Decimal Decimal " & 7B,7B 123,123 — FNC1 7B,31 123,49 FNC2 7B,32 123,50 FNC3 7B,33 123,51 FNC4 7B,34 123,52 SHIFT 7B,53 123,83 CODEA 7B,41 123,65 CODEC...
Page 97
Confidential MTP7632 Programming Manual Characters in Code Set C Transmit data Transmit data Transmit data Character Character Character Decimal Decimal Decimal FNC1 7B,31 123,49 123,65 CODEA 7B,41 CODEB 7B,42 123,66 Telpar 800-872-4886 91 -...