HPRT HM-E200 Programming Manual

HPRT HM-E200 Programming Manual

Hide thumbs Also See for HM-E200:

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HM-E200 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for HPRT HM-E200

  • Page 1 Mobile Printer HM-E200 Programming Manual Xiamen Hanin Electronic Technology Co.,Ltd. Room 305A,Angye Building, Pioneering Park, ADD: Torch High-tech Zone, Xiamen, China 361009 +86-(0)592-5885993 Tel.: +86-(0)592-5885992 Fax: Web: www.hprt.com...
  • Page 2 HM-E200 Programming Manual REVISION RECORDS REV. DATE DESCRIPTION Drawn Checked Approved 2016.12.23 —— Wu zhenrong Yang kaiqu Lin yang...
  • Page 3: Table Of Contents

    HM-E200 Programming Manual Table of Contents 1. Overview..................................1 1.2 Command notation............................1 1.1 Key terms................................. 1 HT..................................2 2. Printing command set..............................2 LF....................................2 FF....................................2 CAN..................................3 DLE EOT n................................3 ESC SP n..................................5 ESC ! n..................................5 ESC $ nL nH................................6 ESC % n...................................6...
  • Page 4 HM-E200 Programming Manual 3. Multi-byte code characters commands list....................... 35 FS! n..................................35 FS &..................................36 FS ..................................36 FS S n1 n2................................37 FS 2 c1 c2 d1...dk..............................37 FS W n.................................. 38 GS ( k pL p H cn fn n (cn = 48, fn = 65)......................38 GS ( k pL p H cn fn n (cn = 48, fn = 66)......................
  • Page 5: Overview

    HM-E200 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: Printing Command Set

    HM-E200 Programming Manual 2. Printing command set [Name] Horizontal tab [Format] ASCII Decimal [Dscription] 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 the next horizontal tab position exceeds the printing area, the printer sets the printing position to [printing area width + 1].
  • Page 7: Can

    HM-E200 Programming Manual [Name] Cancel print data in page mode [Format] ASCII Decimal [Description] Delete all the print data for the current print job in page mode. [Note] • This command is effective only in the page mode. • If the regional set up previously overlaped with the current area, the overlap will be deleted.
  • Page 8 HM-E200 Programming Manual 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 Printer normal status Printer abnormal status Default 0...
  • Page 9: Esc Sp N

    HM-E200 Programming Manual ESC SP n [Name] Set character spacing [Format] ASCII Decimal [Range] 0 ≤ n≤255 Sets the right-side character spacing to [n×0.125mm(n×0.0049 inch)]。 [Description] •When characters are enlarged, the character spacing is n times normal value. [Notes] • This command sets values independently in each mode (standard and page modes).
  • Page 10: Esc $ Nl Nh

    HM-E200 Programming Manual ESC $ nL nH [Name] Set absolute print position [Format] ASCII $ nL 24 nL nH Decimal 36 nL [Range] 0≤nL ≤ 255 0 ≤nH≤255 [Description] The distance from the beginning of the line to the print position is [(nL + nH ×256) ×0.125 mm].
  • Page 11: Esc * M Nl Nh D1

    HM-E200 Programming Manual • The user-defined character definition is cleared when: ①ESC ? is executed. ② The power is turned off. [Default] The internal character set [Example] ESC * m nL nH d1... dk [Name] Select bit-image mode [Format] ASCII m nL nH d1...dk...
  • Page 12 HM-E200 Programming Manual processed as normal one. • The number of horizontal direction is up to nL and nH, the total number is nL + nH × 256. • The part which bit-image is beyond the current area will be amputated.
  • Page 13 HM-E200 Programming Manual...
  • Page 14: Esc - N

    HM-E200 Programming Manual 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 underline mode is turn off...
  • Page 15: Esc = N

    HM-E200 Programming Manual ESC = n [Name] Select peripheral device [Format] ASCII Decimal [Range] 0≤n≤1 [Description] selects the device to which the host computer sends data, based on the value of n as follows: Decima Function Printer disabled. Printer enabled Undefined.
  • Page 16: Esc E N

    HM-E200 Programming Manual [Notes] If the value of n1 to nk are not from small to large,when back value are not big than front, pls stop setting. ESC E n [Name] Turn emphasized mode on/off [Format] ASCII 45 n Decimal...
  • Page 17: Esc M N

    HM-E200 Programming Manual ESC M n [Name] Select character font [Format] ASCII Decimal [Range] 0 ≤ n ≤ 9, 48 ≤ n ≤ 57 [Description] select character font Function 0, 48 Choose ASCII character font ( 12 * 24 )
  • Page 18: Esc T N

    HM-E200 Programming Manual ESC T n [Name] Select character font [Format] ASCII Decimal [Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51 [Description] Set the print direction and starting position in page mode specified by n as shown below:...
  • Page 19: Esc W Xl Xh Yl Yh Dxl Dxh Dyl Dyh

    HM-E200 Programming Manual ESC W xL xH yL yH dxL dxH dyL dyH [Name] Set printing area in page mode [Format] ASCII W xL xH yL yH dxL dxH dyL dyH 57 xL xH yL yH dxL dxH dyL dyH...
  • Page 20: Esc \ Nl Nh

    HM-E200 Programming Manual ESC \ nL nH [Name] Set relative horizontal print position [Format] ASCII Decimal [Range] 0 ≤ nl ≤ 255 0 ≤ nH ≤ 255 [Description] Sets the relative horizontal print starting position from the current position. This command sets the distance from the current position to [(nL + nH ×256)×...
  • Page 21: Esc D N

    HM-E200 Programming Manual ESC d n [Name] Print and feed n lines [Format] ASCII Decimal [Range] 0 ≤n ≤ 255 [Description] Prints the data in the print buffer and feeds n lines. [Notes] This command sets the print starting position to the beginning of the line.
  • Page 22: Esc V

    HM-E200 Programming Manual [ISO-8859-9(Turkish)] [PC864 (Arabic)] [PC856] [ISO8859-2 (Latin2)] [Note] • Only font 0 and font 1 have character code table and this command is ineffective with other fonts. [Default] Default character code table 437. ESC v [Name] Transmit printer status...
  • Page 23: Esc { N

    HM-E200 Programming Manual ESC { n [Name] Turn upside-down printing mode on/off [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.
  • Page 24: Fs Q N [Xl Xh Yl Yh D1

    HM-E200 Programming Manual  If the printing area width set by GS L and GS W for the NV bit image is less than one vertical line, the following processing is performed only on the line in question. However, in NV bit image mode, one vertical line means 1 dot in normal mode (m  0, 48) and in double-height mode (m ...
  • Page 25 HM-E200 Programming Manual bit image 01H, and the last data group [x d1...dk] is NV bit image n.The total agrees with the number of NV bit images specified by the command FS p. The definition data for an NV bit image consists of [x d1...dk].
  • Page 26: Gs ! N

    HM-E200 Programming Manual GS ! n [Name] Select character size [Format] ASCII 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 width...
  • Page 27: Gs $ Nl Nh

    HM-E200 Programming Manual orientation changes in 90 clockwise-rotation mode, the relationship between vertical and horizontal directions is reversed. In page mode, vertical and horizontal directions are based on the character orientation.  When characters are enlarged with different sizes on one line, all the characters on the line are aligned at the baseline.
  • Page 28: Gs * X Y D1

    HM-E200 Programming Manual GS * x y d1...d(x × y × 8) [Name] Define download bit image [Format] ASCII x y d1...d(x × y × 8) x y d1...d(x × y × 8) Decimal x y d1...d(x × y × 8) [Range] 1 ≤...
  • Page 29: Gs / M

    HM-E200 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. Vertical Dot Density (DPI)
  • Page 30: Gs H N

    HM-E200 Programming Manual 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.
  • Page 31: Gs W Nl Nh

    HM-E200 Programming Manual GS W nL nH [Name] Set printing area width [Format] ASCII nH Hex nL nH Decimal 29 [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Set printing area width using nL and nH.
  • Page 32: Gs A N

    HM-E200 Programming Manual GS a n [Name] Enable/disable Automatic Status Back (ASB) [Format] ASCII GS a n Hex 1D 61 n Decimal 29 97 n [Range] 0 ≤ n ≤ 255 [Default] n = 0 (when DIP switch or memory switch (BUSY condition) is off)
  • Page 33: ①Gs K M D1 D2

    HM-E200 Programming Manual ①GS k m d1 d2 … dk NUL ②GS k m n d1 d2 … dn [Name] Print bar code [Format] ASCII m d1 d2 … dk NUL ① m d1 d2 … dk 00 Decimal m d1 d2 … dk 0 ②...
  • Page 34: Gs V 0 M Xl Xh Yl Yh D1

    HM-E200 Programming Manual GS v 0 m xL xH yL yH d1..dk [Name] Print raster bit image [Format] ASCII m xL xH yL yH d1...dk m xL xH yL yH d1...dk Decimal m xL xH yL yH d1...dk [Range] 0 ≤ m ≤ 3, 48 ≤...
  • Page 35: Gs W N

    HM-E200 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 36 HM-E200 Programming Manual GS ‘ [Name] Print line section on a horizontal [Format] ASCII GS ‘ n x1sL x1sH x1eL x1eH … xnsL xnsH xneL xneH 1D 27 n x1sL x1sH x1eL x1eH … xnsL xnsH xneL xneH Decimal 29 39 n x1sL x1sH x1eL x1eH … xnsL xnsH xneL xneH [Range] 0 ≤...
  • Page 37 HM-E200 Programming Manual SendStr[3] = 30; SendStr[4] = 0; // Starting point SendStr[5] = 104; SendStr[6] = 1; // End point PrtSendData(SendStr,7); // Print curve SendStr[0] = 0x1D; SendStr[1] = 0x27; SendStr[2] = 3; // Three lines:X-axis, sin and cos function curve SendStr[3] = 180;...
  • Page 38 HM-E200 Programming Manual GS “ [Name] Print the words that on the curve [Format] ASCII GS “ n xL xH c1 c2 … NULL 1D 22 n xL xH c1 c2 … 00 Decimal 29 34 n xL xH c2 … 0 [Range] 0 ≤...
  • Page 39: Multi-Byte Code Characters Commands List

    HM-E200 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 40 HM-E200 Programming Manual FS & [Name] Select Kanji character mode [Format] ASCII & Decimal [Description] Selects Kanji character mode. [Notes] For Japanese Kanji model: This command is effective only when the JIS code system is selected. When the Kanji character mode is selected, the printer processes all Kanji code as two bytes each.
  • Page 41: Fs S N1 N2

    HM-E200 Programming Manual FS S n1 n2 [Name] Set left- and right-side Kanji character spacing [Format] ASCII Decimal [Range] 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 255 [Description] Sets left- and right-side Kanji character spacing to n1 and n2, respectively.
  • Page 42: Fs W N

    HM-E200 Programming Manual FS W n [Name] Turn quadruple-size mode on/off for Kanji characters [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turn quadruple-size mode on/off for Kanji characters When the LSB of n is 0, quadruple-size mode for Kanji characters is off.
  • Page 43: Gs ( K Pl P H Cn Fn N (Cn = 48, Fn = 66)

    HM-E200 Programming Manual GS ( k pL p H cn fn n (cn = 48, fn = 66) [Name] PDF417: Set the number of rows [Format] ASCII GS ( k p L p H cn fn n Hex 1D 28 6B p L p H cn fn n Decimal 29 40 107 p L p H cn fn n [Range] ( p L + p H ×...
  • Page 44: Gs ( K Pl P H Cn Fn M N (Cn = 48, Fn = 69)

    HM-E200 Programming Manual GS ( k pL p H cn fn m n (cn = 48, fn = 69) [Name] PDF417: Set the error correction level [Format] ASCII GS ( k p L p H cn fn m n Hex 1D 28 6B p L p H cn fn m n Decimal 29 40 107 p L p H cn fn m n [Range] ( p L + p H ×...
  • Page 45: Gs ( K Pl P H Cn Fn M (Cn = 48, Fn = 70)

    HM-E200 Programming Manual GS ( k pL p H cn fn m (cn = 48, fn = 70) [Name] PDF417: Select the options [Format] ASCII GS ( k p L p H cn fn m Hex 1D 28 6B p L p H cn fn m Decimal 29 40 107 p L p H cn fn m [Range] ( p L + p H ×...
  • Page 46: Gs ( K P L P H Cn Fn M (Cn = 48, Fn = 82)

    HM-E200 Programming Manual GS ( k p L p H cn fn m (cn = 48, fn = 82) [Name] PDF417: Transmit the size information of the symbol data in the symbol storage area [Format] ASCII GS ( k p L p H cn fn m...
  • Page 47: Gs ( K Pl Ph Cn Fn M D1

    HM-E200 Programming Manual GS ( k pL pH cn fn m d1…dk (cn = 49, fn = 80) [Name] QR Code: Store the data in the symbol storage area [Format] ASCII pL pH cn fn m d1…dk pL pH cn fn m d1…dk Decimal pL pH cn fn m d1…dk...
  • Page 48: Programming Process Guide

    HM-E200 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 49 HM-E200 Programming Manual...
  • Page 50 HM-E200 Programming Manual...
  • Page 51 HM-E200 Programming Manual...
  • Page 52: General Description

    HM-E200 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 the received print data and paper feed commands are processed in the specified memory, and the printer executes no operation.
  • Page 53 HM-E200 Programming Manual Example When printing a downloaded bit image of six bytes in the vertical direction, use the following formula: {number of vertical dots (8 ×6) - number of dots for feeding at the beginning of the printable area (24)} × vertical motion unit ( 203/203 ) = 24 Therefore, 24 dots are required for feeding.
  • Page 54 HM-E200 Programming Manual...

Table of Contents