HPRT MLP2 Programming Manual

HPRT MLP2 Programming Manual

Mobile label printer

Advertisement

Quick Links

Mobile Label Printer
Xiamen Hanin Electronic Technology Co.,Ltd.
ADD:
Room 305A,Angye Building, Pioneering Park,
Torch High-tech Zone, Xiamen, China 361009
Tel.:
+86-(0)592-5885993
Fax:
+86-(0)592-5885992
Web:
www.hprt.com
Programming Manual
MLP2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MLP2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for HPRT MLP2

  • Page 1 Mobile Label Printer MLP2 Programming Manual Xiamen Hanin Electronic Technology Co.,Ltd. ADD: Room 305A,Angye Building, Pioneering Park, Torch High-tech Zone, Xiamen, China 361009 Tel.: +86-(0)592-5885993 Fax: +86-(0)592-5885992 Web: www.hprt.com...
  • Page 2 MLP2 Programming Manual REVISION RECORDS REV. DATE DESCRIPTION Drawn Checked Approved 2013.08.02 —— Chen weihua Lin yang Ren xiaowei 2014.04.02 1.Change orders:ESC t n Chen weihua Lin yang Ren xiaowei 1. Delete Command DLE ENQ n; 2. Delete Command ESC c 0 n;...
  • Page 3: Table Of Contents

    MLP2 Programming Manual Table of Contents 1. Overview..................................4 1.1 Key terms................................4 1.2 Command notation............................4 2、Printing command set...............................5 HT.................................... 5 LF..................................... 5 FF.....................................5 CR.................................... 5 CAN..................................6 DLE EOT n................................6 ESC FF..................................7 ESC SP n...................................9 ESC ! n..................................9 ESC $ nL nH................................
  • Page 4 MLP2 Programming Manual GS h n..................................32 ①GS k m d1 d2 … dk NUL②GS k m n d1 d2 … dn....................32 GS r n..................................33 GS v 0 m xL xH yL yH d1..dk..........................33 GS w n................................... 35 3、Multi-byte code characters commands list.......................36...
  • Page 5: Overview

    MLP2 Programming Manual 1. Overview 1.1 Key terms Real-time commands:These commands are act ed on immediately upon being received by the printer ; Page mode:Under this mode, the printer stores all data in a specified memory and thinks of this as a virtual page.
  • Page 6: 2、Printing Command Set

    MLP2 Programming Manual 2、Printing command set [Name] Horizontal tab [Format] ASCII Decimal [Dscription] Moves the print position to the next horizontal tab position. •This command is ignored unless the next horizontal tab position has been set. [Notes] • If the next horizontal tab position exceeds the printing area, the printer sets the printing position to [printing area width + 1].
  • Page 7: Can

    MLP2 Programming Manual [Description] When the command is allowed, it functions in the same way as LF; when it is not, the command is ignored. [Note] •Set the print position to the beginning of the line. •Whether the command is allowed or not only up to the factory defaults.
  • Page 8: Esc Ff

    MLP2 Programming Manual Printer normal status Printer abnormal status Default 0 n = 2 Printer status Decim Function Default 0 Default 1 Up cover closed Up cover open feed paper without push feed paper with push Default 1 Default 0...
  • Page 9 MLP2 Programming Manual [Description] Print all buffered data in the printable area collectively in page mode. [Note] 1) This command is enable only in page mode. www.hprt.com...
  • Page 10: Esc Sp N

    MLP2 Programming Manual 2) When using label paper, when this command is executed, label location is not executed. 3) The butter data, ESC T and ESC W set and character set are not deleted after printing. ESC SP n [Name]...
  • Page 11: Esc $ Nl Nh

    MLP2 Programming Manual • GS ! can also select character size. However, the setting of the last received command is effective. [Default] n = 0 ESC $ nL nH [Name] Set absolute print position [Format] ASCII $ nL 24 nL...
  • Page 12: Esc * M Nl Nh D1

    MLP2 Programming Manual • When x is less than 13, the user-defined character width by default into 13 points. • Set a corresponding bit to 1 to print a dot or 0 not to print a dot. • Can define up to 26 user-defined characters.
  • Page 13 MLP2 Programming Manual × × 24-dot double-density ( nL + nH 256) [Note] • If the value of m out of the specified range, nL and the subsequent data will be processed as normal one. • The number of horizontal direction is up to nL and nH, the total number is nL + nH × 256.
  • Page 14: Esc - N

    MLP2 Programming Manual Choosing 24-dot density: ESC - n [Name] Turn underline mode on /off [Format] ASCII Decimal [Range] 0≤ n ≤ 2 48 ≤ n ≤ 50 [Description] turn underline mode on/off, n value as follows: Function 0, 48...
  • Page 15: Esc 2

    MLP2 Programming Manual ESC 2 [Name] Set character line spacing for 30 [Format] ASCII Decimal [Description] Selects 3.875 mm (31 0.125 mm) line spacing. [Notes] The line spacing can be set independently in standard mode and in page mode. ESC 3 n...
  • Page 16: Esc

    MLP2 Programming Manual ESC @ [Name] Initialize printer [Format] ASCII Decimal [Description] Clears the data in the print buffer and resets the printer mode to the mode that was in effect when the power was turned on. [Notes] • The bit image has been downloaded and custom characters in RAM is not cleared.When the printer default is label paper, the print mode is page mode after...
  • Page 17: Esc J N

    MLP2 Programming Manual [Default] n = 0 ESC J n [Name] Print and feed paper [Format] ASCII Decimal [Range] 0 ≤n ≤ 255 [Description] Prints the data in the print buffer and feeds the paper [n×0.125 mm (0.0049”)]. [Notes] After printing is completed, this command sets the print starting position to the beginning of the line.
  • Page 18: Esc R N (It Just Allows To Use On Machines That Provide International Characters)

    MLP2 Programming Manual Function 0, 48 Choose ASCII character font ( 12 * 24 ) 1, 49 Choose ASCII character font ( 9 * 17 ) 2,50 Choose user-defined character 3, 51 Choose Chinese character font 3 ( 24 * 24 ) [Note] 1) ESC ! can set character font too, the command received at last is effective.
  • Page 19: Esc S

    MLP2 Programming Manual ESC S [Name] Select standard mode [Format] ASCII Decimal [Description] Switches from page mode to standard mode. [Note] 1) this command is effective only in page mode. 2) Data in print buffer is cleared. 3) This command sets the print position to the beginning of the line.
  • Page 20: Esc V N

    MLP2 Programming Manual ESC V n [Name] Turn 90° clockwise rotation mode on/off [Format] ASCII Decimal [Range] 0 ≤ n ≤ 1, 48 ≤ n ≤ 49 [Description] Set the print direction and starting position in page mode specified by n as shown bellow.
  • Page 21: Esc \ Nl Nh

    MLP2 Programming Manual •The default set of printing area width is horizontal printable width - horizontal starting position if the value of horizontal starting position + printing area width was beyond printable area. • The default set of printing area height is vertical printable height - vertical starting position if the value of vertical starting position + printing area height was beyond printable area.
  • Page 22: Esc D N

    MLP2 Programming Manual 1, 49 Centering 2, 50 Right justification [Notes] 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 This command justifies the space area according to HT, ESC $ or ESC \ .
  • Page 23: Esc T N

    MLP2 Programming Manual ESC t n [Name] Select character code table [Format] ASCII Decimal 0≤n≤5; 13≤n≤21;n=26; 32≤n≤34;n=36,37; 39≤n≤40; 45≤n≤52;54≤n≤66 [Range] [Description] Select character code table Character Code table Character Code table [PC437 (USA: Standard Europe)] [ISO8859-15 (Latin9)] [Katakana] [WPC1250] [PC850 (Multilingual)]...
  • Page 24: Esc V

    MLP2 Programming Manual ESC v [Name] Transmit printer status ASCII [Format] Decimal • This command is only effective with a serial interface printer to t ransmit printer [Description] status to host machine. • When the printer receive command, transfer a byte to the hardware.
  • Page 25: Fs P N M

    MLP2 Programming Manual FS p n m [Name] Print NV bit image [Format] ASCII Decimal 1 ≤ n ≤ 255 0 ≤ m ≤ 3 , 48 ≤ m ≤51 [Range] [Description] Prints NV bit image n using the mode specified by m.
  • Page 26: Fs Q N [Xl Xh Yl Yh D1

    MLP2 Programming Manual FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n [Name] Define NV bit image [Format] ASCII n [ xL xH yL yH d1...dk]...[ xL xH yL yH d1...dk] n [xL xH yL yH d1...dk]...[ xL xH yL yH d1...dk] Decimal 28 n [xL xH yL yH d1...dk]...[ xL xH yL yH d1...dk]...
  • Page 27: Gs Ff

    MLP2 Programming Manual Once an NV bit image is defined, it is not erased by performing ESC @, reset, and power off. This command performs only definition of an NV bit image and does not perform printing. Printing of the NV bit image is performed by the FS p command.
  • Page 28 MLP2 Programming Manual Off/On Hex Decimal Function Character height selection. See Table 2. Character width selection. See Table 1. Table 1 Character Width Selection Decimal Width 1 (normal) 2 (double-width) Table 2 Character Height Selection Hex Decimal Width 1 (normal)
  • Page 29: Gs $ Nl Nh

    MLP2 Programming Manual GS $ nL nH [Name] Set absolute vertical print position in page mode [Format] ASCII nL nH nL nH Decimal nL nH [Range] 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 [Description] • Set absolute vertical print position in page mode.
  • Page 30: Gs / M

    MLP2 Programming Manual GS / m [Name] print downloaded bit image [Format] ASCII Decimal [Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51 [Description] print a downloaded bit image using the mode specified by m, as follows. Mode...
  • Page 31: Gs B N

    MLP2 Programming Manual GS B n [Name] Turn white/black reverse printing mode [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turns on or off white/black reverse printing mode.  When the LSB of n is 0, white/black reverse mode is turned off.
  • Page 32: Gs W Nl Nh

    MLP2 Programming Manual  This command is effective only when processed at the beginning of the line in [Notes] standard mode. If this command is input in page mode, the printer performs only internal flag operations.  This command does not affect printing in page mode.
  • Page 33: Gs F N

    MLP2 Programming Manual 0 ≤ nH ≤ 255 [Description] move the vertical print starting position in page mode from the current position. • This command moves the vertical print starting position in page mode to [( nL + nH × 256) × 0.125mm] from the current position.
  • Page 34: Gs R N

    MLP2 Programming Manual Bar code Number of Remarks system characters 0,65 UPC-A 11,12 48-57 1,66 UPC-E 11,12 48-57 2,67 EAN13 12,13 48-57 3,68 EAN8 48-57 4,69 CODE39 >1 32,36,37,43,45-57,65-90 5,70 >1 even number 48-57 6,71 CODEBAR >1 36,43,45-58,65-68 7,72 CODE93 >1...
  • Page 35 MLP2 Programming Manual 0 ≤ xL ≤ 255 0 ≤ xH ≤ 255 0 ≤ yL ≤ 255 0 ≤ d ≤ 255 [Description] k = ( xL + xH × 256) × ( yL + yH × 256) ( k ≠ 0)
  • Page 36: Gs W N

    MLP2 Programming Manual GS w n [Name] Set bar code width [Format] ASCII Decimal [Range] 2 ≤ n ≤ 6 [Description] Sets the horizontal size of the bar code. n specifies the bar code width as follows: Binary-level Bar Code...
  • Page 37: 3、Multi-Byte Code Characters Commands List

    MLP2 Programming Manual 3、Multi-byte code characters commands list FS! n [Name] Set print mode(s) for Kanji characters [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Sets the print mode for Kanji characters, using n as follows: [Notes] When both double-width and double-height modes are set (including right-and left-side character spacing), quadruple-size characters are printed.
  • Page 38: Fs -N

    MLP2 Programming Manual Kanji character mode is not selected when the power is turned on. Using FS C, the Kanji character code system is selected. For Chinese/Taiwanese Kanji model: When The kanji character mode is selected, the printer checks whether the code is for Kanji or not;...
  • Page 39: Fs W N

    MLP2 Programming Manual [Range] 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 255 [Description] Sets left- and right-side Kanji character spacing to n1 and n2, respectively. The left-side character spacing is [n1 × 0.125 mm], and the right-side character spacing is [n2 ×...
  • Page 40: Esc O X X' Y Y' R R

    MLP2 Programming Manual 0≤hH<3 [Description] xL、xH Denote the low and high bytes on X coordinate of Left upper corner of the rectangle. yL、yH Denote the low and high bytes on Y coordinate of Left upper corner of the rectangle wL、wH Denote the low and high bytes on the rectangle width hL、hH Denote the low and high bytes on the rectangle height...
  • Page 41: Gs ( K Pl Ph Cn Fn N (Cn = 49, Fn = 67)

    MLP2 Programming Manual GS ( k pL pH cn fn n (cn = 49, fn = 67) [Name] QR Code: Set the size of module [Format] ASCII pL pH cn fn n pL pH cn fn n Decimal pL pH cn fn n [Range] (pL + pH ×...
  • Page 42: Gs ( K Pl Ph Cn Fn M (Cn = 49, Fn = 81)

    MLP2 Programming Manual GS ( k pL pH cn fn m (cn = 49, fn = 81) [Name] QR Code: Print the symbol data in the symbol storage area [Format] ASCII pL pH cn fn m pL pH cn fn m...
  • Page 43: 4、 Programming Process Guide

    MLP2 Programming Manual 4、 Programming Process Guide Because the different printing stat us and error can be transmitted by Auto Status Back (ASB) command, it is recommended that you can use ASB command to inquiry status. ASB command is effective when the printer is powered on and can be directly sent to inquiry the status.
  • Page 44 MLP2 Programming Manual www.hprt.com...
  • Page 45 MLP2 Programming Manual www.hprt.com...
  • Page 46 MLP2 Programming Manual www.hprt.com...
  • Page 47: B.1 General Description

    MLP2 Programming Manual B.1 General Description The printer operates in two print modes: standard mode and page mode. In standard mode, the printer prints and feeds paper each time it receives print data or paper feed commands. In page mode, all...
  • Page 48 MLP2 Programming Manual 3) If the print data (including character spacing) exceeds t he printable area before the printer receives a command (e.g., LF or ESC J ) that includes line feeding, a line feed is executed automatically within theprintable area. The print position, therefore, moves to the beginning of the next line.
  • Page 49 MLP2 Programming Manual www.hprt.com...

Table of Contents