Summary of Contents for BT-T080 plus

Page 1: ...PROGRAMMING MANUAL KIOSK Printer BT T080 plus Shandong New Beiyang Information Technology Co Ltd CONFIDENTIAL ...

Page 2: ... any confidential information of this manual you must inform SNBC quickly and also agree that you shall cooperate or assist with SNBC reasonably during the negotiation SNBC has the right to disclose its confidential information and does not be responsible for the loss or damages caused from the wrong usage or reference of this manual by users Information in this document is subject to change witho...

Page 3: ...BT T080 plus Programming Manual 2 Revision histotry Date Version Description Author 2017 05 16 V100 Initial version Zhang Qi ...

Page 4: ...horizontal printing position 11 ESC a n Select character align mode 11 GS nL nH Sets the absolute vertical position in page mode 12 GS L nL nH Set left margin 13 GS P x y Set the horizontal and vertical motion units 14 GS W nL nH Set printing area width 15 GS nL nH Set relative vertical print position in page mode 16 GS T n Set print starting positon at the bigninning of line 16 2 3 Character comm...

Page 5: ...map mode 33 GS n Define current RAM bitmap number 34 GS x y d1 d x y 8 Define downloaded bitmap 35 GS m Print downloaded bitmap 35 GS v 0 m xL xH yL yH d1 dk Print raster bitmap 36 FS p n m Print bitmap downloaded in NV memory 37 FS q n xL xH yL yH d1 dk 1 xL xH yL yH d1 dk n Define NV bitmap 38 2 5 Status command 40 DLE EOT n Real time status transmission 40 DLE ENQ n Real time request 42 GS r n ...

Page 6: ...Set print darkness 61 GS M pL pH a n m Save or load the data defined by command GS F 61 GS M pL pH n m n 1 49 Function 1 62 GS M pL pH n m n 2 50 Function 2 62 GS M pL pH n m n 3 51 Function 3 63 GS Start end macro definition 63 GS C 0 n m Select count print mode 64 GS C 1 aL aH bL bH n r Select count mode A 64 GS C 2 nL nH Set current count value 65 66 GS I n Inquire printer ID 67 GS V m GS V m n...

Page 7: ...0 plus Programming Manual 6 A 1 Overview of CODE128 78 A 2 Code set 78 Appendix B Print mode and its change 81 B 1 General description 81 B 2 Set values in standard and page modes 82 B 3 Set printing area 82 ...

Page 8: ... or ESC FF Standard mode Standard mode is the default mode of printer uses to operate Under this mode the printer prints data and feeds paper upon print line buffer full data is enough for one print line or receiving print command like LF Marked paper mode Configuration of printer is marked paper HRI Characters Human readable interpretation of the barcode NV Non volatile memory in which data store...

Page 9: ...or relative commands All command data in programming Demo use HEX All normal font characters are data There is no explanation for the data of command such as 42 43 which is data The font character underlined and emphasized is a command such as 1B 40 All the data inside parentheses after all commands in Demo is used to explain the meanings of this command The parentheses and data inside it is not t...

Page 10: ...ne then printer feeds paper to the beginning of next print position This command is invalid if continuous paper is selected The buffer data is deleted after being printed The print width set by command ESC W will recovery to the default value This command sets the print position to the beginning of the line Relative ESC FF ESC L ESC S GS F GS FF CR Print and carriage return Function Print and carr...

Page 11: ...fected by the values set by ESC 2 or ESC 3 In standard mode the printer uses the vertical motion unit y In page mode this command functions as follows depending on the direction and print starting position of the print area When the print starting position is set to the upper left or lower right of the printable area by ESC T the vertical motion unit y is used When the starting position is set to ...

Page 12: ...izontal tab Format ASCII HT Hex 09 Decimal 9 Notes Move the print position to the next tab position This command is ignored unless the next horizontal tab position has been set If the next horizontal tab position exceeds the printable area the printer sets the print position to Printable area width 1 Horizontal tab positions are set by ESC D If this command is received when the print position is a...

Page 13: ...ng position Format ASCII ESC nL nH Hex 1B 24 nL nH Decimal 27 36 nL nH Value range 0 nL 255 0 nH 255 Notes The distance from the beginning of the line to the print position is nL nH 256 horizontal or vertical motion unit Settings outside the specified printable area are ignored In standard mode the horizontal motion unit x is used In page mode this command functions as follows depending on the dir...

Page 14: ...ons is processed as normal data Transmit n k in ascending order and place a NUL code 0 at the end When n k is less than or equal to the preceding value n k 1 tab setting is finished and the following data is processed as normal data ESC D NUL cancels all horizontal tab positions settings The previously specified horizontal tab positions do not change even if the character width changes The charact...

Page 15: ...ion unit ESC 3 ESC J GS GS If the starting position is the upper right or lower left of the printable area data is buffered in the paper feed direction Commands using horizontal motion unit ESC 3 ESC J GS GS Commands using vertical motion unit ESC SP ESC ESC Default n 0 Relative ESC ESC L ESC W ESC GS GS GS P Example 1B 4C enter page mode 1D 50 CB CB set printer resolution 1B 57 20 00 00 00 40 02 ...

Page 16: ...g operation This command does not affect printing in standard mode If the horizontal or vertical starting position is set outside the printable area the printer stops command processing and processes the following data as normal data If the printable area width or height is set to 0 the printer stops command processing and processes the following data as normal data This command and ESC T together...

Page 17: ... in the figure below Default xL xH yL yH 0 dxL dxH dyL and dyH are specified by printer configuration Relative CAN ESC L ESC T GS P Example 0A 1D 50 CB CB set printer resolution to 203 203 1B 4C enter page mode 1B 57 20 00 00 00 40 01 90 01 set printable area in page mode 1B 24 00 00 set absolute horizontal starting position to be starting point 41 1B 24 32 00 set absolute horizontal starting posi...

Page 18: ...the complement code nL nH 256 65536 N The print starting position moves from the current position to N horizontal or vertical motion unit The horizontal and vertical motion units are specified by GS P In standard mode the horizontal motion unit is used In page mode the horizontal or vertical motion unit differs as follows depending on the direction and starting point of the printable area When the...

Page 19: ...e the printer performs only internal flag operations This command adjusts the space area according to commands HT ESC or ESC Default n 0 Example 0A Entering line mode 1B 40 Initialization 1B 61 00 Setting left justification 41 42 43 0A 41 42 43 44 0A 41 42 43 44 45 0A 1B 61 01 Setting centering 41 42 43 0A 41 42 43 44 0A 41 42 43 44 45 0A 1B 61 02 Setting right justification 41 42 43 0A 41 42 43 4...

Page 20: ...he direction which is parallel to the paper feed direction When the starting position is set to the upper right or lower left this command sets the absolute position in the direction which is perpendicular to the paper feed direction Relative ESC ESC T ESC W ESC GS GS L nL nH Set left margin Function Set left margin Format ASCII GS L nLnH Hex 1D 4C nLnH Decimal 29 76 nLnH Value range 0 nL 255 0 nH...

Page 21: ...ntal and vertical motion units to 25 4 x mm 1 x inches and 25 4 y mm 1 y inches respectively When x and y are 0 the x and y are set to be default settings The horizontal direction is perpendicular to the paper feed direction and the vertical direction is the paper feed direction In standard mode the following commands use x or y regardless of character rotation upside down or 90 clockwise rotation...

Page 22: ... width Function Set printing area width Format ASCII GS W nLnH Hex 1D 57 nLnH Decimal 29 87 nLnH Value range 0 nL 255 0 nH 255 Notes Sets the printing area width to the area specified by nL and nH Set printing area width to nL nH 256 horizontal motion unit inches In standard mode this command is effective only processed at the beginning of the line In page mode this command is disabled and command...

Page 23: ...inting area direction set by ESC T command When the starting position is set to the upper left printing from left to right or lower right printing from right to left of the printing the vertical motion unit is used When the starting position is set to the upper right printing from up to down or lower left printing from down to up of the printable area the horizontal motion unit is used Relative ES...

Page 24: ...35 36 37 38 39 30 61 62 63 64 65 64 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 31 32 33 34 35 36 37 38 39 30 61 62 63 64 65 64 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 31 32 33 34 35 36 37 38 39 30 61 62 63 64 65 64 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 31 32 33 34 35 36 37 38 39 30 61 62 63 64 65 64 66 67 68 69 6A 6B 6C 6D 6E 6F 7...

Page 25: ...pendently in standard mode and page modes Default n 0 Example 1B 40 1B 20 00 Set character spacing as 0 41 41 41 41 41 0A 1B 20 06 Set character spacing as 6 203 inch 42 42 42 42 42 0A 1B 20 0C Set character spacing as 12 203 inch 43 43 43 43 43 0A Results ESC n Select print mode Function Select print mode Format ASCII ESC n Hex 1B 21 n Decimal 27 33 n Value range 0 n 255 Notes Select print mode a...

Page 26: ...ctive ESC can also select or cancel underline mode The setting of the last received command is effective The thickness of the underline is defined by ESC regardless of the character When some characters in a line are double or higher all the characters in the line are aligned at the baseline GS can also set character size The setting of the last received command is effective Default n 0 Relative E...

Page 27: ... Only the least significant bit of n is valid Default n 0 Relative ESC ESC ESC y c1 c2 x1 d1 d y x1 xk d1 d y xk Define user defined character Function Define user defined character Format ASCII ESC y c1 c2 x1 d1 d y x1 xk d1 d y xk Hex 1B 26 y c1 c2 x1 d1 d y x1 xk d1 d y xk Hecimal 27 38 y c1 c2 x1 d1 d y x1 xk d1 d y xk Value range y 3 32 c1 c2 51 0 x 12 Standard ASCII font 12 24 0 x 9 Compress...

Page 28: ...d characters The data of dot is start from the left side The size of user defined character is y x byte Set a corresponding bit to be 1 for printing a dot or to be 0 for not print a dot The user defined character definition is cleared under following situation 1 ESC is executed 2 The power is turned off Default Settings of internal character set Relative ESC ESC Example When standard ASCII font 12...

Page 29: ...by HT command The printer cannot underline 90 clockwise rotated characters and white black inverted characters When underline mode is cancelled the following data is not underlined and the underline thickness set before the mode is cancelled does not change The default underline thickness is 1 dot Character size change does not affect the current underline thickness Underline mode can also be sele...

Page 30: ...e is n the printer ignores this command Relative ESC ESC ESC E n Select Cancel bold mode Function Select Cancel bold mode Format ASCII ESC E n Hex 1B 45 n Decimal 27 69 n Value range 0 n 255 Notes When the least significant bit of n is 0 bold mode is cancelled When the least significant bit of n is 1 bold mode is selected Only the least significant bit of n is enabled Bold mode can also be selecte...

Page 31: ...ct character font Function Select character font Format ASCII ESC M n Hex 1B 4D n Decimal 27 77 n Value range n 0 1 2 3 48 49 50 51 n Function 0 48 Select standard ASCII Font 12 24 1 49 Select compressed ASCII Font 9 17 2 50 Select user defined character 3 51 Select Chinese font 24 24 ESC can also set the font the last received command is effective Relative ESC Example 1B 40 1B 4D 01 Compressed fo...

Page 32: ...ise rotation Format ASCII ESC V n Hex 1B 56 n Hecimal 27 86 n Value range 0 n 1 48 n 49 Notes Value of n is as following n Function 0 48 Cancel the 90 clockwise rotation mode 1 49 Select the 90 clockwise rotation mode This command is effective only in standard mode When select underline mode the underline can not be 90 clockwise rotated Double width and double height commands in 90 rotation mode e...

Page 33: ...852 7 19 PC858 255 Space Page empty code page Default n 0 ESC n Select Cancel upside down printing mode Function Select Cancel upside down printing mode Format ASCII ESC n Hex 1B 7B n Decimal 27 123 n Value range 0 n 255t Notes When the LSB of n is 0 upside down printing mode is cancelled When the LSB of n is 1 upside down printing mode is selected Only the LSB of n is valid This command is enable...

Page 34: ...1 n Decimal 29 33 n Value range 0 n 255 1 enlargement times in vertical 6 1 enlargement times in horizontal 6 Notes Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 7 as follows Bit 0 1 Hex Decimal Function 0 3 Character height selection See Table 2 4 7 Character width selection See Table 1 Table 1 Table 2 Character width selection Character height sel...

Page 35: ...ck reverse printing mode Function Select Cancel white black reverse printing mode Format ASCII GS B n Hex 1D 42 n Decimal 29 66 n Value range 0 n 255 Notes When the LSB of n is 0 white black reverse mode is cancelled When the LSB of n is 1 white black reverse mode is selected Only the least significant bit of n is valid This command is effective for all characters except for HRI character When whi...

Page 36: ...ing quadruple size characters are printed The printer can underline all characters including right and left character spacing but cannot underline the space set by HT command horizontal tab and 90 clockwise rotated characters The thickness of the underline is specified by FS regardless of the character size When characters in a line have different height all the characters in the line are aligned ...

Page 37: ... underline for Chinese characters 1 49 Select the underline for Chinese characters 1 dot thick 2 50 Select the underline for Chinese characters 2 dot thick The printer can underline all characters including right and left character spacing but cannot underline the space set by HT and 90 clockwise rotated characters After the underline mode is cancelled underline printing is no longer performed but...

Page 38: ... defined characters c1 FEH A1H c2 B4H 0 d 255 k 72 Notes Defined user defined Chinese character specified by c1 and c2 c1 and c2 indicate character codes for the user defined Chinese characters c1 specifies the first byte and c2 specifies the second byte d indicates the dot data Set a corresponding bit to 1 to print a dot or to 0 to not print a dot Default No user defined Chinese characters Relati...

Page 39: ...pper right or lower left of the printable area the vertical motion unit is used The maximum Chinese character spacing is approximately 36 mm Any setting exceeding the maximum value is converted to the maximum value automatically Default n1 0 n2 0 FS W n Select Cancel quadruple size mode for Chinese characters Function Select Cancel quadruple size mode for Chinese characters Format ASCII FS W n Hex...

Page 40: ...f dots of the bitmap in the horizontal direction the total number of dots is nL nH 256 Data of the bitmap excesses the current area will be ignored d indicates the bitmap data Set a corresponding bit to 1 to print a dot or to 0 not to print a dot After complete the transmission of bitmap data the printer returns to normal data processing mode If the printing area set by GS L and GS W is smaller th...

Page 41: ...ationship between the data and the dots to be printed is as follows When 8 dot density is selected When 24 dot density is selected GS n Define current RAM bitmap number Function Define current RAM bitmap number Format ASCII GS n Hex 1D 23 n Decimal 29 35 n Value range 0 n 7 Notes Specify a number for the current RAM bitmap This number is to be used when download and print this bitmap The command i...

Page 42: ...and is disabled The d indicates bitmap data Set a corresponding bit of data to be 1 for printing a dot or to be 0 for not print a dot The downloaded bitmap is cleared when the power of printer is turned off The following figure shows the relationship between the downloaded bitmap and the printed data Relative GS GS m Print downloaded bitmap Function Print downloaded bitmap Format ASCII GS m Hex 1D...

Page 43: ...map to be printed If the step can not provide enough extended width then the left margin will be reduced to meet the bitmap width In standard mode m 0 48 and double height mode m 2 50 printer will print one dot which is corresponding to a dot of bitmap in double width mode m 1 49 and quadruple mode m 3 51 printer will print two dots which are corresponding to a dot of bitmap Relative GS GS v 0 m x...

Page 44: ...macro definition d indicates the bitmap data When corresponding bit is 1 printer prints a dot when corresponding bit is 0 printer not print a dot Example When xL xH 256 64 FS p n m Print bitmap downloaded in NV memory Function Print bitmap downloaded in NV memory Format ASCII FS p n m Hex 1C 70 n m Decimal 28 112 n m Value range 1 n 255 0 m 3 48 m 51 Notes Prints the bitmap downloaded in NV memory...

Page 45: ...es the height of NV bitmap In double height and quadruple mode this command feeds 2n dots and n indicates the height of NV bitmap The number of fed dots has no relationship with the line spacing set by ESC 2 and ESC 3 commands After complete the bitmap printing printer will change the line and process the following data in normal mode Relative ESC FS q GS GS v 0 FS q n xL xH yL yH d1 dk 1 xL xH yL...

Page 46: ... that haven t been defined are disabled undefined but bitmaps before that are enabled The d indicates the defined bitmap data Set a corresponding bit to be 1 for printing a dot or to be 0 for not print a dot This command defines n as the number of NV bitmaps Numbers rise in order from NV bitmap 1 Therefore the first data group xL xH yL yH d1 dk is NV bitmap 1 and the last data group xL xH yL yH d1...

Page 47: ... error status When the printer receives the command it returns relative status immediately Please avoid inserting this command between 2 or more bytes command For example In the process of sending ESC 3 n to printer hardware device already sets flag for DLE EOT 3 before printer receiving n then the printer take 10 H of DLE EOT 3 as parameter of ESC 3 n which is equivalent to send ESC 3 10 H The pr...

Page 48: ...to 0 1 1 02 2 Fixed to 1 2 0 00 0 Top cover is closed 1 04 4 Top cover is open 3 0 00 0 FEED button is not been pushed 1 08 8 FEED button is been pushed 4 1 10 16 Fixed to 1 5 0 00 0 Paper is not end 1 20 32 Paper is end stop printing 6 0 00 0 No error 1 40 64 Error occurs 7 0 00 0 Fixed to 0 n 3 Error status Bit 0 1 HEX Decimal Function 0 0 00 0 Fixed to 0 1 1 02 2 Fixed to 1 2 0 00 0 Anti jam mo...

Page 49: ...ead temperature detection sensor 3 24V voltage sensor Relative DLE ENQ GS a GS r DLE ENQ n Real time request Function Real time request Format ASCII DLE ENQ n Hex 10 05 n Decimal 16 5 n Value range 1 n 2 Notes Respond to host request n specifies the requests as follows n Request 1 Recover from an error and continue the interrupted printing 2 Recover from an error and clear the command receive buff...

Page 50: ...us n 1 49 Bit 0 1 Hex Decimal Status 0 1 0 00 0 Paper near end sensor paper adequate 1 03 3 Paper near end sensor paper near end 2 3 0 00 0 Paper end sensor paper adequate 1 0C 12 Paper end sensor paper end 4 0 00 0 Not used Fixed to 0 5 6 Undefined 7 0f 00 0 Not used Fixed to 0 Relative DLE EOT GS a GS a n Set Automatic Status Back ASB Function Set Automatic Status Back ASB Format ASCII GS a n He...

Page 51: ...used Fixed to 0 2 ON 04 4 Not used Fixed to 1 3 OFF 00 0 On line ON 08 8 Off line 4 ON 10 16 Not used Fixed to 1 5 OFF 00 0 Upper cover is closed ON 20 32 Upper cover is open 6 OFF 00 0 Paper is not being fed by using the PAPER FEED button ON 40 64 Paper is being fed by using the PAPER FEED button 7 OFF 00 0 Not used Fixed to 0 Second byte printer information Bit Off On Hex Decimal Printer Status ...

Page 52: ...are recoverable errors These errors can be eliminated and the printer can return to normal state by using DLE ENQ n 1 n 2 Errors like control board damage are irrecoverable errors Bit 6 Errors like high print head temperature are automatically recoverable errors When printing is stopped due to these errors the printer can come back to normal state automatically Bit 7 This bit is effective when the...

Page 53: ...0 0 Not used Fixed to 0 Relative DLE EOT GS r 2 6 Barcode command GS H n Select printing position for Human Readable Interpretation HRI characters Function Select the printing position for HRI characters when print barcode Format ASCII GS H n Hex 1D 48 n Decimal 29 72 n Value range 0 n 3 48 n 51 Notes n specifies the printing position for HRI as follows n Printing position 0 48 Not printed 1 49 Ab...

Page 54: ...rmat ASCII GS h n Hex 1D 68 n Decimal 29 104 n Value range 1 n 255 Notes The height of barcode is n dots Default n 162 Relative GS k GS o n Set QRCODE barcode parameters Function Set QRCODE barcode parameters Format ASCII GS o m nA nB nC Hex 1D 6F m nA nB nC Decimal 29 111 m nA nB nC Value range m 0 1 nA 255 0 nB 1 1 nC 2 The meaning of n is defined as follows Parameters Meaning of parameters nA W...

Page 55: ...k 255 48 d 57 6 CODABAR 1 k 255 48 d 57 65 d 68 36 43 45 46 47 58 11 QRCODE 1 k 928 0 d 255 65 UPC A 11 n 12 48 d 57 66 UPC E 11 n 12 48 d 57 67 JAN13 EAN13 12 n 13 48 d 57 68 JAN 8 EAN8 7 n 8 48 d 57 69 CODE39 1 n 255 45 d 57 65 d 90 32 36 37 43 d1 dk 42 70 ITF 1 n 255 48 d 57 71 CODABAR 1 n 255 48 d 57 65 d 68 36 43 45 46 47 58 72 CODE93 1 n 255 0 d 127 73 CODE128 2 n 255 0 d 127 76 QRCODE 1 n 2...

Page 56: ...mand is not affected by print modes bold double strike underline character size white black reverse printing or 90 rotated character etc except for upside down printing mode Note page mode This command develops bar code data in the print buffer but does not print it After processing barcode data this command moves the print position to the right side of the barcode If d is out of the specified ran...

Page 57: ...ter set selection characters HRI characters that are used as the function characters are not printed HRI characters that are used as the control character 00 H to 1F H and 7F H are not printed Be sure to keep spaces on both right and left sides of a barcode Spaces are different depending on the types of the barcode Relative GS H GS f GS h GS w Appendix A Example 1B 40 Initialize printer 4A 41 4E 3...

Page 58: ...9 n Value range 2 n 6 Notes Set the horizontal width of the barcode n specifies the barcode width in horizontal n Module Width mm for Single level Barcode mm Module Width mm for Binary level Barcode Thin basic module mm Thick basic module mm 1 0 125 0 125 0 375 2 0 25 0 25 0 625 3 0 375 0 375 1 0 4 0 5 0 5 1 25 5 0 625 0 625 1 625 6 0 75 0 75 1 875 Single level barcode is as following UPC A UPC E ...

Page 59: ...e specified by GS P The change of horizontal or vertical motion unit does not affect the current line spacing In standard mode the vertical motion unit is used In page mode the horizontal or vertical motion units are selected as follows depending on the printing area direction and starting position When the starting position is set to the upper left or lower right of the printing area by ESC T the...

Page 60: ... side character spacing ESC SP FS S Select line spacing ESC 2 ESC 3 The following commands only change internal flag in page mode and become effective after switching to standard mode ESC V ign mode ESC a down printing mode ESC GS L GS W The printer returns to standard mode when printer is powered off the printer is reset or ESC is used Relative FF CAN ESC FF ESC S ESC T ESC W GS GS ESC S Select s...

Page 61: ...put paper end signals Format ASCII ESC c 3 n Hex 1B 63 33 n Decimal 27 99 51 n Value range 0 n 255 Notes Select paper sensor to output paper end signals Each bit of n is defined as follows Bit 0 1 Hex Decimal Function 0 0 00 0 Undefined 1 0 00 0 Paper near end sensor is disabled 1 02 2 Paper near end sensor is enabled 2 0 00 0 Undefined 3 0 00 0 Paper near end sensor is disabled 1 08 8 Paper near ...

Page 62: ... completing the current task Default n 0 ESC c 5 n Enable disable buttons Function Enable disable buttons Format ASCII ESC c 5 n Hex 1B 63 35 n Decimal 27 99 53 n Value range 0 n 255 Notes Enable disable buttons When the least significant bit of n is 0 the buttons are enabled When the least significant bit of n is 1 the buttons are disabled Only the least significant bit of n is effective When the...

Page 63: ...oll 2 50 m specifies printing data m Printing data 1 49 Print in Hex dump mode 2 50 Internal cofiguration information printing 3 51 Cyclic character printing This command is enabled only when processed at the beginning of the line in standard mode This command is disabled in page mode If this command is received in the process of macro definition the printer will stop macro definition and execute ...

Page 64: ...E pL pH m parameter User defined function Function User defined commands The selection of function is as follows m Format Function 1 GS E pL pH m d1 d2 Enter user defined mode 2 GS E pL pH m d1 d2 d3 End user defined mode 3 GS E pL pH m a1 b18 b11 ak bk8 bk1 Set the value of memory switch 4 GS E pL pH m a Return the value of memory switch The number of bytes is specified by pL and pH pL m specifie...

Page 65: ...0 1 byte In the user defined mode only the following commands can be executed Relative Function 2 Function 3 and Function 4 of this command and GS I command GS E pL pH m d1 d2 d3 m 2 Function 2 Format ASCII GS E pL pH m d1 d2 d3 Hex 1D 28 45 pL pH 02 d1 d2 d3 Decimal 29 40 69 Pl pH 2 d1 d2 d3 Value range pL 4 pH 0 m 2 d1 79 d2 85 d3 84 Notes End the user defined function and printer performs the r...

Page 66: ...s reset can the changed settings become effective The setting values can be checked by executing the self test GS E pL pH m a m 4 Function 4 Format ASCII GS E pL pH m a Hex 1D 28 45 pL pH 04 a Decimal 29 40 69 pL pH 4 a Value range pL pH 256 2 pL 2 pH 0 m 4 1 a 8 Notes Return the values of the memory switch specified by a The contents of the returned data are as follows Returned data Hex Decimal D...

Page 67: ...parameters of print starting position 2 Set parameters of position of starting cutting paper m identifies parameter function m Function 0 48 Specify feed paper direction as forward 1 49 Specify feed paper direction as backward nL nH sets the distance of moving forward or backward to nL nH 256 vertical motion unit The vertical motion unit is specified by GS P If the command GS F occurs occurs in ma...

Page 68: ... darkness is the standard darkness If 1 m 6 it indicates the current print darkness is higher than the standard darkness 6 is the highest In standard mode even if different print darkness is set the darkness of the same line is always the same and it is subject to the print darkness finally set In page mode the print darkness of the same page is always the same If different print darkness is set i...

Page 69: ... of writing data the printer will execute error processing Default None Relative Function 2 and Function 3 of this command GS M pL pH n m n 2 50 Function 2 Format ASCII GS M pL pH n m Hex 1D 28 4D pL pH n m Decimal 29 40 77 pL pH n m Value range pL pH 256 2 pL 2 pH 0 n 2 50 0 m 1 48 m 49 When m 0 or 48 set the setting values of GS F command as the factory default values When m 1 or 49 the setting ...

Page 70: ... the printer will execute the memory error process Notes When the data is automatically loaded the initialization process is executed when any of the following process is executed Power on process by the power switch When the hardware reset is executed by the interface reset Execution of ESC Default m 0 Relative ESC Function 1 of this command GS Start end macro definition Function Start end macro ...

Page 71: ...ing Position Processing of digits less than those specified 0 48 Align right Add spaces to the left 1 49 Align right Add 0 to the left 2 50 Align left Add spaces to the right Notes If n or m is out of the defined range the previously set print mode is not changed If n 0 m does not have any meaning Default n 0 m 0 Relative GS C 1 GS C 2 GS C GS c Example 1d 43 30 03 00 Select count print mode 1d 43...

Page 72: ...H 256 If counting down reaches a value less than the minimum it is resumed with the maximum value When this command is executed the internal count value previously set is cleared Default aL 1 aH 0 bL 255 bH 255 n 1 r 1 Relative GS C 0 GS C 2 GS C GS c Example Refer to the example of GS C 0 GS C 2 nL nH Set current count value Function Set current count value Format ASCII GS C 2 nL mH Hex 1D 43 32 ...

Page 73: ...nt up mode is specified sa sb 0 0 When count down mode is specified sa sb sn sr 0 When counting stops sa sb or sn 0 or sr 0 When count up mode is specified sa is the minimum count value and sb is the maximum count value If counting up reaches a value exceeding the maximum it is resumed with the minimum value If the count value set by sc is outside the count operation range the count value is force...

Page 74: ... printer ID specified n specifies the types of the printer ID n Printer ID ID HEX 1 49 Printer model ID Transmit printer name 2 50 Printer type ID See table below 3 51 Firmware version ID Depends on firmware version n 2 priner type ID Bit Off On Hex Decimal Function 0 OFF 00 0 Two byte character code not supported ON 01 1 Two byte character code supported 1 ON 02 2 Cutter installed 2 OFF 00 0 Mark...

Page 75: ...ly cuts paper Notes for When n 0 printer feeds paper to the cut position and then cuts paper When n 0 printer feeds paper cut position n vertical motion unit inches and then cuts paper Horizontal motion unit and vertical motion unit are specified by command GS P Paper cut position is defined as following When continuous paper is used printer feeds paper for the defaut paper feeding distance When m...

Page 76: ... count value Function Print count value Format ASCII GS c Hex 1D 63 Decimal 29 99 Notes Sets the serial number in the print buffer and increments or decrements the count value After setting the current count value in the print buffer as print data a character string the printer counts up or down based on the count mode set The count value in the print buffer is printed when the printer receives a ...

Page 77: ...g and print data print and feed paper status query Read the descriptions below carefully to quickly master this approach 3 2 1 Initialization 1 Initialize printer 1B 40 2 Select print mode 1B 53 enter standard mode Default 1B 4C enter page mode 3 2 2 Set printing and print data character barcode bitmap 1 Set printing area and print position a Horizontal tab 09 b Set horizontal absolute print posit...

Page 78: ...3 33 33 33 33 33 33 33 33 33 33 33 33 33 33 0A print 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 1B 24 50 00 set absolute print position 4E 65 77 20 61 62 73 6F 6C 75 74 65 20 73 74 61 72 74 20 70 6F 73 69 74 69 6F 6E 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 0A print 1D 56 00 print c Select print direction in page mode 1B 4C enter page mode 1B 57 2...

Page 79: ...ter print mode 33 33 33 33 33 33 33 1B 21 00 select character print mode 20 4F 70 65 6E 20 69 6E 76 65 72 73 65 20 20 70 72 69 6E 74 20 6D 6F 64 65 0A print 1B 7B 01 turn upside down print mode on 33 33 33 33 33 4F 4B 21 0A print 1B 7B 00 turn upside down print mode off 33 33 33 33 33 4F 4B 21 33 33 33 33 33 4E 6F 77 20 49 27 6C 6C 20 73 68 6F 77 20 79 6F 75 20 7A 6F 6F 6D 20 69 6E 20 6D 6F 64 65 ...

Page 80: ...go to a bank to withdraw money they will get a slip with number printed on it When the number is called by some window the user can go to the corresponding window to withdraw money Related commands GS C 0 n m select count print mode GS C 1 aL aH bL bH n r select count mode A GS C 2 nL mH set the current count value GS C sa sb sn sr sc select count mode B GS c print count value and store the curren...

Page 81: ...mands 1D 2A and 1C 71 for the difference between RAM bitmap download and NV bitmap download Bitmap download data is processed as follows to take BMP bitmap for example 1 The data is arranged in column data type in the bitmap download command Refer to command 1D 2A and 1C 71 for details 2 Normally bitmap data is arranged in line data type A monochromic BMP image is made of 62 bytes of BMP image att...

Page 82: ... black reverse the value 1 in BMP data is for white which is contrary to the printer definition midData char malloc nBytesOfWidth nPixelsOfHeight 1 for i 0 i nBytesOfWidth nPixelsOfHeight i midData i 0xff pBmpData i Rotation BMP data is arranged in line data type while data downloaded to printer are arranged in column data type for row 0 row nPixelsOfWidth row for colbyte 0 colbyte nBytesOfHeight ...

Page 83: ...00000000000000020000000000000006000000 000000000E0007C0000000001C00FFE0000000003807FFE000000000387FFFE00000000073FFFF E0000000007FFFFFC000000000FFFFFFC000000000FFFF818007000000FFFC03800F801C00FFC 007000FC03E00FC000E000FC03E0060000C000FC03E00000008000FC03E00040000000FC01C00 0C00000007C000001C000000078000001C00000007800000380000000F800000700000000F00000 0700000001F000000F80000003E000000FE0000007C000...

Page 84: ...0000000 00000000000000000000000000000000000000000000000000000 1D 23 00 Select the number of the bitmap to be printed 1D 2F 00 Print the RAM bitmap 3 2 6 Recommendations on applicable flow for programm Make good use of ASB command during programming since the ASB command is able to automatically return all kinds of printer status ASB command is effective after the printer is turned on or the printe...

Page 85: ...e code set used before SHIFT SHIFT characters cannot be used in CODE C Code set selection character CODE A CODE B CODE C These characters can switch the following code characters to CODE A B or C Function character FNC1 FNC2 FNC3 FNC4 The usage of function characters depends on the application software In CODE C only FNC1 is available A 2 Code set Characters in CODE A Character Transmit Data Chara...

Page 86: ...B 42 7B 43 123 50 123 51 123 52 123 83 123 66 123 67 Characters in CODE B Character Transmit Data Character Transmit Data Character Transmit Data Hex Decimal Hex Decimal Hex Decimal SP 0 1 2 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 H I J K L M N O P Q R S T U V W X Y Z 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A ...

Page 87: ...ter Transmit Data Character Transmit Data Character Transmit Data Hex Decimal Hex Decimal Hex Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 40 ...

Page 88: ...e stored in the specified memory and the printer executes no operation All the data in the memory is printed when an ESC FF or FF command is received For example when the printer receives the data ABCDEF LF in standard mode it prints ABCDEF and feeds one line In page mode ABCDEF is written to the specified printing area in memory and the position in memory for the following print data is shifted b...

Page 89: ...left side of the image data point B in Figure B 3 is aligned with the baseline 3 If the print data including character spacing exceeds the printing area before the printer receives a command e g LF or ESC J that includes line feeding a line feed is executed automatically within the printing area The print position therefore moves to the beginning of the next line The line feed amount depends on th...

Page 90: ...BT T080 Programming Manual 83 Appendix figure B 2 storage location of character data Appendix figure B 3 storage location of print data ...

Page 91: ...BT T080 Programming Manual 84 Appendix figure B 4 storage location of downloaded bitmap ...

Reviews: