Page 2
PPTII-A Programming Manual REVISION RECORDS Rev. Date Description Drawn Checked Approved 2014.02.17 —— Chen Weihua Lin Yang Ren Xiaowei 2014.07.30 1.change orders(ESC M n\ESC t n) Chen Weihua Yang Kaiqu Ren Xiaowei www.hprt.com...
Page 4
PPTII-A Programming Manual GS B n................................31 GS H n................................32 GS L nL nH..............................32 GS W nL nH..............................33 GS \ nL nH..............................33 GS f n................................34 GS h n................................34 ①GS k m d1 d2 … dk NUL ②GS k m n d1 d2 … dn.................. 34 GS r n................................
PPTII-A Programming Manual 1. Overview 1.1 Key terms Real-time These commands are act ed on immediately upon being received by the commands: printer ; Page mode: Under this mode, the printer stores all data in a specified memory and thinks of this as a virtual page.
PPTII-A Programming Manual 2.Printing command set [Name] Horizontal tab [Format] ASCII Decimal Moves the print position to the next horizontal tab position. [Dscription] •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].
PPTII-A Programming Manual [Name] Print and carriage return [Format] ASCII Decimal [Dscription] When the command is allowed, it functions in the same way as LF; when it is not, the command is ignored. [Notes] •Set the print position to the beginning of the line.
Page 8
PPTII-A Programming Manual [Dscription] • With a parallel interface model, this command cannot be executed when the printer is busy. This command is executed even when the printer is offline or in error status, when Memory Switch 1-3 is on with a parallel interface model.
PPTII-A Programming Manual [Dscription] n = 3 Printer status Decimal Function Not used. Fixed to Off. Not used. Fixed to On Reserved Reserved Reserved Reserved Not used. Fixed to On Reserved Reserved Reserved Reserved Not used. Fixed to Off n = 4 Printer status...
PPTII-A Programming Manual ESC FF [Name] Print data in the page mode [Format] ASCII Decimal Print all buffered data in the printable area collectively in page mode. [Dscription] [Notes] 1) This command is enable only in page mode. 2) When using label paper, when this command is executed, label location is not executed.
PPTII-A Programming Manual [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 clockwise rotated characters. • The thickness of the underline is that selected by ESC , regardless of the character size.
PPTII-A Programming Manual [Notes] 3) When underline mode is off, there is no underline for following characters. Underline width stays the same, default width: one dot width. 4) Character size change has no effects on underline width. 5) Turn underline mode on / off can be set by ESC !, the command executed at last is effective.
PPTII-A Programming Manual ESC ? n [Name] Cancel user-defined characters [Format] ASCII ESC ? Decimal [Dscription] Cancels user-defined characters. [Notes] This command cancels the patterns defined for the character codes specified by n. After the user-defined characters are canceled, the corresponding patterns for the internal characters are printed.
PPTII-A Programming Manual ESC G n [Name] Turn on/off double-strike mode [Format] ASCII ESC G n 47 n Decimal 71 n [Range] 0 ≤ n ≤ 255 [Dscription] Turns double-strike mode on or off. •When the LSB of n is 0, double-strike mode is turned off.
PPTII-A Programming Manual [Notes] Only valve settings is possible for the following commands in page mode; these commands are not executed. ① Turn 90 clockwise rotation mode on/off: ESC V ② Select justification: ESC a ③ Turn upside-down printing mode on/off: ESC { ④...
PPTII-A Programming Manual ESC S [Name] Select standard mode [Format] ASCII Decimal Switches from page mode to standard mode. [Dscription] [Notes] 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.
PPTII-A Programming Manual ESC V n [Name] Turn 90° clockwise rotation mode on/off [Format] ASCII Decimal [Range] 0 ≤ n ≤ 1, 48 ≤ n ≤ 49 [Dscription] Set the print direction and starting position in page mode specified by n as shown bellow.
PPTII-A Programming Manual [Example] ESC c 0 n [Name] Select paper type [Format] ASCII Decimal [Range] 0≤n≤2 [Dscription] Select paper type, the type of paper using n: paper type receipt paper label paper label paper [Notes] • This command using to select paper type.
PPTII-A Programming Manual ESC { n [Name] Turn upside-down printing mode on/off [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] [Dscription] Turns upside-down printing mode on or off. • When the LSB of n is 0, upside-down printing mode is turned off.
PPTII-A Programming Manual [Notes] NV bit image is a bit image defined in non-volatile memory by FS q and printed by FS p. This command is not effective when the specified NV bit image has not been defined. In standard mode, this command is effective only when there is no data in the print buffer.
Page 27
PPTII-A Programming Manual [Notes] In standard mode, this command is effective only when processed at the beginning of the line. This command is effective when 7 bytes <FS yH> of the command are processed normally. When the amount of data exceeds the capacity left in the range defined by xL, xH, yL, yH, the printer processes xL, xH, yL, yH out of the defined range.
PPTII-A Programming Manual GS FF [Name] Marking paper locating [Format] ASCII Decimal 29 [Dscription] Marking paper locating to the print starting position. [Notes] • This command is effective only when paper type is marking paper. • This command is ignored when using receipt paper.
PPTII-A Programming Manual [Notes] This command is effective for all characters (alphanumeric and Kanji), except for HRI characters . • If n is 0 to 3 beyond the specified range, the horizontal magnification is set to 6 times. If n is 4 to 7 beyond the specified range, the horizontal magnification is set to 6 times.
PPTII-A Programming Manual m determine printing content printing content 1, 49 hexadecimal(dump)printing 2, 50 printer configuration infos printing 3, 51 reserve 4,52 start paper check out 5,53 reserve [Notes] • This command is effective at the beginning of the line in standard mode.
PPTII-A Programming Manual GS / m [Name] print downloaded bit image [Format] ASCII Decimal 29 0 ≤ m ≤ 3, 48 ≤ m ≤ 51 [Range] [Dscription] print a downloaded bit image using the mode specified by m, as follows.
PPTII-A Programming Manual GS B n [Name] Turn white/black reverse printing mode [Format] ASCII Decimal 29 [Range] 0 ≤ n ≤ 255 [Dscription] Turns on or off white/black reverse printing mode. When the LSB of n is 0, white/black reverse mode is turned off.
PPTII-A Programming Manual GS w n [Name] Set bar code width [Format] ASCII Decimal 29 [Dscription] Sets the horizontal size of the bar code. n specifies the bar code width as follows: Binary-level Bar Code Module Width (mm) Thin Element Width...
PPTII-A 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 [Dscription] 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.
PPTII-A Programming Manual FS & [Name] Select Kanji character mode [Format] ASCII & Decimal Selects Kanji character mode. [Dscription] [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.
PPTII-A Programming Manual FS . [Name] Cancel Kanji character mode [Format] ASCII Decimal 28 [Dscription] Cancels 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 not selected, all character codes are processed one byte at a time as ASCII code.
PPTII-A Programming Manual FS W n [Name] Turn quadruple-size mode on/off for Kanji characters [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Dscription] Turn quadruple-size mode on/off for Kanji characters When the LSB of n is 0, quadruple-size mode for Kanji characters is off.
PPTII-A Programming Manual ESC o x x’ y y’ r r’ [Name] Circle [Format] ASCII x’ y’ r’ Decimal 27 [Range] 0≤xH≤1 0≤yH≤1 0≤rH≤1 [Dscription] xL、xH Denote the low and high bytes on X coordinate of Origin point . yh、yH Denote the low and high bytes on Y coordinate of Origin point .
PPTII-A 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 28 6B pL pH cn fn n Decimal...
PPTII-A 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...
PPTII-A 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.
PPTII-A Programming Manual Appendix Appendix A: Code128 Bar Code A.1 Description of th e CODE128 Bar Code In CODE128 bar code system, it is possible to represent 128 ASCII characters, the one hundred numbers from 00 to 99 and some special characters with three code sets: A, B and C. Each code set is used for representing the following characters: ·...
PPTII-A 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 proce ssed in the specified memory, and the printer executes no operation.
Page 51
PPTII-A Programming Manual 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 PPTII-A and is the answer not in the manual?
Questions and answers