SNBC BT-UC056II Programming Manual Download Page 1

BT-UR056/BT-UC056II/BT-UC156 

PROGRAMMING MANUAL 

V1.0 

SHANDONG NEW BEIYANG INFORMATION TECHNOLOGY CO.,LTD 

Summary of Contents for BT-UC056II

Page 1: ...BT UR056 BT UC056II BT UC156 PROGRAMMING MANUAL V1 0 SHANDONG NEW BEIYANG INFORMATION TECHNOLOGY CO LTD...

Page 2: ...BT UR056 BT UC056II BT UC156 Programming Manual 1 REVISION HISTORY Date Version Description Author August 10 2005 V1 00 Primary version Mr Cong Xinyuan Mr Yang Xiangang...

Page 3: ...ial 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 confidentia...

Page 4: ...mat 6 2 Command set 7 HT 7 LF 7 FF 7 CR 8 CAN 8 DLE EOT n 8 DLE ENQ n 10 ESC FF 11 ESC SP n 11 ESC n 11 ESC nL nH 12 ESC n 13 ESC y c1 c2 x1 d1 d y x1 xk d1 d y xk 13 ESC m nL nH d1 dk 14 ESC n 16 ESC...

Page 5: ...24 ESC c 0 n 25 ESC c 3 n 25 ESC c 4 n 26 ESC c 5 n 26 ESC d n 26 ESC l n X0l X0h Y0l Y0h X1l X1h Y1l Y1h 27 ESC t n 27 ESC v 28 ESC n 28 FS p n m 29 FS q n xL xH yL yH d1 dk 1 xL xH yL yH d1 dk n 30...

Page 6: ...S S n1 n2 48 FS W n 48 3 Programming Instructions 49 3 1 General information 49 3 2 Commands application 49 3 2 1 Initialization 49 3 2 2 Printing settings and printout Characters barcode bit image 49...

Page 7: ...tal 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 identify the resolution of...

Page 8: ...every 8th character When the buffer 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 n...

Page 9: ...omatic line feed is disabled this command is ignored Notes Set the print starting position at the beginning of the lines This command CR is set according to the printer configuration Reference LF CAN...

Page 10: ...face printer In any status the printer executes this command upon receiving it n 1 Printer on line off line status Bit 0 1 Hex Decimal Function 0 0 00 0 Fixed to 0 1 1 02 2 Fixed to 0 2 0 00 0 Fixed t...

Page 11: ...printer Format ASCII DLE ENQ n Hex 10 05 n Decimal 16 5 n Range 1 n 2 Description Respond to a request from the host computer n specifies the requests as follows n Request 1 Recover from an error and...

Page 12: ...for the right side of the character to n 0 125mm n 0 0049 inches Notes When characters are magnified the character spacing is n times normal value This command sets values independently in each mode s...

Page 13: ...r size However the setting of the last received command is effective Default n 0 Reference ESC ESC E GS ESC nL nH Name Set absolute horizontal print position Format ASCII ESC nL nH Hex 1B 24 nL nH Dec...

Page 14: ...0 x 24 0 d1 d y xk 255 Description Defines user defined characters y specifies the number of bytes in the vertical direction c1 specifies the beginning character ASCII code and c2 specifies the final...

Page 15: ...7 DPI 203 DPI nL nH 256 32 24 dot single density 24 203 DPI 101 DPI nL nH 256 3 33 24 dot double density 24 203 DP 203 DPI nL nH 256 3 Notes If the values of m is out of the specified range nL and dat...

Page 16: ...in single density mode m 0 32 the printer shall print two dots for each bit of the data in double density mode m 1 33 the printer shall print one dots In calculating the printable data for each line y...

Page 17: ...ze does not affect the current underline thickness Underline mode can also be turned on or off by using ESC Note however that the last received command is effective Default n 0 Reference ESC ESC 2 Nam...

Page 18: ...T DLE ENQ ESC until it is enabled by this command Default n 1 ESC n Name Cancel user defined characters Format ASCII ESC n Hex 1B 3F n Decimal 27 63 n Range 32 n 127 Description Cancels user defined c...

Page 19: ...t Data exceeding 32 tab positions is processed as normal data Arrange tab positions in ascending order and place a NUL at the end When n k is less than or equal to the preceding value n k 1 tab settin...

