SNBC BT-T080 Скачать руководство пользователя страница 1

 

 

 

 

 

 

 

 

 

 

 
 
 

PROGRAMMING MANUAL 

 

 

 

KIOSK Printer 

 

BT-T080 

 

 

 

 

 

 

 

 

 

 

Shandong New Beiyang Information Technology Co.,Lt

CONFIDENTIAL

Содержание BT-T080

Страница 1: ...PROGRAMMING MANUAL KIOSK Printer BT T080 Shandong New Beiyang Information Technology Co Lt CONFIDENTIAL...

Страница 2: ...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 resp...

Страница 3: ...ons 7 ESC T n Select printing area direction in page mode 7 ESC W xL xH yL yH dxL dxH dyL dyH Set printing area in page mode 9 ESC nL nH Set relative horizontal printing position 11 ESC a n Select cha...

Страница 4: ...Set Chinese character mode 29 FS Select Chinese character mode 29 FS n Select Cancel underline mode for Chinese characters 30 FS Cancel Chinese character mode 30 FS 2 c1 c2 d1 dk Define user defined C...

Страница 5: ...Initialize printer 51 ESC L Select page mode 52 ESC S Select standard mode 52 ESC c 0 n Select paper type 53 ESC c 3 n Select paper sensor to output paper end signals 53 ESC c 4 n Select paper sensor...

Страница 6: ...67 GS r t m Execute macro 67 GS c Print count value 68 3 Programming instructions 69 3 1 General information 69 3 2 Programming examples 69 3 2 1 Initialization 69 3 2 2 Set printing and print data c...

Страница 7: ...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 li...

Страница 8: ...r 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 unde...

Страница 9: ...e 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...

Страница 10: ...cted 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 posit...

Страница 11: ...zontal 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 t...

Страница 12: ...g 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 v...

Страница 13: ...ns 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 d...

Страница 14: ...on 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...

Страница 15: ...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 t...

Страница 16: ...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...

Страница 17: ...he 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...

Страница 18: ...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 Sett...

Страница 19: ...e 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 perpendic...

Страница 20: ...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 dir...

Страница 21: ...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...

Страница 22: ...nting 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...

Страница 23: ...5 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...

Страница 24: ...endently 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 cha...

Страница 25: ...tive 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 character...

Страница 26: ...nly 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 c...

Страница 27: ...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 define...

Страница 28: ...y 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 th...

Страница 29: ...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...

Страница 30: ...t 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 compress...

Страница 31: ...se 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 clockwi...

Страница 32: ...52 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...

Страница 33: ...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...

Страница 34: ...k 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 mo...

Страница 35: ...ng 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 cloc...

Страница 36: ...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 incl...

Страница 37: ...defined characters c1 FEH A1H c2 FEH 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 spec...

Страница 38: ...per 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...

Страница 39: ...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 t...

Страница 40: ...tionship 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 bitm...

Страница 41: ...nd 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 turne...

Страница 42: ...n 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 correspondin...

Страница 43: ...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...

Страница 44: ...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...

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

Страница 46: ...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 parame...

Страница 47: ...FEED button is been pushed 4 1 10 16 Fixed to 1 0 00 0 Paper is not end 5 1 20 32 Paper is end stop printing 0 00 0 No error 6 1 40 64 Error occurs 7 0 00 0 Fixed to 0 n 3 Error status Bit 0 1 HEX Dec...

Страница 48: ...Recover from an error and continue the interrupted printing 2 Recover from an error and clear the command receive buffer and print buffers This command is effective only when cutter error communicati...

Страница 49: ...Status Back ASB Format ASCII GS a n Hex 1D 61 n Decimal 29 97 n Value range 0 n 255 Notes Decide the content of ASB The meanings of parameter n are as follows Bit Off On Hex Decimal Status for ASB 0 O...

Страница 50: ...g status OFF 00 0 Paper FEED switch is turned Off 1 ON 02 2 Paper FEED switch is turned On OFF 00 0 Anti jam module detects that printer is in normal status 2 ON 04 4 Anti jam module detects that ther...

Страница 51: ...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 characte...

Страница 52: ...n 255 Notes The height of barcode is n dots Default n 162 Relative GS k GS k m d1 dk NUL GS k m n d1 dn Print barcode Function Select a barcode type and print barcode Format ASCII GS k m d1 d k NUL H...

Страница 53: ...ing 8 bytes of barcode data The number of data for ITF barcode must be even numbers When an odd number of data is input the printer ignores the last received data Note n indicates the number of barcod...

Страница 54: ...cified character set ASCII Hex Decimal SHIFT S 7B 53 123 83 CODE A A 7B 41 123 65 CODE B B 7B 42 123 66 CODE C C 7B 43 123 67 FNC1 1 7B 31 123 49 FNC2 2 7B 32 123 50 FNC3 3 7B 33 123 51 FNC4 4 7B 34 1...

Страница 55: ...ed character 1D 77 01 The print position of HRI characters is above the barcode 1D 68 40 Barcode height is 64 203 inch 1D 6B 02 30 31 32 33 34 35 36 37 38 39 30 35 39 00 0A 1D 48 02 Set the width of t...

Страница 56: ...is as following UPC A UPC E JAN13 EAN13 JAN8 EAN8 CODE93 CODE128 Binary level Barcode is as following CODE39 ITF CODABAR Default n 2 Relative GS k GS p n Set the size of PDF417 barcode Function Set t...

Страница 57: ...s Set line spacing to n vertical or horizontal motion unit The line spacing can be set independently in standard mode and in page mode The horizontal and vertical motion units are specified by GS P Th...

Страница 58: ...e This command sets the print position to the position specified by commands ESC T and ESC W This command switches the settings of the following commands to be the value in page mode Set right side ch...

Страница 59: ...es Select paper type specified by n as follows n Paper type 0 Continuous paper 153 Marked paper This command has no effection except n equals 0 153 Default n 0 ESC c 3 n Select paper sensor to output...

Страница 60: ...Paper near end sensor enabled 2 7 Undefined When either bit 0 or bit 1 of n is 1 paper near end sensor is enabled and when the printer detects paper near end it stops printing after completing the cu...

Страница 61: ...n m Hex 1D 28 41 pL pH n m Decimal 29 40 65 pL pH n m Value range pL pH 256 2 pL 2 pH 0 0 n 2 48 n 50 1 m 3 49 m 51 Notes Execute the test printing in the mode decided by n m n specifies test paper ty...

Страница 62: ...esss FEED button three times 2 Send data to be printed 30 31 32 33 34 35 36 37 31 32 33 34 35 36 37 38 41 42 43 44 45 46 47 48 42 43 44 45 46 47 48 49 3 Press the feeding button three times after prin...

Страница 63: ...ASCII GS E pL pH m d1 d2 Hex 1D 28 45 Pl pH 01 d1 d2 Decimal 29 40 69 pL pH 1 d1 d2 Value range pL 3 pH 0 m 1 d1 73 d2 78 Notes Enter user defined mode and return the following data Header Hexadecima...

Страница 64: ...t The total bit of the memory switch is 8 The value of b is processed in order of bit 8 to bit 1 If an error occurs in the process of writing data the memory error process is executed When the value o...

Страница 65: ...starting position and cut position Format ASCII GS F pL pH a m nL nH Hex 1D 28 46 pL pH a m nL nH Decimal 29 40 70 pL pH a m nL nH Value range pL pH 256 4 pL 4 pH 0 1 a 2 m 0 48 or 1 49 0 nL nH 256 6...

Страница 66: ...m Set print darkness Function Set print darkness Format ASCII GS K pL pH n m Hex 1D 28 4B 02 00 31 m Decimal 29 40 75 2 0 49 m Value range pL pH 256 2 pL 2 pH 0 n 49 6 m 6 Notes n sets print darkness...

Страница 67: ...t ASCII GS MpL 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 1 49 m 1 49 Notes Save the data set by command GS F into NV memory If an error occurs in the...

Страница 68: ...cified data by this command are stored in NV memory If the data will be written in the the memory which are already written with the same data the data saving process is not executed If an error occur...

Страница 69: ...ecifies the number of digits to be printed as follows When n 0 the printer prints the actual digits When n 1 to 5 the printer prints the number of digits as n m specifies the printing position within...

Страница 70: ...is aL aH 256 and the maximum value is bL bH 256 If counting up reaches a value exceeding the maximum it is resumed with the minimum value When selecting count down mode the maximum count value is aL a...

Страница 71: ...lects a count mode for the serial number A sa sb sn sr and sc are all displayed in ASCII characters using the codes for 0 to 9 sa and sb specify the count range sn indicates the stepping amount for co...

Страница 72: ...3B 31 3B 31 3B Select count mode B 1D 63 Enter count mode and print current count value 0A Send the above Example 2 the printed count value is in a cycle 1 9 GS I n Inquire printer ID Function Inquir...

Страница 73: ...left uncut 66 Feed paper cut position n vertical motion unit inches and partial cut Notes for This command is effective only when processed at the beginning of a line When m 0 48 or m 1 49 printer di...

Страница 74: ...acro is executed m 1 paper cannot be fed by using the FEED button Relative GS GS c Print count value Function Print count value Format ASCII GS c Hex 1D 63 Decimal 29 99 Notes Sets the serial number i...

Страница 75: ...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...

Страница 76: ...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...

Страница 77: ...er 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 3...

Страница 78: ...o 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...

Страница 79: ...ands 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...

Страница 80: ...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 0...

Страница 81: ...0000000000000020000000000000006000000 000000000E0007C0000000001C00FFE0000000003807FFE000000000387FFFE00000000073FFFF E0000000007FFFFFC000000000FFFFFFC000000000FFFF818007000000FFFC03800F801C00FFC 00700...

Страница 82: ...000000 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...

Страница 83: ...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 Funct...

Страница 84: ...42 7B 43 123 50 123 51 123 52 123 83 123 66 123 67 Characters in CODE B Transmit Data Transmit Data Transmit Data Character Hex Decimal Character Hex Decimal Character Hex Decimal SP 0 1 2 20 21 22 2...

Страница 85: ...t Data Transmit Data Transmit Data Character Hex Decimal Character Hex Decimal Character 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 0...

Страница 86: ...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 ABCD...

Страница 87: ...eft 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...

Страница 88: ...BT T080 Programming Manual 82 Appendix figure B 2 storage location of character data Appendix figure B 3 storage location of print data...

Страница 89: ...BT T080 Programming Manual 83 Appendix figure B 4 storage location of downloaded bitmap...

Отзывы: