Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PPTII-A and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for HPRT PPTII-A

  • Page 1 PPTII-A Programming Manual PPTII-A Programming Manual Xiamen Hanin Electronic Technology Co.Ltd. ADD: Room 305A,Angye Building,Pioneering Park, Torch High-tech Zone,Xiamen,China 361009 +86-(0)592-5885993 Tel.: Fax: +86-(0)592-5885992 Web: www.hprt.com www.hprt.com...
  • 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 3: Table Of Contents

    PPTII-A Programming Manual CONTENTS 1. Overview................................5 1.1 Key terms..............................5 1.2 Command Notation..........................5 2. Printing command set............................5 HT..................................6 LF..................................6 FF..................................6 CR..................................6 CAN................................. 7 DLE EOT n............................... 7 DLE ENQ n...............................7 ESC FF................................9 ESC SP n................................ 10 ESC ! n................................10 ESC $ nL nH..............................
  • 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................................
  • Page 5: Overview

    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.
  • Page 6: Printing Command Set

    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].
  • Page 7: Can

    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.
  • Page 9: Dle Enq N

    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...
  • Page 10: Esc Ff

    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.
  • Page 11: Esc $ Nl Nh

    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.
  • Page 12: Esc & Y C1 C2 [X1 D1

    PPTII-A Programming Manual ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] [Name] Define user-defined characters [Format] ASCII & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] 26 y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] Decimal 27 38 y c1 c2 [x1 d1...d(y ×...
  • Page 13: Esc * M Nl Nh D1

    PPTII-A Programming Manual ESC * m nL nH d1... dk [Name] Select bit-image mode [Format] ASCII m nL nH d1...dk m nL nH d1...dk Decimal m nL nH d1...dk [Range] m = 0, 1, 32, 33 0 ≤ nL ≤ 255 0 ≤...
  • Page 14: Esc - N

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

    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.
  • Page 16: Esc ? N

    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.
  • Page 17: Esc G N

    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.
  • Page 18: Esc M N

    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 { ④...
  • Page 19: Esc S

    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.
  • Page 20: Esc V N

    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.
  • Page 21: Esc \ Nl Nh

    PPTII-A Programming Manual [Default] xL = xH = yL = yH = 0 dxL, dxH, dyL and dyH decided by printer settings ESC \ nL nH [Name] Set relative horizontal print position [Format] ASCII ESC \ nL nH nL nH...
  • Page 22: Esc C 0 N

    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.
  • Page 23: Esc P

    PPTII-A Programming Manual ESC p [Name] Generate pulse [Format] ASCII ESC p m t1 t2 Hex 1B 70 m t1 t2 Decimal 27 112m t1 t2 [Range] m= 0, 1, 48, 49 0 ≤ t1 ≤255 0 ≤ t2 ≤ 255...
  • Page 24: Esc V

    PPTII-A Programming Manual Character Code table Character Code table [ISO-8859-5(Cyrillic)] [PC720] [ISO-8859-6(Arabic)] [WPC775] [ISO-8859-8(Hebrew)] [PC855 (Cyrillic)] [ISO-8859-9(Turkish)] [PC862 (Hebrew)] [PC856] [PC864 (Arabic)] [ISO8859-2 (Latin2)] [ISO8859-15 (Latin9)] [Notes] Page0/Page2/Page3/Page4/Page5/Page14/Page17/Page18/Page19/Page20/Page21/Pa ge26/Page32/Page37/Page47/Page50 supports both 12 x 24 fonts and 9 x 17 fonts.
  • Page 25: Esc { N

    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.
  • Page 26: Fs Q N [Xl Xh Yl Yh D1

    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.
  • Page 28: Gs Ff

    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.
  • Page 29: Gs $ Nl Nh

    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.
  • Page 30: Gs * X Y D1

    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.
  • Page 31: Gs / M

    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.
  • Page 32: Gs B N

    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.
  • Page 33: Gs L Nl Nh

    PPTII-A Programming Manual GS L nL nH [Name] Set left margin [Format] ASCII nL nH nL nH Decimal 29 nL nH [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Dscription] Sets the left margin using nL and nH.
  • Page 34: Gs \ Nl Nh

    PPTII-A Programming Manual GS \ nL nH [Name] Set relative vertical print position in page mode [Format] ASCII nL nH nL nH Decimal 29 nL nH [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Dscription] move the vertical print starting position in page mode from the current position.
  • Page 35: Gs R N

    PPTII-A Programming Manual [Dscription] m:bar code type n:bar code length Number of Bar code system Remarks 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...
  • Page 36: Gs V 0 M Xl Xh Yl Yh D1

    PPTII-A 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 30 m xL xH yL yH d1...dk Decimal 29 118 m xL xH yL yH d1...dk [Range] 0 ≤...
  • Page 37: Gs W N

    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...
  • Page 38: Multi-Byte Code Characters Commands List

    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.
  • Page 39: Fs -N

    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.
  • Page 40: Fs S N1 N2

    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.
  • Page 41: Fs W N

    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.
  • Page 42: Esc O X X' Y Y' R R

    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 .
  • Page 43: Gs ( K Pl Ph Cn Fn N (Cn = 49, Fn = 67)

    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...
  • Page 44: Gs ( K Pl Ph Cn Fn M (Cn = 49, Fn = 81)

    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...
  • Page 45: Programming Process Guide

    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.
  • Page 46: Appendix

    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: ·...
  • Page 47 PPTII-A Programming Manual www.hprt.com...
  • Page 48 PPTII-A Programming Manual www.hprt.com...
  • Page 49 PPTII-A Programming Manual www.hprt.com...
  • Page 50: General Description

    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.
  • Page 52 PPTII-A Programming Manual www.hprt.com...

Table of Contents