background image

COMMANDS MANUAL

TG02H

Содержание TG02H

Страница 1: ...COMMANDS MANUAL TG02H ...

Страница 2: ...e is an easily acces sible outlet with a capacity of no less than 10A closely to where the device is to be installed Periodically perform scheduled mainte nance on the device to avoid dirt build up that could compromise the correct safe operation of the unit Before any type of work is done on the machine disconnect the power supply Do not touch the head heating line with bare hands or metal object...

Страница 3: ...ESC POS EMULATION INTRODUCTION ...

Страница 4: ......

Страница 5: ...mand functions in the same way as 0x0A otherwise it is disregarded Notes This command sets the print position to the beginning of the line AAAA BBBB This command sets the print position to the beginning of the line CCCC This command is immediately executed even when the data buffer is full This status is transmitted whenever data sequence is received Default Reference 0x0A Example 0x0D CR Informat...

Страница 6: ...nformation about command use and settings Default Default value of the command and its variables Reference Pertaining commands related to described command Example Example of using the command Listed below are the meanings of some of symbols that may be found in the command description 0x indicates the representation of the command hexadecimal value for example 0x40 means HEX 40 n m t x y are opti...

Страница 7: ...ESC POS emulation ...

Страница 8: ...6 0x1B 0x24 ESC 50 0x1B 0x25 ESC 28 0x1B 0x26 ESC 29 0x1B 0x28 0x76 ESC 51 0x1B 0x2A ESC 58 0x1B 0x2D ESC 31 0x1B 0x30 ESC 0 21 0x1B 0x32 ESC 2 22 0x1B 0x33 ESC 3 23 0x1B 0x34 ESC 4 32 0x1B 0x3D ESC 87 0x1B 0x3F ESC 33 0x1B 0x40 ESC 88 0x1B 0x44 ESC D 52 0x1B 0x45 ESC E 34 0x1B 0x47 ESC G 35 0x1B 0x4A ESC J 18 0x1B 0x4D ESC M 36 8 ESC POS emulation ...

Страница 9: ...SC v 67 0x1B 0x78 ESC x 90 0x1B 0x7B ESC 41 0x1B 0xC1 42 0x1B 0xFA 91 0x1B 0xFD 92 0x1B 0xFF 20 0x1C 0x25 FS 43 0x1D 0x21 GS 44 0x1D 0x28 0x6B GS 71 0x1D 0x28 0x6B fn 065 GS 72 0x1D 0x28 0x6B fn 066 GS 73 0x1D 0x28 0x6B fn 067 GS 74 0x1D 0x28 0x6B fn 069 GS 75 0x1D 0x28 0x6B fn 080 GS 76 0x1D 0x28 0x6B fn 081 GS 77 0x1D 0x2A GS 60 0x1D 0x2F GS 61 ESC POS emulation 9 ...

Страница 10: ...3 0x1D 0x4C GS L 56 0x1D 0x50 GS P 94 0x1D 0x57 GS W 57 0x1D 0x59 GS Y 47 0x1D 0x5A GS Z 95 0x1D 0x5E GS 86 0x1D 0x66 GS f 79 0x1D 0x68 GS h 80 0x1D 0x6B GS k 81 0x1D 0x72 GS r 68 0x1D 0x77 GS w 84 0x1D 0x7C 96 0x1D 0xE3 69 0x1D 0xE5 70 0x1D 0xF0 97 10 ESC POS emulation ...

Страница 11: ...MMANDS 0x1B 0x30 ESC 0 21 Select 1 8 inch line spacing 0x1B 0x32 ESC 2 22 Select 1 6 inch line spacing 0x1B 0x33 ESC 3 23 Set line spacing using minimum units CHARACTER COMMANDS 0x18 CAN 24 Cancel current line transmitted 0x1B 0x20 ESC SP 25 Set right side character spacing 0x1B 0x21 ESC 26 Set printing mode 0x1B 0x25 ESC 28 Select cancel user defined character set 0x1B 0x26 ESC 29 Defines user de...

Страница 12: ...ode 0x1B 0x74 ESC t 39 Select characters code table 0x1B 0x7B ESC 41 Set cancel upside down character printing 0x1B 0xC1 42 Set cancel cpi mode 0x1C 0x25 FS 43 Select the font type 0x1D 0x21 GS 44 Select character size 0x1D 0x42 GS B 46 Turn white black reverse printing mode on off 0x1D 0x59 GS Y 47 Sets height in printing PRINT POSITION COMMAND 0x08 BS 48 Back space 0x09 HT 49 Horizontal tab 0x1B...

