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.
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].
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...
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).
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].
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.
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...
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.
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...
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 )
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:...
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)×...
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.
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...
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.
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].
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...
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.
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 ≤...
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)
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.
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)
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 ②...
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 ≤...
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.
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.
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.
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 ×...
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 ×...
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 ×...
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...
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...
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.
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.
Need help?
Do you have a question about the HM-E200 and is the answer not in the manual?
Questions and answers