Download Print this page

Advertisement

Quick Links

COMMANDS MANUAL
TG02H

Advertisement

loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Custom Audio Electronics TG02H

  • Page 1 COMMANDS MANUAL TG02H...
  • Page 2 CUSTOM S.p.A. GENERAL SAFETY INFORMATION THE CE MARK AFFIXED TO Your attention is drawn to the following THE PRODUCT CERTIFY Via Berettine 2/B actions that could compromise the char- THAT THE PRODUCT SAT- 43010 Fontevivo (PARMA) - Italy acteristics of the product: ISFIES THE BASIC SAFETY Tel.
  • Page 3 INTRODUCTION ESC/POS™ EMULATION...
  • Page 5 INTRODUCTION Each command reported in this manual is described as shown in the following picture. In the first heading field is reported the hexadecimal command value and the ASCII command value. In the second heading field reported the command func- tion.
  • Page 6 The fields shown in the scheme of the previous figure have the following meaning: [Format] ASCII, hexadecimal and decimal command value. [Range] Limits of the values the command and its variables can take [Description] Description of command function [Notes] Additional information about command use and settings . [Default] Default value of the command and its variables.
  • Page 7 ESC/POS™ EMULATION...
  • Page 8 COMMANDS LISTED IN ALPHANUMERIC ORDER 0x08 ......<BS>........48 0x09 .
  • Page 9 0x1B 0x52......<ESC R> ........37 0x1B 0x56.
  • Page 10 0x1D 0x3A ......<GS :> ........85 0x1D 0x42 .
  • Page 11 COMMANDS LISTED BY FUNCTION PRINT COMMANDS 0x0A ......<LF> ........16 Print and line feed 0x0D .
  • Page 12 0x1B 0x34......<ESC 4> ........32 Set/reset italic mode 0x1B 0x3F .
  • Page 13 0x1B 0x44......<ESC D> ........52 Set horizontal tab position 0x1B 0x57.
  • Page 14 0x1D 0x28 0x6B [fn 065] ....<GS (> ........72 Specify encoding scheme of QRcode barcode 0x1D 0x28 0x6B [fn 066] .
  • Page 15 0x1B 0xFA ..............91 Print graphic (384x682) 0x1B 0xFD .
  • Page 16 PRINT COMMANDS 0x0A <LF> Print and line feed Valid for TG02H [Format] ASCII Decimal [Range] [Description] Prints the data in the buffer and feeds one line based on the current line spacing. [Notes] • Sets the print position to the beginning of the line.
  • Page 17 0x0D <CR> Print and carriage return Valid for TG02H [Format] ASCII Decimal [Range] [Description] When autofeed is “CR enabled”, this command functions in the same way as 0x0A, otherwise it is disregarded. [Notes] Sets the print position to the beginning of the line.
  • Page 18 0x1B 0x4A <ESC J> Print and paper feed Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Prints the data in the print buffer and feeds the paper [ n * (vertical or horizontal motion unit)] inches.
  • Page 19 0x1B 0x64 <ESC d> Print and feed paper n lines Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Prints the data in the print buffer and feeds the paper n rows. [Notes] • n rows paper feed is equivalent to (n x char height + line spacing set).
  • Page 20 0x1B 0xFF Receive the graphic page from the communication port Valid for TG02H [Format] ASCII 0xFF Decimal [Range] n = 1, 2 0 ≤ nL nH ≤ 255 [Description] Receive [nL + (nH × 256)] word from the communication port and save them in the flash bank speci-...
  • Page 21 LINE SPACING COMMANDS 0x1B 0x30 <ESC 0> Select 1/8-inch line spacing Valid for TG02H [Format] ASCII Decimal [Range] [Description] Selects 1/8-inch line spacing. [Notes] [Default] [Reference] 0x1B 0x32, 0x1B 0x33 [Example] │ 21 ESC/POS™ emulation...
  • Page 22 0x1B 0x32 <ESC 2> Select 1/6-inch line spacing Valid for TG02H [Format] ASCII Decimal [Range] [Description] Selects 1/6-inch line spacing. [Notes] [Default] [Reference] 0x1B 0x30, 0x1B 0x33 [Example] 22 │ ESC/POS™ emulation...
  • Page 23 0x1B 0x33 <ESC 3> Set line spacing using minimum units Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Sets line spacing to [ n * (vertical or horizontal motion unit)] inches. [Notes] • The horizontal and vertical motion unit are specified by 0x1D 0x50. Changing the horizontal or vertical motion unit does not affect the current line spacing.
  • Page 24 CHARACTER COMMANDS 0x18 <CAN> Cancel current line transmitted Valid for TG02H [Format] ASCII Decimal [Range] [Description] Deletes current line transmitted. [Notes] • Sets the print position to the beginning of the line. • However, this command does not clear the receive buffer.
  • Page 25 0x1B 0x20 <ESC SP> Set right-side character spacing Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Sets the character spacing for the right side of the character to [n x horizontal or vertical motion units].
  • Page 26 0x1B 0x21 <ESC !> Set printing mode Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Selects printing mode using n (see tables below): 12/16 16/22 OFF/ON DECIMAL FUNCTION (default) Character font A 16 x 24...
  • Page 27 [Default] n = 0 [Reference] 0x1B 0x2D, 0x1B 0x45, 0x1D 0x21 [Example] │ 27 ESC/POS™ emulation...
  • Page 28 0x1B 0x25 <ESC %> Select/cancel user-defined character set Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Selects or cancels the user-defined character set. When the Least Significant Bit (LSB) of n is 0, the user-defined character set is cancelled.
  • Page 29 0x1B 0x26 <ESC &> Defines user-defined characters Valid for TG02H [Format] ASCII & Decimal [Range] y = 3 32 ≤ c1 ≤ c2 ≤ 126 0 ≤ x ≤ 16 (Font (18 x 24)) 0 ≤ x ≤ 13 (Font (13 x 24)) 0 ≤...
  • Page 30 [Example] 18 dots (11 cpi) 14 dots (15 cpi) 30 │ ESC/POS™ emulation...
  • Page 31 0x1B 0x2D <ESC -> Turn underline mode on/off Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 2 48 ≤ n ≤ 50 [Description] Turns underline mode on or off, based on the following values of n: n = 0, 48...
  • Page 32 0x1B 0x34 <ESC 4> Set/reset italic mode Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 1, 48 ≤ n ≤ 49 [Description] Turns italic mode on or off, based on the following values of n: FUNCTION 0, 48...
  • Page 33 0x1B 0x3F <ESC ?> Cancel user-defined characters Valid for TG02H [Format] ASCII Decimal [Range] 32 ≤ n ≤ 126 [Description] Cancels user-defined characters. [Notes] • This command cancels the pattern defined for the character code specified by n. • This command deletes the pattern defined for the specified character code in the font selected by 0x1B 0x21.
  • Page 34 0x1B 0x45 <ESC E> Turn emphasized mode on/off Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turns expanded mode on/off. • When the LSB of n is 0, the expanded mode is off. • When the LSB of n is 1, the expanded mode is on.
  • Page 35 0x1B 0x47 <ESC G> Turn double-strike mode on/off Valid for TG02H [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.
  • Page 36 0x1B 0x4D <ESC M> Select character font Valid for TG02H [Format] ASCII Decimal [Range] n = 0, 1, 48, 49 [Description] Selects characters font. FUNCTION 0, 48 Character font A selected 1, 49 Character font B selected [Notes] [Reference] 0x1B 0xC1 [Example] 36 │...
  • Page 37 0x1B 0x52 <ESC R> Select international character set Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 10 [Description] Select the international character set n according to the table below: CHARACTER SET U.S.A. France à ° ç §...
  • Page 38 0x1B 0x56 <ESC V> Set 90° rotated print mode Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 1 48 ≤ n ≤ 49 [Description] Turns 90° rotation mode on/off. n is used as follows: FUNCTION 0, 48 Disable 90°...
  • Page 39 0x1B 0x74 <ESC t> Select characters code table Valid for TG02H [Format] ASCII Decimal [Range] 1 ≤ n ≤ 53, n = 255 [Description] Select a page n from the character code table, as follows: PAGE PC437 - U.S.A., Standard Europe...
  • Page 40 PAGE ISO8859-2 - Latin 2 on request ISO8859-15 - Latin 9 on request PC1098 - Farci on request PC1118 - Lithuanian on request PC1119 - Lithuanian on request PC1125 - Ukranian on request WPC1250 - Latin 2 WPC1251 - Cyrillic WPC1253 - Greek WPC1254 - Turkish WPC1255 - Hebrew...
  • Page 41 0x1B 0x7B <ESC {> Set / cancel upside-down character printing Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turns upside-down printing mode on or off. • When the LSB of n is 0, the upside-down printing mode is off.
  • Page 42 0x1B 0xC1 Set/cancel cpi mode Valid for TG02H [Format] ASCII 0xC1 Decimal [Range] 0 ≤ n ≤ 2 48 ≤ n ≤ 50 [Description] Sets cpi mode based on the following values of n: FUNCTION Font A=12 cpi 0, 48...
  • Page 43 0x1C 0x25 <FS %> Select the font type Valid for TG02H [Format] ASCII Decimal [Range] n= 0, 1, 2 [Description] Select the font type. FONT TYPE International Chinese GB18030 Korean PC949 [Notes] • This command can be used only for the models with Extended Chinese (GB18030-2000) or Korean (PC949).
  • Page 44 0x1D 0x21 <GS !> Select character size Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 7 16 ≤ n ≤ 23 32 ≤ n ≤ 39 48 ≤ n ≤ 55 64 ≤ n ≤ 71 80 ≤ n ≤ 87 96 ≤...
  • Page 45 [Notes] • If n falls outside the defined range, this command is ignored. • 0x1B 0x21 can also be used to select character size. However, the setting of the last received com- mand is the effective one. [Default] n = 0 [Reference] 0x1B 0x21, 0x1B 0xC1 [Example]...
  • Page 46 0x1D 0x42 <GS B> Turn white/black reverse printing mode on/off Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turns white/black reverse printing mode on or off. • When the LSB of n is 0, white/black reverse printing is turned off.
  • Page 47 0x1D 0x59 <GS Y> Sets height in printing. Valid for TG02H [Format] ASCII Decimal [Description] Sets height during printing based on following values of n: PRINTING MODE height is set to 1 ≠ 0 height is set to 2 [Notes] When n ≠...
  • Page 48 PRINT POSITION COMMAND 0x08 <BS> Back space Valid for TG02H [Format] ASCII Decimal [Range] [Description] Moves print position to previous character. [Notes] • Can be used to put two characters at the same position. [Default] [Reference] [Example] 48 │ ESC/POS™ emulation...
  • Page 49 0x09 <HT> Horizontal tab Valid for TG02H [Format] ASCII Decimal [Range] [Description] Moves the print position to the next horizontal tab position. [Notes] • Ignored unless the next horizontal tab position has been set. • If the command is received when the printing position is at the right margin, the printer executes print buffer full printing and horizontal tab processing from the beginning of the next line.
  • Page 50 0x1B 0x24 <ESC $> Set absolute printing position Valid for TG02H [Format] ASCII Decimal [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 51 0x1B 0x28 0x76 <ESC (> Set relative vertical print position Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Sets the print vertical position based on the current position by using the horizontal or vertical motion unit.
  • Page 52 0x1B 0x44 <ESC D> Set horizontal tab position Valid for TG02H [Format] ASCII n1...nk n1...nk Decimal n1...nk [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 53 0x1B 0x57 <ESC W> Prints a graphic line Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Receives 48 byte from serial port and prints them in graphic mode. [Notes] When underline mode is turned on, the printer cannot underline 90° rotated characters. All the same it’s possible select the underline mode.
  • Page 54 0x1B 0x5C <ESC \> Set relative printing position Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Sets the print starting position based on the current position by using the horizontal or vertical motion unit.
  • Page 55 0x1B 0x61 <ESC a> Select justification Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 2 48 ≤ n ≤ 50 [Description] Aligns all data in one line to the specified position. n selects the type of justification as follows:...
  • Page 56 0x1D 0x4C <GS L> Set left margin Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ nL, nH ≤ 255 [Description] Sets the left margin. The left margin is set to [(nL + nH × 256) × (horizontal motion unit)] inches.
  • Page 57 0x1D 0x57 <GS W> Set printing area width Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ nL, nH ≤ 255 0 ≤ nL + nH × 256) ≤ 384 [Description] Sets the printing area width to the area specified by nL and nH.
  • Page 58 BIT IMAGE COMMANDS 0x1B 0x2A <ESC *> Select image print mode Valid for TG02H [Format] ASCII d1...dk d1...dk Decimal d1...dk [Range] m = 0, 1, 32, 33 0 ≤ nL ≤ 255 0 ≤ nH ≤ 3 0 ≤ d ≤ 255...
  • Page 59 • The relationship between the image data and the dots to be printed is as follows: 8-dot bit image 24-dot bit image Bit- Bit- image image data data Print data Print data [Default] [Reference] [Example] │ 59 ESC/POS™ emulation...
  • Page 60 0x1D 0x2A <GS *> Define downloaded bit image Valid for TG02H [Format] ASCII d1...d(x × y × 8) d1...d(x × y × 8) Decimal d1...d(x × y × 8) [Range] 1 ≤ x ≤ 255 1 ≤ y ≤ 48 x ×...
  • Page 61 0x1D 0x2F <GS /> Print dowloaded bit image Valid for TG02H [Format] ASCII Decimal [Range] [Description] Prints a downloaded bit image using the mode specified by m. m selects a mode from the table below: MODE 0,48 Normal 1, 49...
  • Page 62 STATUS COMMAND 0x10 0x04 <DLE EOT> Real-time status transmission Valid for TG02H [Format] ASCII Decimal [Range] 1 ≤ n ≤ 4 n = 17 n = 20 n = 21 [Description] Transmits the selected printer status specified by n in real time according to the following parameters:...
  • Page 63 Paper drag motor off Paper drag motor on RESERVED n=2: Off-line status OFF/ON DECIMAL FUNCTION Not used. Fixed to Off Not used. Fixed to On Cover closed Cover opened Paper isn’t feeded by FEED. key Paper is feeded by FEED. key Not used.
  • Page 64 n=4: Paper roll sensor status OFF/ON DECIMAL FUNCTION Not used. Fixed to Off Not used. Fixed to On Paper present.. Near paper end. Not used. Fixed to On Paper present 5, 6 Paper not present Not used. Fixed to Off n=17: Print status OFF/ON DECIMAL...
  • Page 65 RESERVED Paper present Near paper end RESERVED RESERVED RESERVED RESERVED RESERVED 4° byte = User status OFF/ON DECIMAL FUNCTION Cover closed Cover opened No spooling Spooling Drag paper motor off Drag paper motor on RESERVED LF key released LF key pressed FF key released FF key pressed RESERVED...
  • Page 66 Power supply voltage ok Power supply voltage error RESERVED Acknowledge command Not acknowledge command error RESERVED RESERVED 6° byte = Unrecoverable error status OFF/ON DECIMAL FUNCTION RESERVED Flash memory ok Flash memory error RESERVED RESERVED RESERVED RESERVED RESERVED RESERVED n=21: transmit printer ID 1°...
  • Page 67 0x1B 0x76 <ESC v> Transmit paper sensor status Valid for TG02H [Format] ASCII Decimal [Range] [Description] When this command is received, transmit the current status of the paper sensor. [Notes] This command is executed immediately, even when the data buffer is full (Busy). The status to be...
  • Page 68 0x1D 0x72 <GS r> Transmit status Valid for TG02H [Format] ASCII Decimal [Range] n = 1, 49 [Description] Transmit the status specified by n as follows: FUNCTION 1, 49 Transmit paper sensor status (as for 0x1B 0x76) Paper sensor status (n = 1, 49)
  • Page 69 0x1D 0xE3 Reading of length (cm) of printed paper Valid for TG02H [Format] ASCII 0xE3 Decimal [Range] [Description] Reading of length (cm) of printed paper. [Notes] The command return a string pointing out how much paper is printed, for example if the printer has print about 2515,5 m, it will be: ‘251550cm’.
  • Page 70 0x1D 0xE5 Reading number of power up Valid for TG02H [Format] ASCII 0xE5 Decimal [Range] [Description] Reading number of power up of the printer. [Notes] • The command return a string pointing out the number of turning on of the printer, for example if the printer is turned on 512 times, it will be: ‘512on’.
  • Page 71 BARCODE COMMANDS 0x1D 0x28 0x6B <GS (> Print two-dimensional barcode Valid for TG02H [Format] ASCII Decimal [Range] [Description] Processes the data concerning two-dimensional barcode. • Barcode type is specified by cn • Function is specified by fn FUNCTION Function 065...
  • Page 72 0x1D 0x28 0x6B [fn 065] <GS (> Specify encoding scheme of QRcode barcode Valid for TG02H [Format] ASCII Decimal [Range] (pL+pH × 256) = 3 (pL = 3, pH = 0) cn = 49 fn = 65 0 ≤ n ≤ 1 [Description] Specifies encoding type of QRcode barcode.
  • Page 73 0x1D 0x28 0x6B [fn 066] <GS (> Specify dot size of the module of the QRcode barcode Valid for TG02H [Format] ASCII Decimal [Range] (pL+pH × 256) = 3 (pL = 3, pH = 0) cn = 49 fn = 66 2 ≤...
  • Page 74 0x1D 0x28 0x6B [fn 067] <GS (> Specify QRcode barcode size Valid for TG02H [Format] ASCII Decimal [Range] (pL+pH × 256) = 3 (pL = 3, pH = 0) cn = 49 fn = 67 0 ≤ n ≤ 40...
  • Page 75 0x1D 0x28 0x6B [fn 069] <GS (> Specify the error correction level of the QRcode barcode Valid for TG02H [Format] ASCII Decimal [Range] (pL+pH × 256) = 3 (pL = 3, pH = 0) cn = 49 fn = 69 0 ≤...
  • Page 76 0x1D 0x28 0x6B [fn 080] <GS (> Store the QRcode barcode data in the barcode save area Valid for TG02H [Format] ASCII d1...dk d1...dk Decimal d1...dk [Range] cn = 49 fn = 80 m = 49 0 ≤ d ≤ 255 k = (pL + pH ×...
  • Page 77 0x1D 0x28 0x6B [fn 081] <GS (> Prints the QRcode barcode data Valid for TG02H [Format] ASCII Decimal [Range] (pL+pH × 256) = 3 (pL = 3, pH = 0) cn = 49 fn = 81 m = 49 [Description] Prints the QRcode barcode in the current position.
  • Page 78 0x1D 0x48 <GS H> Select printing position of Human Readable Interpretation (HRI) characters Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 3 48 ≤ n ≤ 51 [Description] Selects the printing position of HRI characters when printing barcodes. n selects the printing positions...
  • Page 79 0x1D 0x66 <GS f> Select font for HRI characters Valid for TG02H [Format] ASCII Decimal [Range] n = 0, 1, 48, 49 [Description] Selects a font for the HRI characters used when printing a barcode. n selects a font from the following...
  • Page 80 0x1D 0x68 <GS h> Set barcode height Valid for TG02H [Format] ASCII Decimal [Range] 1 ≤ n ≤ 255 [Description] Sets the height of the barcode. n specifies the number of vertical dots. [Notes] [Default] n = 162 ( 20.25 mm )
  • Page 81 0x1D 0x6B <GS k> Print barcode Valid for TG02H [Format 1] ASCII [d1..dk] [d1..dk] Decimal [d1..dk] [Format 2] ASCII [d1..dn] [d1..dn] Decimal [d1..dn] [Range] Format 1: 0 ≤ m ≤ 8 m = 20 Format 2: 65 ≤ m ≤73...
  • Page 82 Format 2: BARCODE NUMBER OF REMARKS SYSTEM CHARACTERS UPC-A 11≤ n ≤12 48≤ d ≤ 57 UPC-E 11≤ n ≤12 48≤ d ≤ 57 EAN13 ( JAN) 12≤ n ≤13 48≤ d ≤ 57 EAN8 ( JAN) 7≤ n ≤8 48≤...
  • Page 83 When CODE128 is used: • When using CODE128 in this printer, please note the following regarding data transmission: • The top part of the barcode data string must be a code set selection character (CODE A, CODE B or CODE C) which selects the first code set. •...
  • Page 84 0x1D 0x77 <GS w> Set barcode width Valid for TG02H [Format] ASCII Decimal [Range] 0x1 ≤ n ≤ 0x6 0x81 ≤ n ≤ 0x86 [Description] Sets the horizontal size of the barcode. n specifies the barcode width (referred to the narrow bar) as...
  • Page 85 MACRO FUNCTIONS 0x1D 0x3A <GS :> Set start/end of macro definition Valid for TG02H [Format] ASCII Decimal [Range] [Description] Starts or ends macro definition. [Notes] • Macro definition starts when this command is received during normal operation. • When 0x1D 0x5E is received during macro definition, the printer ends macro definition and clears all definitions.
  • Page 86 0x1D 0x5E <GS ^> Execute macro Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ r, t ≤ 255 0 ≤ m ≤ 1 [Description] Executes a macro. • r specifies the number of times to execute the macro. • t specifies the waiting time for executing the macro.
  • Page 87 MISCELLANEOUS COMMAND 0x1B 0x3D <ESC => Select peripherals device Valid for TG02H [Format] ASCII Decimal [Range] 1 ≤ n ≤ 3 [Description] Select the device to which the host computer sends data, using n as follows: n = 1, n = 3...
  • Page 88 0x1B 0x40 <ESC @> Initialize printer Valid for TG02H [Format] ASCII Decimal [Range] [Description] Clears the data in the print buffer and resets the printer mode to that in effect when power was turned [Notes] • The data in the receiver buffer is not cleared.
  • Page 89 0x1B 0x63 0x35 <ESC c> Enable/Disable front panel keys Valid for TG02H [Format] ASCII Decimal [Range] n = 0, 1 [Description] Enables/disables the keys of the front panel: FUNCTION Disables front panel keys Enables front panel keys [Notes] [Default] n = 1...
  • Page 90 0x1B 0x78 <ESC x> Selects speed/current mode Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 2 [Description] Selects printing speed/current mode. N selects the printing speed as follows: SPEED/CURRENT Low speed, low current Normal mode, medium current...
  • Page 91 0x1B 0xFA Print graphic (384x682) Valid for TG02H [Format] ASCII 0xFA Decimal [Range] 0 ≤ n ≤ 2 0 ≤ xH, xL, yH, yL ≤ 255 [Description] Prints graphic logo from flash or current graphic page located in ram. n selects the graphic source...
  • Page 92 0x1B 0xFD Receive graphic page from communication port Valid for TG02H [Format] ASCII 0xFD nL Decimal [Range] 0 ≤ nL, nH ≤ 255 [Description] Receives [nL + (nH × 256)] words from the port and puts them into the ram bank.
  • Page 93 0x1D 0x49 <GS I> Transmit printer ID Valid for TG02H [Format] ASCII Decimal [Range] 1 ≤ n ≤ 3 49 ≤ n ≤ 51 n = 255 [Description] Transmits the printer ID specified by n follows: PRINTER ID SPECIFICATION 1, 49...
  • Page 94 0x1D 0x50 <GS P> Set horizontal and vertical motion units Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ nL, nH ≤ 255 [Description] Sets the horizontal and vertical motion units to 1/x inch and 1/y inch respectively. When x is set to 0, the default setting value is used.
  • Page 95 0x1D 0x5A <GS Z> Receive n bytes from serial port Valid for TG02H [Format] ASCII Decimal [Description] Receives n bytes from serial port and prints them in graphic mode [Notes] Max value of n is 58. [Default] [Reference] [Example] │ 95...
  • Page 96 0x1D 0x7C Set printing density Valid for TG02H [Format] ASCII Decimal [Range] 0 ≤ n ≤ 8 48 ≤ n ≤ 56 [Description] Sets printing density. n specifies printing density as follows: PRINTING DENSITY 0, 48 - 50% 1, 49 - 37.5%...
  • Page 97 0x1D 0xF0 Set printing speed Valid for TG02H [Format] ASCII 0xF0 Decimal [Range] 0 ≤ n ≤ 2 [Description] Sets printing speed. n specifies the printing speed as follows: PRINTING SPEED High quality Normal High speed [Notes] Printing speed reverts to the default value when the printer is reset or turned off.
  • Page 98 98 │ ESC/POS™ emulation...
  • Page 100 CUSTOM S.p.A. World Headquarters Via Berettine, 2/B - 43010 Fontevivo, Parma ITALY Tel. +39 0521 680111 - Fax +39 0521 610701 info@custom.biz - www.custom.biz All rights reserved www.custom.biz...