Страница 13: ...COMMANDS 0x1B 0x2A ESC 58 Select image print mode 0x1D 0x2A GS 60 Define downloaded bit image 0x1D 0x2F GS 61 Print dowloaded bit image STATUS COMMAND 0x10 0x04 DLE EOT 62 Real time status transmission 0x1B 0x76 ESC v 67 Transmit paper sensor status 0x1D 0x72 GS r 68 Transmit status 0x1D 0xE3 69 Reading of length cm of printed paper 0x1D 0xE5 70 Reading number of power up BARCODE COMMANDS 0x1D 0x2...

Страница 14: ...S 77 Prints the QRcode barcode data 0x1D 0x48 GS H 78 Select printing position of Human Readable Interpretation HRI characters 0x1D 0x66 GS f 79 Select font for HRI characters 0x1D 0x68 GS h 80 Set barcode height 0x1D 0x6B GS k 81 Print barcode 0x1D 0x77 GS w 84 Set barcode width MACRO FUNCTIONS 0x1D 0x3A GS 85 Set start end of macro definition 0x1D 0x5E GS 86 Execute macro MISCELLANEOUS COMMAND 0...

Страница 15: ... page from communication port 0x1D 0x49 GS I 93 Transmit printer ID 0x1D 0x50 GS P 94 Set horizontal and vertical motion units 0x1D 0x5A GS Z 95 Receive n bytes from serial port 0x1D 0x7C 96 Set printing density 0x1D 0xF0 97 Set printing speed ESC POS emulation 15 ...

Страница 16: ...on 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 If the buffer is empty the printing feeds of character height spacing gap dot default 32 dot Default Reference 0x1B 0x32 0x1B 0x33 0x0D Example 16 ESC POS emulation ...

Страница 17: ...Decimal 13 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 Default See Autofeed in setup parameter Reference 0x0A Example ESC POS emulation 17 ...

Страница 18: ...starting position to the beginning of the line The paper feed amount set by this command does not affect the values set by 0x1B 0x32 or 0x1B 0x33 The horizontal and vertical motion units are specified by 0x1D 0x50 0x1D 0x50 can change the vertical and horizontal motion unit However the value cannot be less than the minimum vertical movement amount In standard mode the vertical motion unit is used ...

Страница 19: ...ows paper feed is equivalent to n x char height line spacing set Sets the print starting position at the beginning of the line This command does not affect the line spacing set by 0x1B 0x32 or 0x1B 0x33 The maximum paper feed amount is 200 rows Even if a paper feed amount of more than 200 rows is set the printer feeds the paper only 200 rows Default Reference 0x1B 0x32 0x1B 0x33 Example ESC POS em...

Страница 20: ... logo in the flash bank 2 Notes The images are saved in FlashDisk as Pict1 bmp bank 1 and Pict2 bmp bank 2 For serial communication set parameter RS232 handshaking to Hardware The number of received data bytes is nL nH 256 2 Every word is received first as MSByte and then as LSByte If nL nH 256 is more than 33280 the following data are processed as normal data In the horizontal dotline there are 2...

Страница 21: ...0x1B 0x30 ESC 0 Select 1 8 inch line spacing Valid for TG02H Format ASCII ESC 0 Hex 1B 30 Decimal 27 48 Range Description Selects 1 8 inch line spacing Notes Default Reference 0x1B 0x32 0x1B 0x33 Example ESC POS emulation 21 ...

Страница 22: ...SC 2 Select 1 6 inch line spacing Valid for TG02H Format ASCII ESC 2 Hex 1B 32 Decimal 27 50 Range Description Selects 1 6 inch line spacing Notes Default Reference 0x1B 0x30 0x1B 0x33 Example 22 ESC POS emulation ...

Страница 23: ...ical motion unit are specified by 0x1D 0x50 Changing the horizontal or vertical motion unit does not affect the current line spacing The 0x1D 0x50 command can change the horizontal and vertical motion unit However the value cannot be less than the minimum vertical movement amount In standard mode the vertical motion unit is used The maximum spacing is 32 mm Default n 64 1 6 inch Reference 0x1B 0x3...

Страница 24: ...Valid for TG02H Format ASCII CAN Hex 18 Decimal 24 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 Default Reference Example 24 ESC POS emulation ...

Страница 25: ... enlarged the right side character spacing is m 2 or 8 times the normal value The horizontal and vertical motion units are specified by 0x1D 0x50 Changing the horizontal or vertical motion units does not affect the current right side spacing The 0x1D 0x50 command can change the horizontal and vertical motion unit However the value cannot be less than the minimum horizontal movement amount The maxi...

Страница 26: ...idth mode selected 6 Off 00 0 Italic mode not selected On 40 64 Italic mode selected 7 Off 00 0 Underline mode not selected On 80 128 Modo sottolineato selezionato Notes The printer can underline all characters but cannot underline the spaces set by 0x09 0x1B 0x24 0x1B 0x5C and 90 270 rotated characters This command resets the left and right margin at default value see 0x1D 0x4C 0x1D 0x57 0x1B 0x4...

Страница 27: ... Default n 0 Reference 0x1B 0x2D 0x1B 0x45 0x1D 0x21 Example ESC POS emulation 27 ...

Страница 28: ...d character set When the Least Significant Bit LSB of n is 0 the user defined character set is cancelled When the LSB of n is 1 the user defined character set is selected Notes Only the LSB of n is applicable When the user defined character set is canceled the internal character set is automatically selected Default n 0 Reference 0x1B 0x26 0x1B 0x3F Example 28 ESC POS emulation ...

Страница 29: ...5 characters It is possible to define multiple characters for consecutive character codes If only one character is desired use c1 c2 if c2 c1 the command is not executed d is the dot data for the characters The dot pattern is in the horizontal direction starting from the left Any remaining dots on the right remain blank The data to define a user defined character is X Y bytes To print a dot set th...

Страница 30: ... Example 18 dots 11 cpi 14 dots 15 cpi p1 MSB LSB p2 30 ESC POS emulation ...

Страница 31: ...ck Notes The printer can underline all characters but cannot underline the space and right side character spacing command 0x09 The printer cannot underline 90 270 rotated characters and white black inverted characters When underline mode is turned off by setting the value of n to 0 or 48 the data which follows is not underlined Underline mode can also be turned on or off by using 0x1B 0x21 Note ho...

Страница 32: ... 0 48 Turns off italic mode 1 49 Turns on italic mode Notes The printer can print any character in italic mode When italic mode is turned off by setting the value of n to 0 or 48 the data which follows is printed in normal mode Italic mode can also be turned on or off using 0x1B 0x21 Note however that the last received command is the effective one Default n 0 Reference 0x1B 0x21 Example 32 ESC POS...

Страница 33: ...s 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 If the user defined character has not been defined for the specified character code the printer ignores this command Default Reference 0x1B 0x26 0x1B 0x25 Example ESC POS emulation 33 ...

Страница 34: ...ption 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 Notes Only the LSB of n is effective 0x1B 0x21 also turns on and off the expanded mode However the last received command is the effective one Default n 0 Reference 0x1B 0x21 Example 34 ESC POS emulation ...

Страница 35: ... 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 Only the LSB of n is effective Printer output is the same in double strike and emphasized mode Default n 0 Reference 0x1B 0x45 Example ESC POS emulation 35 ...

Страница 36: ...id for TG02H Format ASCII ESC M n Hex 1B 4D n Decimal 27 77 n Range n 0 1 48 49 Description Selects characters font n FUNCTION 0 48 Character font A selected 1 49 Character font B selected Notes Reference 0x1B 0xC1 Example 36 ESC POS emulation ...

Страница 37: ...set n according to the table below HEX 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E n CHARACTER SET 0 U S A 1 France à ç é ù è 2 Germany Ä Ö Ü ä ö ü b 3 United Kingdom 4 Denmark I Æ Æ Å æ f å 5 Sweden É Ä Ö Å Ü é ä ö å ü 6 Italy é ù à ò è ì 7 Spain I Pt i Ñ ñ 8 Japan 9 Norwey É Æ Æ Å Ü é æ f å ü 10 Denmark II É Æ Æ Å Ü é æ f å ü Notes Default n 0 Reference Example ESC POS emulation 37 ...

Страница 38: ...ation mode 1 49 Enable 90 rotation mode Notes When underlined mode is turned on the printer does not underline 90 rotated characters All the same it s possible select the underline mode Double width and double height commands in 90 rotation mode enlarge characters in the opposite directions from double height and double width commands in normal mode Default n 0 Reference 0x1B 0x21 0x1B 0x2D Exampl...

Страница 39: ...est 12 PC853 Turkish on request 13 PC857 Turkish on request 14 PC737 Greek on request 15 ISO8859 7 Greek on request 16 WPC1252 17 PC866 Cyrillic 2 18 PC852 Latin 2 on request 19 PC858 for Euro symbol at position 213 20 KU42 Thai on request 21 TIS11 Thai on request 26 TIS18 Thai on request 30 TCVN_3 Vientamese on request 31 TCVN_3 Vientamese on request 32 PC720 Arabic on request 33 WPC775 Baltic Ri...

Страница 40: ...Greek 48 WPC1254 Turkish 49 WPC1255 Hebrew 50 WPC1256 Arabic 51 WPC1257 Baltic Rim 52 WPC1258 Vientamese 53 KZ1048 Kazakhstan on request 255 Space page Notes The tables are selectable only if the code pages are present on the machine By selecting a code page not present on the machine the code page remains the one currently in use Default n 0 Reference Example For printing Euro symbol the command ...

Страница 41: ...n printing mode is off When the LSB of n is 1 the upside down printing mode is on Notes Only the LSB of n is effective This command is valid only if entered at the beginning of a line In upside down printing mode the printer rotates the line to be printed 180 and then prints it Default n 0 Reference Example Upside down printing Off Upside down printing On ABCDEFG 123456 ABCDEFG 123456 Printing dir...

Страница 42: ...Decimal 27 193 n Range 0 n 2 48 n 50 Description Sets cpi mode based on the following values of n n FUNCTION 0 48 Font A 12 cpi Font B 16 cpi 1 49 Font A 16 cpi Font B 22 cpi 2 50 Font A 12 cpi Font B 12 cpi Notes Default n 2 Reference 0x1B 0x21 0x1D 0x21 Example 42 ESC POS emulation ...

Страница 43: ...ls with Extended Chinese GB18030 2000 or Korean PC949 The selection made by this command is stored in the RAM memory Turn off the machine reverts to the default value that can be set with the parameter FONT TYPE in the setup After selecting the font type INTERNATIONAL it must be selected the desired character code table using the command 0x1B 0x74 Default Reference 0x1B 0x74 See the command manual...

Страница 44: ... Select character height HEX DECIMAL WIDTH HEX DECIMAL HEIGHT 00 0 1 normal 00 0 1 normal 10 16 2 width 2x 01 1 2 height 2x 20 32 3 width 3x 02 2 3 height 3x 30 48 4 width 4x 03 3 4 height 4x 40 64 5 width 5x 04 4 5 height 5x 50 80 6 width 6x 05 5 6 height 6x 60 96 7 width 7x 06 6 7 height 7x 70 112 8 width 8x 07 7 8 height 8x 12 Cpi Table 1 Select character width Table 2 Select character height H...

Страница 45: ...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 ESC POS emulation 45 ...

Страница 46: ... on Notes Only the LSB di n is effective This command is available for both built in and user defined characters This command does not affect bit image downloaded bit image barcode HRI characters and spac ing skipped by 0x09 0x1B 0x24 and 0x1B 0x5C This command does not affect white space between lines White black reverse mode has a higher priority than underline mode Even if underline mode is on ...

Страница 47: ...Y n Hex 1D 59 n Decimal 29 89 n Description Sets height during printing based on following values of n n PRINTING MODE 0 height is set to 1 0 height is set to 2 Notes When n 0 default value each dotline is twice replicated Default n 0 Reference Example ESC POS emulation 47 ...

Страница 48: ...S Back space Valid for TG02H Format ASCII BS Hex 08 Decimal 8 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 ...

Страница 49: ... 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 Horizontal tab positions are set using 0x1B 0x44 Default Reference 0x1B 0x44 Example ESC POS emulation 49 ...

Страница 50: ...r hori zontal motion unit inches Notes Settings outside the specified printable area are ignored The horizontal and vertical motion unit are specified by 0x1D 0x50 0x1D 0x50 can change the horizontal and vertical motion unit However the value cannot be less than the minimum horizontal movement amount In standard mode the horizontal motion unit x is used If the setting is outside the printing area ...

Страница 51: ...or vertical motion unit Notes When the starting position is specified by N motion unit to the bottom nL nH 256 N When the starting position is specified by N motion unit to the top negative direction use the complement of 65536 nL nH 256 65536 N The horizontal and vertical motion unit are specified by 0x1D 0x50 The 0x1D 0x50 command can change the horizontal and vertical motion unit However the va...

Страница 52: ...th twice the width of normal characters This command cancels previous tab settings When setting n 8 the print position is moved to column 9 sending 0x09 Up to 32 tab positions k 32 can be set Data exceeding 32 tab positions is processed as normal data Send n k in ascending order and place a 0 NUL code at the end When n k is less than or equal to the preceding value n k 1 the setting is complete an...

Страница 53: ...hic 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 Default n 0 Reference 0x1B 0x45 Example To print a dotted graphic line transmit 48 bytes with value 240 0xF0 after the command 0x1B 0x57 To print a continuous graphic line transmit 48 bytes with value 255 0xFF ESC POS emulation 53 ...

Страница 54: ...egins a new row When the starting position is specified by N motion units to the right nL nH 256 N When the starting position is specified by n motion units to the left negative direction use the com plement of 65536 nL nH 256 65536 N If setting exceeds the printing area width the left or right margin is set to the default value The horizontal and vertical motion unit are specified by 0x1D 0x50 0x...

Страница 55: ...ollows n JUSTIFICATION 0 48 Flush left 1 49 Centered 2 50 Flush right Notes This command is only enabled when inserted at the beginning of a line Lines are justified within the specified printing area Spaces set by 0x09 0x1B 0x24 and 0x1B 0x5C will be justified according to the previously entered mode Default n 0 Reference Example Flush left Centered Flush right ABC ABCD ABCDE ABC ABCD ABCDE ABC A...

Страница 56: ...e area is used If the left margin printing area width is greater than the printable area the printing area width is set at maximum value The horizontal and vertical motion unit are specified by 0x1D 0x50 Changing the horizontal or vertical motion unit does not affect the current left margin The 0x1D 0x50 command can change the horizontal and vertical motion unit However the value cannot be less th...

Страница 57: ...is greater than the printable area the printing area width is set at maximum value If the printing area width 0 it is set at the maximum value The horizontal and vertical motion units are specified by 0x1D 0x50 Changing the horizontal or vertical motion unit does not affect the current left margin The 0x1D 0x50 command can change the horizontal and vertical motion unit However the value cannot be ...

Страница 58: ...t image in the horizontal direction The number of dots is calculated using nL nH 256 If the bit image data input exceeds the number of dots to be printed on a line the excess data is ignored d indicates the bit image data Set a corresponding bit to 1 to print a dot or to 0 to not print the dot If the value of m is outside the specified range nL and data following it are processed as normal data If...

Страница 59: ...age data and the dots to be printed is as follows 8 dot bit image 24 dot bit image d1 Print data d3 d2 MSB LSB Bit image data Print data MSB LSB Bit image data d4 d6 d5 d1 d3 d9 d8 d2 d7 Default Reference Example ESC POS emulation 59 ...

Страница 60: ... Notes The number of dots in the horizontal direction is x 8 in the vertical direction it is y 8 If x y is out of the specified range this command is disabled The d indicates bit image data Data d specifies a bit printed to 1 and not printed to 0 The downloaded bit image definition is cleared when 1 0x1B 0x40 is executed 2 0x1B 0x26 is executed Printer is reset or the power is turned off The follo...

Страница 61: ...phasized underline character size or white black reverse printing except for upside down printing mode If the downloaded bit image to be printed exceeds the printable area the excess data is not printed If the printing area width set by 0x1D 0x4C and 0x1D 0x57 is less than the bit image horizontal size the following processing is performed 1 The printing area width is extended toward the right sid...

Страница 62: ...r status n 4 transmit paper roll sensor status n 17 transmit print status n 20 transmit FULL STATUS n 21 transmit printer ID Notes Immediately executed even when the data buffer is full This status is transmitted whenever data sequence 0x10 0x04 is received Default Reference See tables below Example n 1 Printer status BIT OFF ON HEX DECIMAL FUNCTION 0 Off 00 0 Not used Fixed to Off 1 On 02 2 Not u...

Страница 63: ...t used Fixed to On 5 Off 00 0 Paper present On 20 32 Printing stop due to paper end 6 Off 00 0 No error On 40 64 Error 7 Off 00 0 Not used Fixed to Off n 3 Error status BIT OFF ON HEX DECIMAL FUNCTION 0 Off 00 0 Not used Fixed to Off 1 On 02 2 Not used Fixed to On 2 RESERVED 3 Off 00 0 Not used Fixed to Off 4 On 10 16 Not used Fixed to On 5 Off 00 0 No unrecoverable error On 20 32 Unrecoverable er...

Страница 64: ...o Off n 17 Print status BIT OFF ON HEX DECIMAL FUNCTION 0 Off 00 0 Not used Fixed to Off 1 On 02 2 Not used Fixed to On 2 Off 00 0 Paper drag motor off On 04 4 Paper drag motor on 3 RESERVED 4 On 10 16 Not used Fixed to On 5 Off 00 0 Paper present On 20 32 Paper absent 6 RESERVED 7 Off 00 0 Not used Fixed to Off n 20 FULL status 6 bytes 1 Byte 0x10 DLE 2 Byte 0x0F 3 Byte Paper status BIT OFF ON HE...

Страница 65: ... 0 No spooling On 04 4 Spooling 3 Off 00 0 Drag paper motor off On 08 8 Drag paper motor on 4 RESERVED 5 Off 00 0 LF key released On 20 32 LF key pressed 6 Off 00 0 FF key released On 40 64 FF key pressed 7 RESERVED 5 byte Recoverable error status BIT OFF ON HEX DECIMAL FUNCTION 0 Off 00 0 Head temperature ok On 01 1 Head temperature error 1 Off 00 0 No COM error On 02 2 RS232 COM error 2 RESERVED...

Страница 66: ... acknowledge command error 6 RESERVED 7 RESERVED 6 byte Unrecoverable error status BIT OFF ON HEX DECIMAL FUNCTION 0 RESERVED 1 Off 00 0 Flash memory ok On 02 2 Flash memory error 2 RESERVED 3 RESERVED 4 RESERVED 5 RESERVED 6 RESERVED 7 RESERVED n 21 transmit printer ID 1 byte refer to command 0x1D 0x49 66 ESC POS emulation ...

Страница 67: ...mmand is executed immediately even when the data buffer is full Busy The status to be transmitted is shown in the table below BIT OFF ON HEX DECIMAL FUNCTION 0 Undefined 1 Undefined 2 3 Off 00 0 Paper end sensor paper present On 0C 12 Paper end sensor paper not present 4 Off 00 0 Not used Fixed to Off 5 Undefined 6 Undefined 7 Off 00 0 Not used Fixed to Off Default Reference 0x10 0x04 Example ESC ...

Страница 68: ...AL FUNCTION 0 Undefined 1 Undefined 2 3 Off 00 0 Paper end sensor paper present On 0C 12 Paper end sensor paper not present 4 Off 00 0 Not used Fix to Off 5 Undefined 6 Undefined 7 Off 00 0 Not used Fix to Off Notes This command is executed when the data is processed in the data buffer Therefore there may be a time lag between receiving the command and transmitting the status depending on data buf...

Страница 69: ...S 0xE3 Hex 1D E3 Decimal 29 227 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 Default Reference Example ESC POS emulation 69 ...

Страница 70: ...D E5 Decimal 29 229 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 Default Reference Example 70 ESC POS emulation ...

Страница 71: ... specified by cn Function is specified by fn cn fn FUNCTION 49 65 Function 065 QRcode Specify encoding scheme 49 66 Function 066 QRcode Specify dot size of the module 49 67 Function 067 QRcode Specify size of barcode 49 69 Function 069 QRcode Specify the error correction level 49 80 Function 080 QRcode Store the received data in the barcode save area 49 81 Function 081 QRcode Print the barcode dat...

Страница 72: ...e of QRcode barcode n ENCODING SCHEME 0 QRcode 1 MicroQR Notes QRcode Encode all extended ASCII characters data up to a maximum length of 7089 numeric digits 4296 alphabetic characters or 2953 bytes of data pL and pH specify the number of successive bytes to be sent MicroQR a miniature version of the QRcode barcode for short message Encode all numbers from 0 to 9 up to a maximum length of 35 chara...

Страница 73: ...S k pL pH cn fn n Hex 1D 28 6B pL pH cn fn n Decimal 29 40 107 pL pH cn fn n Range pL pH 256 3 pL 3 pH 0 cn 49 fn 66 2 n 24 Description Specifies numbers of dot for each pixel of QRcode barcode Notes pL and pH specify the number of successive bytes to be sent Default n 0 Reference Example ESC POS emulation 73 ...

Страница 74: ...code eversion as follows n VERSION n VERSION n VERSION 0 AUTO 14 V14 28 V28 1 V1 15 V15 29 V29 2 V2 16 V16 30 V30 3 V3 17 V17 31 V31 4 V4 18 V18 32 V32 5 V5 19 V19 33 V33 6 V6 20 V20 34 V34 7 V7 21 V21 35 V35 8 V8 22 V22 36 V36 9 V9 23 V23 37 V37 10 V10 24 V24 38 V38 11 V11 25 V25 39 V39 12 V12 26 V26 40 V40 13 V13 27 V27 Notes pL and pH specify the number of successive bytes to be sent Default n ...

Страница 75: ... Description Specifies the ECC level Error Correction Capacity of QRcode barcode n ECC level 0 AUTO 1 ECC approx 20 of barcode Recovery Capacity approx 7 2 ECC approx 37 of barcode Recovery Capacity approx 15 3 ECC approx 50 of barcode Recovery Capacity approx 25 4 ECC approx 65 of barcode Recovery Capacity approx 30 Notes pL and pH specify the number of successive bytes to be sent Default n 0 Ref...

Страница 76: ...cters 4 pL pH 256 4300 0 pL 255 0 pH 16 QRcode barcode only with numeric characters 4 pL pH 256 7093 0 pL 255 0 pH 27 Description Store the QRcode barcode data d1 dk in the barcode save area Notes Data stored in the barcode save area by this function are processed by Function 081 The data in the barcode save area are reserved after processing Function 081 pL and pH specify the number of successive...

Страница 77: ...pL pH cn fn m Hex 1D 28 6B pL pH cn fn m Decimal 29 40 107 pL pH cn fn m Range pL pH 256 3 pL 3 pH 0 cn 49 fn 81 m 49 Description Prints the QRcode barcode in the current position Notes pL and pH specify the number of successive bytes to be sent Default Reference Example ESC POS emulation 77 ...

Страница 78: ...cimal 29 72 n Range 0 n 3 48 n 51 Description Selects the printing position of HRI characters when printing barcodes n selects the printing positions as follows n FUNCTION 0 48 Not printed 1 49 Above the barcode 2 50 Below the barcode 3 51 Both above and below the barcode Notes Default n 0 Reference 0x1D 0x6B Example 78 ESC POS emulation ...

Страница 79: ...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 table n FONT 0 48 Font A 1 49 Font B Notes HRI characters are printed at the position specified by 0x1D 0x48 Default n 0 Reference 0x1D 0x48 0x1D 0x6B Example ESC POS emulation 79 ...

Страница 80: ...lid for TG02H Format ASCII GS h n Hex 1D 68 n Decimal 29 104 n 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 Reference 0x1D 0x6B Example 80 ESC POS emulation ...

Страница 81: ...ect a barcode system and prints the barcode m selects a barcode system as follows Format 1 m BARCODE SYSTEM NUMBER OF CHARACTERS REMARKS 0 UPC A 11 k 12 48 d 57 1 UPC E 11 k 12 48 d 57 2 EAN13 JAN 12 k 13 48 d 57 3 EAN8 JAN 7 k 8 48 d 57 4 CODE39 1 k 48 d 57 65 d 90 32 36 37 43 45 46 47 5 ITF 1 k even number 48 d 57 6 CODABAR 1 k 48 d 57 65 d1 68 36 43 45 46 47 58 7 CODE93 1 k 255 1 d 127 8 CODE12...

Страница 82: ...ize except for upside down and justification mode Format 1 This command ends with a NUL code When the barcode system used is UPC A or UPC E the printer prints the barcode data after receiv ing 11 without check digit or 12 with check digit bytes barcode data When the barcode system used is EAN13 the printer prints the barcode data after receiving 12 without check digit or 13 with check digit bytes ...

Страница 83: ... 123 49 FNC2 2 7B 32 123 50 FNC3 3 7B 33 123 51 FNC4 4 7B 34 123 52 7B 7B 123 123 When UPC E is used introducing the barcode characters the printer prints TRANSMITTED DATA PRINTED DATA d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 0 0 9 0 9 0 0 0 0 0 0 9 0 9 0 9 d2 d3 d9 d10 d11 0 0 0 9 0 9 1 0 0 0 0 0 9 0 9 0 9 d2 d3 d9 d10 d11 1 0 0 9 0 9 2 0 0 0 0 0 9 0 9 0 9 d2 d3 d9 d10 d11 2 0 0 9 0 9 3 9 0 0 0 0 0 0 9...

Страница 84: ... referred to the narrow bar as follows n MODULE WIDTH mm 0x1 0x81 0 125 0x2 0x82 0 25 0x3 0x83 0 375 0x4 0x84 0 5 0x5 0x85 0 625 0x6 0x86 0 75 If barcode CODE128 the wide and narrow bar ratio is the following n WIDE NARROW BAR RATIO If n 0x80 0x1 0x2 0x3 0x4 0x5 0x6 3 1 If n 0x80 0x81 3 1 0x82 2 5 1 0x83 2 33 1 0x84 2 25 1 0x85 3 1 0x86 3 1 Notes Default n 3 Reference 0x1D 0x6B Example 84 ESC POS ...

Страница 85: ...ion and clears all definitions Macros are not defined when power is turned on to the machine Macro content is not cancelled by the 0x1B 0x40 command Therefore 0x1B 0x40 may be included in the content of macro definitions If the printer receives 0x1D 0x3A a second time after previously receiving 0x1D 0x3A the printer remains in macro undefined status The contents of the macro can be defined up to 2...

Страница 86: ...m 1 after waiting for the period specifi ed by t the LED indicator blinks and the printer waits for the FEED button to be pressed After the button is pressed the printer executes the macro once The printer repeats the operation r times Notes This command has an interval of t 100 msec after a macro is executed by t If this command is received while a macro is being defined the macro definition is a...

Страница 87: ...e to which the host computer sends data using n as follows n 1 n 3 Printer Enable n 2 Printer Disabled Notes When the printer is disabled it ignores all transmitted data until the printer is enabled through this command When the pass trough function is enabled all transmitted data are send to the second serial port Default n 1 Reference Example ESC POS emulation 87 ...

Страница 88: ... Decimal 27 64 Range Description Clears the data in the print buffer and resets the printer mode to that in effect when power was turned on Notes The data in the receiver buffer is not cleared The macro definitions are not cleared Default Reference Example 88 ESC POS emulation ...

Страница 89: ... for TG02H Format ASCII ESC c 5 n Hex 1B 63 35 n Decimal 27 99 53 n Range n 0 1 Description Enables disables the keys of the front panel n FUNCTION 0 Disables front panel keys 1 Enables front panel keys Notes Default n 1 Reference Example ESC POS emulation 89 ...

Страница 90: ... Hex 1B 78 n Decimal 27 120 n Range 0 n 2 Description Selects printing speed current mode N selects the printing speed as follows n SPEED CURRENT 0 Low speed low current 1 Normal mode medium current 2 High speed high current Notes Default n 0 Reference Example 90 ESC POS emulation ...

Страница 91: ... graphic source as follows n FUNCTION 0 Print graphic page from ram used at the moment 1 Print logo 1 from flash 2 Print logo 2 from flash Notes Printable maximum vertical dimension is 682 xL xH 256 specifies the starting dotline 1 682 yL yH 256 specifies the number of lines to print If xL xH 256 682 the printer does not execute the command If xL xH 256 yL yH 256 682 the printer prints only 682 xL...

Страница 92: ...hem into the ram bank Notes The number of data bytes received is nL nH 256 2 Each word is first received as MSByte and then as LSByte If nL nH 256 is greater than 32768 the data which follows is processed as normal data The flash bank dimensions for the graphic print are 384 horizontal dots 48 bytes dot line 682 verticals dots 33280 bytes Default Reference 0x1B 0xFA 0x1B 0xFC 0x1B 0xFE Example 92 ...

Страница 93: ...ter 255 Printer model ID 2 bytes 0x02 0x17 TG02H n 2 50 Type ID BIT OFF ON HEX DECIMAL FUNCTION 0 Off 00 0 2 byte character codes not supported 1 Off 02 2 Not used Fixed to On 2 Off 00 0 Not used Fixed to Off 3 Undefined 4 Off 00 0 Not used Fixed to Off 5 Undefined 6 Undefined 7 Off 00 0 Not used Fixed to Off Notes This command is executed when the data is processed in the data buffer Therefore th...

Страница 94: ...o the paper feed direction In standard mode the following commands use x or y regardless of character rotation upside down or 90 clockwise rotation Commands using x 0x1B 0x20 0x1B 0x24 0x1B 0x5C 0x1D 0x4C 0x1D 0x57 Commands using y 0x1B 0x33 0x1B 0x4A This command does not affect the previously specified values The calculated result from combining this command with others is truncated to the minim...

Страница 95: ...from serial port Valid for TG02H Format ASCII GS Z n Hex 1D 5A n Decimal 27 90 n Description Receives n bytes from serial port and prints them in graphic mode Notes Max value of n is 58 Default Reference Example ESC POS emulation 95 ...

Страница 96: ...ription Sets printing density n specifies printing density as follows n PRINTING DENSITY 0 48 50 1 49 37 5 2 50 25 3 51 12 5 4 52 0 5 53 12 5 6 54 25 7 55 37 5 8 56 50 Notes Printing density reverts to the default value when the printer is reset or turned off Default n 4 Reference 0x1D 0x7C Example 96 ESC POS emulation ...

Страница 97: ...29 240 n Range 0 n 2 Description Sets printing speed n specifies the printing speed as follows n PRINTING SPEED 0 High quality 1 Normal 2 High speed Notes Printing speed reverts to the default value when the printer is reset or turned off Default n 1 Reference Esempio ESC POS emulation 97 ...

Страница 98: ...98 ESC POS emulation ...

Страница 99: ......

Страница 100: ...ber 77200000003000 Rev 1 00 www custom biz 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 ...

Отзывы: