SNBC BT-UR056 Programmer'S Manual Download Page 9

Technical Updates                                        SNBC CONFIDENCIAL  

Shandong New Beiyang Information Technology Co.,Ltd. 

Page 8            

00 

Fixed to 0 

 

n = 4:    Paper transmission status 

Bit 1/0  Hex 

Decimal 

Function 

00 

Fixed to 0 

02 

Fixed to 1 

0 00 

Paper 

end 

2,3 

1 0C 

12 

Paper 

adequate 

10 

16 

Fixed to 1. 

0 00 

Paper 

present 

5,6 

1 60 

96 

Paper 

end 

 

00 

Fixed to 0 

[Reference]  

DLE ENQ, GS a, GS r

 

 

DLE ENQ n

 

[Name]    

Real-time request to printer 

[Format] 

 ASCII 

 

  DLE 

 ENQ 

 

Hex 

   10 

 

 05 

 

 n 

Decimal 

  16 

 

 5  n 

[Range]  

 2 

[Description] Responds to a request from the host computer. n specifies the requests as follows: 

n Request 

1

 

Recover from an error and restart printing from the line where the error occurred

 

2

 

Recover from an error and clear the data in the receiving and printing buffers

 

[Notes]    

· This command is effective only when mark checkout has error or paper is end. 
· In Serial interface mode, the printer starts processing data upon receiving this   
 command. 
· In Parallel interface model, this command can not be executed when the printer is busy.   
· This command should not be contained within another command that consists 

of two or more bytes. 

· Even though the printer is disabled with 

ESC = 

(Select peripheral device), the error 

recovery functions are effective. 

[Reference]  

DLE EOT 

 

ESC FF 

[Name]    

Print data in page mode 

[Format]  

ASCII    

ESC   FF 

Hex 

  1B 

 

 0C 

Decimal  

27   

12 

[Description] In page mode, prints all buffered data in the printing area collectively. 
[Notes]    

· This command is enabled only in page mode. 

            · In using labels, the command shall not execute label orientation after the printing. 

· After printing, the printer does not clear the buffered data, don’t change   
  setting values for 

ESC T 

and 

ESC W

, and the position for buffering characters. 

[Reference]  

FF, ESC L, ESC S 

 

Summary of Contents for BT-UR056

Page 1: ...Technical Updates SNBC CONFIDENCIAL PROGRAMMER MANUAL BT UR056 Embeded Print Unit V1 0 SHANDONG NEW BEIYANG INFORMATION TECHNOLOGY CO LTD June 2 2006...

Page 2: ...EOT n 6 DLE ENQ n 8 ESC FF 8 ESC SP n 9 ESC n 9 ESC nL nH 10 ESC n 10 ESC y c1 c2 x1 d1 d y x1 xk d1 d y xk 10 ESC m nL nH d1 dk 12 ESC n 13 ESC 2 14 ESC 3 n 14 ESC n 14 ESC n 15 ESC 15 ESC D n1 nk NU...

Page 3: ...t m 36 GS a n 36 GS f n 38 GS h n 39 GS k m d1 dk NUL GS k m n d1 dn 39 GS r n 41 GS v 0 m xL xH yL yH d1 dk 42 GS w n 43 Kanji Control Commands 43 FS n 43 FS 44 FS n 44 FS 45 FS S n1 n2 45 FS W n 45...

Page 4: ...r the latest information please contact with SNBC or your local distributor Copyright Copyright 2005 by New Beiyang Printed in China Version 1 0 z Technical Contact Information In CHINA Address 169 To...

Page 5: ...motion unit and horizontal motion unit which specify the least space for vertical motion and horizontal motion ASB Auto status back DPI Print dots per inch one inch equals to 25 4mm It is used to ide...

Page 6: ...When the buffers of the line is full the printer executes as follows In standard mode the printer print the data of current line and set the printing position at the beginning of next line In page mod...

Page 7: ...command CR is set according to the printer configuration Reference LF CAN Name Cancel print data in page mode Format ASCII CAN Hex 18 Decimal 24 Description In page mode deletes all print data in cur...

Page 8: ...On line 1 08 8 Off line 4 1 10 16 Fixed to 0 5 0 00 0 Fixed to 0 0 00 0 The state of printer is normal 6 1 40 64 The state of printer is abnormal 7 0 00 00 Fixed to 0 n 2 Printer status Bit 0 1 Hex D...

Page 9: ...s This command is effective only when mark checkout has error or paper is end In Serial interface mode the printer starts processing data upon receiving this command In Parallel interface model this c...

Page 10: ...se chinese font it is disabled If the printer use western font setting character is font 1 1 2 Undefined 0 00 0 Emphasized mode not selected 3 1 08 8 Emphasized mode selected 0 00 0 Double height mode...

Page 11: ...mode horizontal or vertical motion unit differs depending on the direction and starting position of the printable area as follows 1 When the starting position is set to the upper left or lower right...

Page 12: ...s The allowable character code range is from ASCII code 20 H to 7F H 96 characters It is possible to define multiple characters for consecutive character codes If only one character is desired use c1...

Page 13: ...line the excess data is ignored d indicates the bit image data each bit represent a dot Set a corresponding bit to 1 to print a dot or to 0 to not print a dot After sending a bit image the printer ret...

Page 14: ...SNBC CONFIDENCIAL Shandong New Beiyang Information Technology Co Ltd Page 13 When 24 dot bit image is selected ESC n Name Turn underline mode on off Format ASCII ESC n Hex 1B 2D n Decimal 27 45 n Ran...

Page 15: ...ctive Default n 0 Reference ESC ESC 2 Name Select default line spacing Format ASCII ESC 2 Hex 1B 32 Decimal 27 50 Description Set the line spacing to be 3 875 mm 31 x 0 125 mm Notes The line spacing c...

Page 16: ...t been defined for the specified character code the printer ignores this command Cancel the character presented by n in user defined characters After the cancellation internal character set shall be u...

Page 17: ...processed as normal data ESC D NUL cancels all horizontal tab positions Change character width and previous tab positions specified is not changed Character width is independent under standard mode a...

Page 18: ...g position of print in the way as below When the starting position is set to the upper left or lower right of the printable area using ESC T the vertical motion unit y is used When the starting positi...

Page 19: ...cription Select character font n Function 0 48 Character font A 12 24 selected 1 49 Character font B 9 17 selected 2 50 User defined character selected 3 51 Select Kanji font 3 24 24 4 52 Select Kanji...

Page 20: ...fective only in page mode Data buffered in page mode are cleared This command sets the print position to the beginning of the line The printing area in page mode are initialized to be default value Th...

Page 21: ...GS GS If the starting position is the upper right or lower left of the printing area data is buffered in the paper feed direction Commands using horizontal motion units ESC 3 ESC J GS GS Commands usin...

Page 22: ...le area the printer stops command processing and processes the following data as normal data If the printing area width or height is set to 0 the printer stops command processing and processes the fol...

Page 23: ...nit In standard mode the horizontal motion unit is used In page mode the horizontal or vertical motion unit can be selected as follows depending on the starting point and direction of the printing are...

Page 24: ...he paper type is recovered as a default ESC c 3 n Name Select paper sensor s to output paper end signals Format ASCII ESC c 3 n Hex 1B 63 33 n Decimal 27 99 51 n Range 0 n 255 Description Selects the...

Page 25: ...ables the panel buttons When the LSB of n is 0 the panel buttons are enabled When the LSB of n is 1 the panel buttons are disabled Notes Only the lowest bit of n is valid When the panel buttons are di...

Page 26: ...equal to X1 When X0 Y0 and X1 Y1 of the line exceed the printing area the command is disabled ESC t n Name Select character code table Format ASCII ESC t n Hex 1B 74 n Decimal 27 116 n Range 0 n 5 16...

Page 27: ...ge 0 n 255 Description Turns upside down printing mode on or off When the LSB of n is 0 upside down printing mode is turned off When the LSB of n is 1 upside down printing mode is turned on Notes Only...

Page 28: ...and GS W is less than the printing width needed by GS the printer shall operate as below immediately But cannot exceed Max printing width 1 The printing area extends to the right for matching the data...

Page 29: ...V bit images other than the first one when the printer processes xL xH yL yH out of the defined range it stops processing this command and starts writing into the NV images At this time NV bit images...

Page 30: ...t image data plus 4 bytes Reference FS p Example When xL 64 xH 0 yL 96 yH 0 GS FF Name Feed marked paper to print position Format ASCII GS FF Hex 1D 0C Decimal 29 12 Description Feed marked paper to p...

Page 31: ...and the horizontal direction is perpendicular to the paper feed direction However when character orientation changes in 90 clockwise rotation mode the relationship between vertical and horizontal dire...

Page 32: ...by ESC T This command operates as follows depending on the starting position of the printing area specified by ESC T When the starting position is set to the upper left or lower right this command set...

Page 33: ...d1 d x y 8 Hex 1D 2A x y d1 d x y 8 Decimal 29 42 x y d1 d x y 8 Range 1 x 255 1 y 48 x y 1023 0 d 255 Description Defines a downloaded bit image using the number of bytes specified by x and y x speci...

Page 34: ...immediately but cannot exceed Max printing width 1 The printing area extends to the right for meeting the data volumn of bit image 2 If step 1 cannot provide enough width the left margin shall be red...

Page 35: ...does not affect the space between lines White black reverse mode has a higher priority than underline mode Even if underline mode is on it is disabled but not canceled when white black reverse mode is...

Page 36: ...II GS W nL nH Hex 1D 57 nL nH Decimal 29 87 nL nH Range 0 nL 255 0 nH 255 Description Sets the printing area width specified by nL and nH The printing area width is set to nL nH 256 0 125 mm Notes Thi...

Page 37: ...pecifies the waiting time for executing the macro m specifies macro executing mode When the LSB of m 0 The macro executes r times continuously at the interval specified by tx100ms When the LSB of m 1...

Page 38: ...ecuted after the data is processed in the receive buffer there may be a time lag between data reception and status transmission Even though the printer is disabled by ESC the four byte status are tran...

Page 39: ...2 Paper roll end sensor paper end 4 Off 00 0 Not used Fixed to 0 Off 00 0 No unrecoverable error in the print 5 On 20 32 Unrecoverable error occurred in the print Off 00 0 The printer is not in printi...

Page 40: ...0 ASCII GS k m n d1 dn Hex 1D 6B m n d1 dn Decimal 29 107 m n d1 dn Range 0 m 6 k and d depends on the bar code system used 65 m 73 k and d depends on the bar code system used Description Selects a b...

Page 41: ...uch paper as is required to print the bar code regardless of the line spacing specified by ESC 2 or ESC 3 This command is enabled only when no data exists in the print buffer When data exists in the p...

Page 42: ...he printer receives characters that cannot be used in the special code set the printer stops command processing and process the following data as normal data The printer does not print HRI characters...

Page 43: ...image The value of m selects it s mode as follows m Mode Vertical Dot Density DPI Horizontal Dot Density DPI 0 48 Normal 203DPI 203DPI 1 49 Double width 203DPI 101DPI 2 50 Double height 101 DPI 203DP...

Page 44: ...bar code width as follows Even level Module Width n Odd level Module Width mm Thin element width mm Thick element width mm 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...

Page 45: ...d at the baseline It is possible to emphasize the Kanji character using FS W or GS the setting of the last received command is effective It is possible to turn under line mode on or off using FS and t...

Page 46: ...els Kanji character mode Notes When the Kanji character mode is not selected all character codes are processed one byte at a time as ASCII code Kanji character mode is selected when the power is turne...

Page 47: ...llowing the commands are not underlined For instance 42 43 4 Contents in parentheses are interpretations of the commands Parentheses and contents in them are not parts of the commands transmitted to p...

Page 48: ...set horizontal tab position 09 move the print position to the next horizontal tab position 33 33 33 33 09 as above 33 33 33 33 09 as above 33 33 33 33 0A print 33 33 33 33 33 33 33 33 33 33 33 33 33 3...

Page 49: ...t 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 printing mode on 33 33 33 33 33 4F 4B 21 0A print 1B 7B 00 turn off upside down pri...

Page 50: ...ommands 1D 2A and 1C 71 for the difference between RAM bit image download and NV bit image download Bit image data processing by taking an example of BMP format bit images 1 The data is arranged in co...

Page 51: ...Height 8 White 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 nPixelsOfHeigh...

Page 52: ...FE000000000387FFFE00000000073FFFFE0000000007FFFFFC000000000 FFFFFFC000000000FFFF818007000000FFFC03800F801C00FFC007000FC03E00FC000E000FC03 E0060000C000FC03E00000008000FC03E00040000000FC01C000C00000007C...

Page 53: ...00000000000000000000000000000000000000000000000000 1D 23 00 Select the number of the bit image to be printed 1D 2F 00 Print the RAM bit image 3 3 6 Recommendations on applicable flow for programm Sinc...

Page 54: ...100 numerals from 00 to 99 The following special characters are also available in CODE128 SHIFT characters In code set A the character just after SHIFT is processed as a character for code set B In c...

Page 55: ...19 1A 1B 1C 1D 1E 1F 20 21 22 23 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K 28 29 2A 2B 2C 2D 2E 2F 30...

Page 56: ...3 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 H I J K L M N O P Q R S T U V W X Y Z _ a b c d e f 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B...

Page 57: ...03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 40 41 42 43 44 45 46 47 48 49 50 51 52...

Page 58: ...r example when the printer receives the data ABCDEF LF in standard mode it prints ABCDEF immediately and feeds the paper by one line In page mode ABCDEF is written to the specified printing area in me...

Page 59: ...B 3 is aligned with the baseline 3 If the print data including the space to the right of a character exceeds the printable area before the printer receives a command e g LF or ESC J that includes lin...

Page 60: ...Technical Updates SNBC CONFIDENCIAL Shandong New Beiyang Information Technology Co Ltd Page 59 Figure B 2 Character Data Memory Position Figure B 3 Print Data Memory Position...

Page 61: ...Technical Updates SNBC CONFIDENCIAL Shandong New Beiyang Information Technology Co Ltd Page 60 Figure B 4 Downloaded Bit Image Memory Position...

Reviews: