HPRT TP80K Programming Manual

HPRT TP80K Programming Manual

Hide thumbs Also See for TP80K:
Table of Contents

Advertisement

Quick Links

TP80K
Programming Manual
Rev.1.0

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for HPRT TP80K

  • Page 1 TP80K Programming Manual Rev.1.0...
  • Page 2: About This Manual

    About This Manual Please read this technical manual before programming. Main description for command as below: 1) Function This is the first part of command description. Here we propose the command of ASCII code and its function. 2) Format This part describes the command with ASCII code format, HEX., format, and Decimal format. 3)...
  • Page 3: Table Of Contents

    TABLE OF CONTENTS About This Manual........................... i 1 Basic Setting Commands......................1 ESC @..................................1 GS P x y..................................1 ESC 2................................... 1 ESC 3 n..................................2 ESC S................................... 2 ESC L................................... 3 CAN.....................................3 2 Basic Print Commands......................... 4 LF....................................4 CR....................................4 FF....................................
  • Page 4 ESC V n..................................22 ESC { n..................................22 GS B n..................................23 ESC R n..................................23 ESC t n..................................24 5 Chinese Character Commands....................25 FS &..................................25 FS ..................................... 25 FS ! n..................................26 FS S n1 n2................................. 27 FS W n..................................28 FS - n..................................28 FS 2 c1 c2 d1 ...
  • Page 5 GS f n..................................60 GS h n..................................60 GS w n..................................61 ①GS k m d1 d2 … dk NUL ②GS k m n d1 d2 … dn....................62 10 State Query Commands......................65 ESC v..................................65 GS r n..................................66 DLE EOT n................................. 67 DLE ENQ n.................................69 GS a n..................................70 GS I n..................................
  • Page 6: Basic Setting Commands

    1 Basic Setting Commands 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 DIP switch and memory switch settings are not checked again. The data in the receive buffer is not cleared.
  • Page 7: Esc 3 N

    ESC 3 n [Name] Set line spacing. [Format] ASCII Decimal [Description] Sets the line spacing to [n × 0.125 mm]. [Notes] The line spacing can be set independently in standard mode and in page mode. [Reference] n =30 ESC S Select standard mode [Name] ASCII...
  • Page 8: Esc L

    ESC L [Name] Select page mode. [Format] ASCII Decimal [Description] Switches from standard mode to page mode. [Notes] This command is enabled only when processed at the beginning of a line in standard mode. This command has no effect in page mode. After printing by FF is completed or by using ESC S, the printer returns to standard mode.
  • Page 9: Basic Print Commands

    2 Basic Print Commands [Name] Print and line feed. [Format] ASCII Decimal [Description] Prints the data in the print buffer and feeds one line, based on the current line spacing. [Notes] This command sets the print position to the beginning of the line. When this command is processed in page mode, only the print position moves,and the printer does not perform actual printing.
  • Page 10: Esc Ff

    [Name] ➀ Print and return to standard mode in page mode ➁ Print and feed marked paper to print starting position [Format] ASCII Decimal ➀ When page mode is selected: [Description] Prints the data in the print buffer collectively and returns to standard mode [Notes] This command is enabled only in page mode.
  • Page 11: Esc J N

    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 12: Esc D N

    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. This command does not affect the line spacing set by ESC 2 or ESC 3.
  • Page 13: Print Position Commands

    3 Print Position Commands [Name] Horizontal tab [Format] ASCII Decimal [Description] 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 14: Esc D N1

    ESC D n1 ... Nk NUL [Name] Set horizontal tab position [Format] ASCII Nk...NUL 44 n1 Nk 00 Decimal 68 n1 Nk 0 [Range] 1 ≤ n ≤ 255 0 ≤ k ≤ 32 [Description] Sets horizontal tab positions • n specifies the column number for setting a horizontal tab position calculated from the beginning of the line.
  • Page 15: Esc $ Nl Nh

    ESC $ nL nH [Name] Set absolute print position [Format] ASCII 24 nL Decimal 36 nL [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Sets the distance from the beginning of the line to the position at which subsequent characters are to be printed.
  • Page 16: Gs L Nl Nh

    GS L nL nH Set left margin [Name] [Format] ASCII Decimal 0 ≤ nL ≤ 255 [Range] 0 ≤ nH ≤ 255 Sets the left margin using nL and nH. The left margin is set to [(nL + nH × 256) × 0.125 mm]. [Description] This command is effective only when processed at the beginning of the line in [Notes]...
  • Page 17: Esc A N

    ESC a n [Name] Set relative horizontal print position. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 248 ≤ n ≤ 50 [Description] Aligns all the data in one line to the specified position. n selects the justification as follows: Justification 0,48 Left justification...
  • Page 18: Gs T

    GS T [Name] Set print position to the beginning of print line [Format] ASCII Decimal [Range] n = 0, 1, 48, 49 [Default] None [Description] In standard mode, moves the print position to the beginning of the print line after performing the operation specified by n. Function 0, 48 Cancel data in the current print buffer...
  • Page 19: Esc W Xl Xh Yl Yh Dxl Dxh Dyl Dyh

    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 Decimal 87 xL xH yL yH dxL dxH dyL dyH [Range] 0 ≤...
  • Page 20: Esc T N

    ESC T n [Name] Select printing area direction in page mode. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 3 48 ≤ n ≤ 51 [Description] Select direction and initial position of printing area in page mode. n specifies the direction and initial position of printing area. Print Direction Initial Position 0,48...
  • Page 21: Gs $ Nl Nh

    GS $ nL nH [Name] Set absolute vertical print position in page mode. [Format] ASCII Decimal [Range] 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 [Description] Sets the absolute vertical print starting position to buffer character data in page mode.
  • Page 22: Gs \ Nl Nh

    GS \ nL nH [Name] Set relative vertical print position in page mode. [Format] ASCII Decimal [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Sets the relative vertical print starting position from the current position in page mode.
  • Page 23: Basic Character Commands

    4 Basic Character Commands ESC SP n [Name] Set the right spacing of character. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Default] n = 0 [Description] Set the right spacing of character as [n×0.125mm(n×0.0049 inch)]. [Notes] When characters are enlarged, the character spacing is n times normal value. This command sets values independently in each mode (standard and page modes).
  • Page 24: Esc M N

    ESC - can also turn on or off underline mode. However, the setting of the last received command is effective. GS ! can also select character size. However, the setting of the last received command is effective. [Default] ESC M n [Name] Select character font [Format]...
  • Page 25: Esc G N

    ESC G n [Name] Select double-strike mode [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turns double-strike mode on or off. • When the LSB of n is 0, the double-strike mode is off. • When the LSB of n is 1, the double-strike mode is on. [Notes] •...
  • Page 26: Gs ! N

    GS ! n [Name] Select character size. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 (0 ≤ vertical number of times ≤ 7, 0 ≤ horizontal number of times ≤ 7 ) [Description] Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 6, as follows: Off/On Decimal...
  • Page 27: Esc V N

    ESC V n [Name] Turn 90°clockwise rotation mode on/off. [Format] ASCII Decimal [Range] n = 0, 1, 48, 49 [Description] n=0, 48 Doesn’t rotate n=1,49 Rotate 90 degrees [Notes] It only support n=0, 1, 48, 49 This command is valid only in standard mode. In underline mode,underline can’t rotate 90 degrees clockwise.
  • Page 28: Gs B N

    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. When the LSB of n is 1, white/black reverse mode is turned on.
  • Page 29: Esc T N

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

    5 Chinese Character Commands FS & [Name] Select multi-byte character [Format] ASCII & Decimal [Description] Selects Korean character mode. [Notes] For Japanese Korean model: This command is effective only when the JIS code system is selected. When the Korean character mode is selected, the printer processes all Korean code as two bytes each.
  • Page 31: Fs ! N

    FS ! n [Name] Set multi-byte character [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Sets the print mode for Korean characters, using n as follows: Off/On Decimal Function Undefined. Undefined. Double-width mode is OFF. Double-width mode is ON. Double-width mode is OFF.
  • Page 32: Fs S N1 N2

    FS S n1 n2 [Name] Set Kanji character spacing [Format] ASCII Decimal [Range] 0 ≤ n1 ≤ 255; 0 ≤ n2 ≤ 255 [Description] Sets left- and right-side spacing of the multi-byte code character n1 and n2, respectively. • Set the left-side character spacing to [n1 × horizontal or vertical motion units].
  • Page 33: Fs W N

    FS W n [Name] Turn quadruple-size mode on/off for multi-byte character [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turn quadruple-size mode on/off for multi-byte character When the LSB of n is 0, quadruple-size mode for Korean characters is off. When the LSB of n is 1, quadruple-size mode for Korean characters is on.
  • Page 34: Fs 2 C1 C2 D1

    [Notes] The printer can underline all characters (including right- and left-side character spacing), but cannot underline the space set by HT and 90° clockwise-rotated characters. After the underline mode for Korean characters is turned off by setting n to 0, underline printing is no longer executed, but the previously specified underline thickness is not changed.
  • Page 35: Fs ? C1 C2

    FS ? c1 c2 [Name] Cancel user-defined characters [Format] ASCII 1C 3F c1 c2 Decimal 28 63 c1 c2 [Range] c1 and c2 indicates the code of defined characters. The range of c1 and c2 differs depending on the character code system used. Type of character Japanese (JIS code system) c1 = 77H...
  • Page 36: User-Defined Character Commands

    6 User-defined Character Commands 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)] y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] Decimal y c1 c2 [x1 d1...d(y ×...
  • Page 37: Esc % N

    ESC % n [Name] Select/cancel user-defined character set. [Format] ASCII Decimal [Range] 0 ≤ n ≤255 Selects or cancels the user-defined character set. [Description] • When the LSB of n is 0, the user-defined character set is canceled. • When the LSB of n is 1, the user-defined character set is selected. [Notes] •...
  • Page 38: Qr Code & Pdf417 Commands

    7 QR Code & PDF417 Commands GS ( k pL pH cn fn [parameters] [Name] Set up and print symbol [Description] • Processes the data for symbols. • pL, pH specify (pL + pH × 256) as the number of bytes after pH (cn, fn, and [parameters]).
  • Page 39: Function 065> Gs ( K Pl Ph Cn Fn N (Cn = 48, Fn = 65)

    <Function 065> GS ( k pL pH cn fn n (cn = 48, fn = 65) [Name] PDF417: Set the number of columns in the data region. [Format] ASCII k pL pH cn fn n 1D 28 6B 03 00 30 41 n Decimal 29 40 107 3...
  • Page 40: Function 067> Gs ( K Pl Ph Cn Fn N (Cn = 48, Fn = 67)

    <Function 067> GS ( k pL pH cn fn n (cn = 48, fn = 67) [Name] PDF417: Set the width of the module. [Format] ASCII GS ( k pL pH cn fn 1D 28 6B 03 00 30 43 n Decimal 29 40 107 3 48 67 n...
  • Page 41: Function 069> Gs ( K Pl Ph Cn Fn N (Cn = 48, Fn = 69)

    <Function 069> GS ( k pL pH cn fn n (cn = 48, fn = 69) [Name] PDF417: Set the error correction level [Format] ASCII pH cn 1D 28 6B 04 00 30 Decimal 29 40 107 4 [Range] (pL + pH × 256) = 4 (pL = 4, pH = 0) cn = 48 fn = 69 m = 48, 49...
  • Page 42: Function 070> Gs ( K Pl Ph Cn Fn M (Cn = 48, Fn = 70)

    <Function 070> GS ( k pL pH cn fn m (cn = 48, fn = 70) [Name] PDF417: Select the options [Format] ASCII GS ( pL pH cn fn m 1D 28 6B 03 00 30 46 m Decimal 29 40 107 3 0 48 70 m [Range] (pL + pH ×...
  • Page 43: Function 165> Gs ( K Pl Ph Cn Fn N1 N2 (Cn = 49, Fn = 65)

    <Function 165> GS ( k pL pH cn fn n1 n2 (cn = 49, fn = 65) [Name] QR Code: Select the model [Format] ASCII pL pH cn fn n1 n2 1D 28 6B pL pH cn fn n1 n2 Decimal 29 40 107 pL pH cn fn n1 n2 [Range]...
  • Page 44: Function 169> Gs ( K Pl Ph Cn Fn N (Cn = 49, Fn = 69)

    <Function 169> GS ( k pL pH cn fn n (cn = 49, fn = 69) [Name] QR Code: Select the error correction level [Format] ASCII pL pH cn fn n 1D 28 6B pL pH cn fn n Decimal 29 40 107 pL pH cn fn n [Range] (pL + pH ×...
  • Page 45: Function 181> Gs ( K Pl Ph Cn Fn M (Cn = 49, Fn = 81)

    <Function 181> 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 1D 28 6B pL pH cn fn m Decimal 29 40 107 pL pH cn fn m [Range]...
  • Page 46: Bit-Image Commands

    8 Bit-image Commands ESC * m nL nH d1... dk [Name] Select bit-image mode [Format] ASCII d1...dk d1...dk Decimal d1...dk [Range] m = 0, 1, 32, 33 0 ≤ nL ≤ 255 0 ≤ nH ≤ 3 0 ≤ d ≤255 [Description] Select a bit-image mode using m, bit-image dot is decided by nL and nH.
  • Page 47 /double-strike /underline /characters amplification /white / black reverse), except upside-down printing mode. the relationship between data and the point to be print as follows: Choosing 8-dot density: Choosing 24-dot density:...
  • Page 48: Fs Q N [Xl Xh Yl Yh D1

    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 n [xL xH yL yH d1...dk]...[ xL xH yL yH d1...dk] [Range]...
  • Page 49 order from NV bit image 01H. Therefore, the first data group [xL xH yL yH d1...dk] is NV bit image 01H, and the last data group [xL xH yL yH d1...dk] is NV bit image n.The total agrees with the number of NV bit images specified by the command FS p.
  • Page 50: Fs P N M

    FS p n m [Name] Print NV bit image [Format] ASCII Decimal 112 n [Range] 1 ≤ n ≤ 255 [Description] Prints NV bit image n using the mode specified by m. Mode Scaling for horizontal Scaling for vertical 0, 48 Normal 203dpi 203dpi...
  • Page 51: Gs * X Y D1

    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 ≤ x ≤ 72,1 ≤ y ≤ 48,0 ≤ d ≤ 255 ,x × y ≤ 1536 [Description] Defines a downloaded bit image using the number of dots specified by x and y.
  • Page 52: Gs / M

    GS / m [Name] Print downloaded bit image. [Format] ASCII Decimal [Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51 [Description] Print downloaded bit image and using the mode specified by m. Mode Vertical direction Horizontal direction 0,48 Normal 203dpi 203dpi...
  • Page 53: Gs V 0 M Xl Xh Yl Yh D1

    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 118 48 m xL xH yL yH d1...dk [Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51 0 ≤...
  • Page 54 GS ( L pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b <Function 67 > GS 8 L p1 p2 p3 p4 m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b [Name] Define the NV graphics data (raster format).
  • Page 55 • d specifies the defined data (raster format). • k indicates the number of the definition data. k is an explanation parameter; therefore it does not need to be transmitted. In cases where the specified key code already exists in memory, it will be ■...
  • Page 56 GS ( L pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b <Function 68> GS 8 L p1 p2 p3 p4 m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b [Name] Define the NV graphics data (column format).
  • Page 57 NV graphics indicate image data groups defined in the printer’s internal ■ non-volatile memory. Data definitions for NV graphics data created using this command are valid until redefined by this function or function 67. The functions used to define NV graphics data are this function and Function ■...
  • Page 58 GS ( L pL pH m fn a kc1 kc2 b xL xH yL [c d1...dk]1...[c d1...dk]b <Function 83 > GS 8 L p1 p2 p3 p4 m fn a kc1 kc2 b xL xH yL [c d1...dk]1...[c d1...dk]b Define the downloaded graphics data (raster format). [Name] kc1 kc2 b xL xH yL...
  • Page 59 ■ Downloaded graphics indicate image data groups defined in the printer’s internal volatile memory (RAM). Once the download graphics data have been defined, they are available until GS ( L <Function 83>, <Function 84> or ESC @ is executed. The download graphics data are lost when the power is turned off or the printer is reset.
  • Page 60 GS ( L pL pH m fn a bx by c xL xH yL yH d1...dk <Function 112> GS 8 L p1 p2 p3 p4 m fn a bx by c xL xH yL yH d1...dk Store the graphics data in the print buffer (raster format) [Name] ASCII GS (...
  • Page 61 ■ The functions used to store graphics data directly to the print buffer are this function and Function 113. Even with printer models that support both, it is recommended that only one of the functions be used for data definition tasks. •...
  • Page 62 GS ( L pL pH m fn a kc1 kc2 b xL xH yL [c d1...dk]1...[c d1...dk]b <Function 84> GS 8 L p1 p2 p3 p4 m fn a kc1 kc2 b xL xH yL [c d1...dk]1...[c d1...dk]b [Name] Define the downloaded graphics data (column format). kc1 kc2 b xL xH yL yH [c d1...dk]1...[c [Format] ASCII...
  • Page 63 ■ Downloaded graphics indicate image data groups defined in the printer’s internal volatile memory (RAM). Once the download graphics data have been defined, they are available until GS ( L <Function 83>, <Function 84> or ESC @ is executed. The download graphics data are lost when the power is turned off or the printer is reset.
  • Page 64: Bar-Code Commands

    9 Bar-code Commands 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. n selects the printing position as follows Printing position 0,48...
  • Page 65: Gs F N

    GS f n [Name] Select font for Human Readable Interpretation (HRI) characters [Format] ASCII Decimal n = 0, 1, 48, 49 [Range] [Description] Selects a font for the HRI characters used when printing a bar code. n selects a font from the following table: Font 0,48 Font ASCII 0(12 ×...
  • Page 66: Gs W N

    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: Module Width (mm) Binary-level Bar Code Thin Element Width...
  • Page 67: ①Gs K M D1 D2

    ①GS k m d1 d2 … dk NUL ②GS k m n d1 d2 … dn [Name] Print bar code [Format] ①ASCII d1...dk d1...dk Decimal d1...dk ②ASCII d1...dn d1...dn Decimal d1...dn [Range] ① 0 ≤ m ≤ 6 (k and d depend on the bar code system used) ②...
  • Page 68 [Notes for ①] This command ends with a NUL code. When the bar code system used is UPC-A or UPC-E, the printer prints the bar code data after receiving 12 bytes of bar code data and processes the following data as normal data. When the bar code system used is JAN13 (EAN13), the printer prints the bar code after receiving 13 bytes of bar code data and processes the following data as normal data.
  • Page 69 When CODE128 (m = 73) is used: When using CODE128 in this printer, take the following points into account for data transmission: ① The top of the bar code data string must be the code set selection character(CODE A, CODE B, or CODE C), which selects the first code set. ②...
  • Page 70: State Query Commands

    Be sure to keep spaces on both right and left sides of a bar code. (Spaces are different depending on the types of the bar code.) [Reference] GS H, GS f, GS h, GS w 10 State Query Commands ESC v Transmit printer status.
  • Page 71: Gs R N

    GS r n [Name] Transmit status [Format] ASCII Decimal [Range] n=1,49 [Description] Transmits the status. Function 1,49 Transmits paper sensor status. 2, 50 Transmits drawer kick-out connector status [Note] This command is only valid for serial printer. Since this command is executed after the data is processed in the receive buffer, there may be a time lag between data reception and status transmission.
  • Page 72: Dle Eot N

    DLE EOT n [Name] Transmit real-time status [Format] ASCII Decimal [Range] 1 ≤ n ≤ 4 [Description] Transmits the selected printer status specified by n in real-time, according to the following parameters: n = 1: Transmit printer status n = 2: Transmit offline status n = 3: Transmit error status n = 4: Transmit paper roll sensor status [Notes]...
  • Page 73 n=2:Printer status Decimal Function Not used. Fixed to Off. Not used. Fixed to On. Cover is closed. Cover is open. Paper is not being fed by the paper feed button. Paper is being fed by the paper feed button. Not used. Fixed to On. No paper-end stop.
  • Page 74: Dle Enq N

    DLE ENQ n [Name] Real-time request to printer [Format] ASCII Decimal [Range] 1 ≤n ≤2 [Description] Responds to a request from the host computer. n specifies the requests as follows: Request Recover from an error and restart printing from the line where the error occurred Recover from an error aft clearing the receive and print buffers [Note]...
  • Page 75: Gs A N

    GS a n [Function] Enable/disable Automatic Status Back (ASB) [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Default] n = 0 [when DIP switch [SW 2-1] is off.] [Description] •Enables or disables basic ASB (Automatic Status Back). (n)Bit Off/On Hex Decimal Function Drawer kick-out connector status disabled.
  • Page 76 • Second byte (printer information) Off/On Hex Decimal Status Reserved. Paper feed button is not pushed. Paper feed button is not pushed. Reserved. No auto cutter error. Auto cutter error occurred. Fixed No unrecoverable error Unrecoverable error occurred. No automatically recoverable error Automatically recoverable error occurred.
  • Page 77: Gs I N

    Fixed The information B that can be specified is as follows: Type of printer information Contents Firmware version Depends on firmware version Manufacturer “HPRT” Printer name CAPD347 Product ID Serial number [Note] When DTR/DSR control is selected in the serial interface model, the printer transmits only 1 byte after confirming that the host is ready to receive data (DSR signal is SPACE).
  • Page 78: Cutter Commands

    11 Cutter Commands ESC i [Name] Partial cut (one point left uncut) [Format] ASCII Decimal [Description] Printer executes cutting after receiving this command. ESC m [Name] Partial cut (three points left uncut) [Format] ASCII Decimal [Description] Printer executes cutting after receiving this command. <A>GS V m <B>GS V m n [Name]...
  • Page 79: Cash Drawer Command

    12 Cash Drawer Command ESC p m t1 t2 [Function] Generate pulse [Format] ASCII Decimal 112 m [Range] m = 0, 1, 48, 49 0 ≤ t1 ≤ 255 0 ≤ t2 ≤ 255 [Description] • Outputs the pulse specified by t1 and t2 to connector pin m. Connector pin 0, 48 Drawer kick-out connector pin 2.
  • Page 80 [Notes] •This function repeats integrated beeper control of [(t1 × 100 ms) beep/ (t2 × 100 ms) stop] c times. • If this command is newly processed during beeping of the buzzer, the current process for beeping the buzzer is stopped and the new process for beeping the buzzer is started •...
  • Page 81: Other Commands

    14 Other Commands GS ( A pL pH n m [Name] Execute the test printing [Format] ASCII 28 41 Decimal 40 65 [Range] ( pL+( pH × 256))=2 (pL=2, pH=0) 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 1 ≤...
  • Page 82: Esc C 4 N

    ESC c 4 n [Type] Paper sensor [Function] Selecting paper sensor to stop printing [Format] ASCII 63 34 Decimal 99 52 [Range] 0 ≤ n ≤ 255 [Default] n = 0 [Description] Select the paper sensor(s) whether to use to stop printing or not when a paper end is detected.
  • Page 83: Esc = N

    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: Decimal Function Printer disabled. Printer enabled Undefined.
  • Page 84: Dle Dc4 Fn A B (Fn=2)

    [Notes] This is a real-time command that the printer executes upon receiving it. Note the following when using this command. • If this command is embedded within the code string of another command, it is processed as a parameter of the other command, and the print result is not correct.
  • Page 85: Gs ^ R T M

    GS ^ r t m [Function] Execute macro [Format] ASCII r t m r t m Decimal r t m [Range] 1 ≤ r ≤ 255 0 ≤ t ≤ 255 m = 0, 1 [Description] Executes the macro that was defined with GS :. Operation Executes the macro r times continuously at an interval of [t ×...

Table of Contents