Page 20: ...and feeds the paper n horizontal motion unit inches Notes After printing is completed this command sets the print starting position to the beginning of the line The paper feed amount set by this comm...

Page 21: ...standard mode Turn 90 clockwise r otation mode on off ESC V Select justification ESC a Turn upside down printing mode on off ESC Set left margin GS L Set printable area width GS W The printer returns...

Page 22: ...international character set The command is disabled for other font Default n 0 ESC S Name Select standard mode Format ASCII ESC S Hex 1B 53 Decimal 27 83 Description Switches from page mode to standa...

Page 23: ...printing area If the starting position is the upper left or lower right of the printing area data is buffered in the direction perpendicular to the paper feed direction Commands using horizontal moti...

Page 24: ...al flag 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 proc...

Page 25: ...printing position move to the left the negative direction use the complement nL nH 256 65536 N The print starting position moves from the current position to N horizontal or vertical motion unit In s...

Page 26: ...he relation of n value and paper type is shown as below n 0 set paper type as normal paper roll n 1 2 set paper type as Marked paper Notes This command can select paper type When continuous paper is s...

Page 27: ...er roll near end sensor disabled 0 1 01 1 Paper roll near end sensor enabled 0 00 0 Paper roll near end sensor disabled 1 1 02 2 Paper roll near end sensor enabled 2 7 Undefined Notes When either bit...

Page 28: ...Y1l Y1h Range 0 n 255 Description Set the starting and terminal coordinates then generate a underline in the printing buffers N specifies line thickness X0l X0h Y0l Y0h can set X0 Y0 of underline and...

Page 29: ...Normal 3 1 08 8 Cutter error 4 0 00 0 Fixed to 0 0 00 0 Normal 5 1 20 32 Printhead overheated 7 Undefined Note This command is enabled only for serial interface printer ESC n Name Turns on off upside...

Page 30: ...fined This command is not affected by print modes emphasized double strike underline character size white black reverse printing or 90 rotated characters etc except upside down printing mode If the do...

Page 31: ...e printer is busy to write data to NV memory and stops receiving any more commands Therefore before the ending of the processing of this command do not send any other commands even real time commands...

Page 32: ...ace please refer to printer configuration Before inputing NV memory the printer is in busy status immediately During the processing of this command the printer does not transmit status and does not re...

Page 33: ...1 1 2 double height 20 32 3 02 2 3 30 48 4 03 3 4 40 64 5 04 4 5 50 80 6 05 5 6 Notes This command is all characters ASCII and Kanji effective except for HRI characters If n 0 3bit or 4 7bit is outsid...

Page 34: ...e mode This command sets the absolute print position to nL nH 256 vertical or horizontal motion unit inches Notes This command is effective only in page mode If the nL nH 256 vertical or horizontal mo...

Page 35: ...downloaded bit image and macro becomes undefined and the receive buffer and print buffer are cleared and each setting returns to the default value GS x y d1 d x y 8 Name Define downloaded bit image F...

Page 36: ...in the print buffer This command has no effect in the print modes emphasized double strike underline character size or white black reverse printing except for upside down printing mode If the download...

Page 37: ...ormat ASCII GS B n Hex 1D 42 n Decimal 29 66 n Range 0 n 255 Description Turns on or off white black reverse printing mode When the LSB of n is 0 white black reverse mode is turned off When the LSB of...

Page 38: ...nH Decimal 29 76 nL nH Range 0 nL 255 0 nH 255 Description Sets the left margin using nL and nH The left margin is set to nL nH 256 0 125mm Notes This command is effective only processed at the beginn...

Page 39: ...relative vertical print starting position from the current position in page mode This command sets the distance from the current position to nL nH 256 0 125 mm Notes This command is ignored unless pag...

Page 40: ...ion Specifies the status items to include using n as follows Bit Off On Hex Decimal Status for ASB 0 off 00 0 Undefined fixed to 0 off 00 0 On line off line status enabled 1 on 02 2 On line off line s...

Page 41: ...ccurred Off 00 0 No automatically recoverable error 6 On 40 64 Automatically recoverable error occurred 7 Off 00 0 Not used Fixed to Off Bit 5 It is similar with paper end or paper checkout error The...

Page 42: ...n Hex 1D 66 n Decimal 29 102 n Range n 0 1 48 49 Description Selects a font for the HRI characters used when printing a bar code n selects a font from the following table n Font 0 48 Font A 12 24 1 4...

Page 43: ...PC A or UPC E code is selected the remaining characters are processed as normal characters after the printer receiving 12 byte barcode data When JAN13 EAN13 is selected the remaining characters are pr...

Page 44: ...printer take the following points into account for data transmission The top of the bar code data string must be code set selection character any of CODE A CODE B or CODE C which selects Special char...

Page 45: ...ption Transmits the status specified by n as follows n Function 1 49 Transmits paper sensor status 2 50 Notes This command is valid for serial model only This command is executed when the data in the...

Page 46: ...ll print modes character size emphasized double strike upside down underline white black reverse printing etc for raster bit image Bit images outside the printing area is ignored The ESC a Select just...

Page 47: ...Undefined 0 00 0 Underline mode is OFF 7 1 80 128 Underline mode is ON Notes When both double width and double height modes are set including right and left side character spacing quadruple size char...

Page 48: ...e for Kanji characters 1 dot thick 2 50 Turns on underline mode for Kanji characters 2 dot thick Notes The printer can underline all characters including right and left side character spacing but cann...

Page 49: ...n Decimal 28 87 n Range 0 n 255 Description Turns quadruple size mode on or off for Kanji characters When the LSB of n is 0 quadruple size mode for Kanji characters is turned off When the LSB of n is...

Page 50: ...fault 1B 4C enter page mode 3 2 2 Printing settings and printout Characters barcode bit image 1 The printing area and position setting a Horizontal tab 09 b Set horizontal absolute beginning position...

Page 51: ...de 1B 4C switch to page mode 1B 57 20 00 00 00 40 01 90 01 set print area in page mode 1B 54 00 select print direction in page mod 30 30 30 30 30 30 30 30 30 30 30 0A print 1B 54 01 select print direc...

Page 52: ...and 1B 0C not clear page buffers Typical example 1B 4C switch to page mode 1B 57 20 00 00 00 60 02 20 03 set the printing area in page mode 50 72 69 6E 74 20 49 6E 20 50 61 67 65 20 4D 6F 64 65 33 33...

Page 53: ...at a bit image occupies in the memory is Line width in bits 31 32 4 line height in bits Below is an example written under VC environment for reference only Note A non monochromic BMP image must be tra...

Page 54: ...f colnum rownum tempdata temp col midData nPixelsOfHeight 1 colbyte 8 col nBytesOfWidth row 8 colnum rownum else tempdata temp col midData nPixelsOfHeight 1 colbyte 8 col nBytesOfWidth row 8 rownum co...

Page 55: ...00 0001C000380000000001C0007000000000038000E000000000030001CE00000000070007FE000000 0007003FFE000000000703FFFE00000000073FFFFE0000000007FFFFFC0000000007FFFFFC00000 00007FFFE18000000000FFFC038000000000...

Page 56: ...nting data only when the printer is in normal status 2 Transmits the data to be printed include the command settings before printing If printed data is bit image don t transmit status inquiry command...

Page 57: ...ng from the second character SHIFT characters are used only for Switch between code set A and code set B but cannot make the current code set enter or exit code set c status Code set selection charact...

Page 58: ...ers in code set B Transmit data Transmit data Transmit data Character Hex Decimal Character Hex Decimal Character Hex Decimal SP 0 1 2 3 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 32...

Page 59: ...e set C Transmit 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 00 01 02 03 04 05 06 07 08 09 0A 0...

Page 60: ...B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49...

Page 61: ...lable commands and parameters are the same for both standard and page modes However these values can be set independently in each mode for the ESC SP ESC 2 ESC 3 and FS S commands For these commands d...

Page 62: ...rs higher order dots with the previous line To avoid this increase the amount of line spacing Example When printing a downloaded bit image of six bytes in the vertical direction use the following form...

Page 63: ...BT UR056 BT UC056II BT UC156 Programming Manual Figure B 3 Print Data Memory Position Figure B 4 Downloaded Bit Image Memory Position 62...

Reviews: