Table of Contents

Advertisement

Receipt Printer
BTP-R580II
Programming Manual
Shandong New Beiyang Information Technology Co., Ltd.

Advertisement

Table of Contents
loading

Summary of Contents for SNBC BTP-R580II

  • Page 1 Receipt Printer BTP-R580II Programming Manual Shandong New Beiyang Information Technology Co., Ltd.
  • Page 2 BTP-R580II Programming Manual REVISION HISTORY Date Version Description Author 2011-9-6 V100 Initial draft Sun Chuanliang - 1 -...
  • Page 3 When you terminate the cooperation with SNBC or SNBC puts forward a request, you have to stop using this manual and return it to SNBC, or destroy the confidential information.
  • Page 4: Table Of Contents

    BTP-R580II Programming Manual Contents 1 Overview .............................1 1.1 Command classification........................1 1.2 Key terms .............................1 1.3 Command format ..........................2 2 Command description .........................3 2.1 Print commands..........................3 LF Print and feed one line.......................3 FF Print and feed paper........................3 CR Print and carriage return ......................3 ESC FF Print in page mode ......................3...
  • Page 5 BTP-R580II Programming Manual ESC % n Select/Cancel user-defined characters .................19 ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] Define user-defined characters....19 ESC – n Select/Cancel underline mode..................21 ESC ? n Cancel user-defined characters..................22 ESC E n Select/Cancel emphasized mode...................22 ESC G n Select/Cancel double-strike mode .................22...
  • Page 6 BTP-R580II Programming Manual GS a n Automatic Status Back (ASB) ...................41 GS r n Return status ........................43 2.6 Barcode commands........................44 GS H n Select print position for HRI characters................44 GS f n Select font for HRI characters....................44 GS h n Select barcode height.......................44 ①GS k m d1...dk NUL②GS k m n d1...dn Print barcode..............45...
  • Page 7 BTP-R580II Programming Manual ESC 3 n Set line spacing ......................62 ESC = n Select printer ........................62 ESC @ Initialize the printer......................63 ESC L Select page mode......................63 ESC S Select standard mode .......................63 ESC c 3 n Select paper sensor to output paper end signals............64 ESC c 4 n Select paper near end sensor to stop printing .............65...
  • Page 8: Overview

    BTP-R580II Programming Manual 1 Overview This manual classifies the printer commands into several kinds based on its functions, and also describes the applications of relative commands in detail depending on its sorts. Hopefully, it can help the programmers to get known of those commands.
  • Page 9: Command Format

    BTP-R580II Programming Manual 1.3 Command format [Function] The name and function summary of commands; [Format] The format of command data, such as ASCII, Hex and Decimal; [Range] The value range of parameter in the command; [Note] Explain the main features and application notices of commands;...
  • Page 10: Command Description

    BTP-R580II Programming Manual 2 Command description 2.1 Print commands LF Print and feed one line [Function] Print the data in buffer and feed one line [Format] ASCII Decimal 10 [Note] This command sets the current position to the beginning of the line.
  • Page 11: Esc J N Print And Feed Paper

    BTP-R580II Programming Manual ESC J n Print and feed paper [Function] Print the data in buffer and feed paper [n × vertical/horizontal motion unit] inch. [Format] ASCII ESC J n 4A n Decimal 27 74 n [Range] 0 ≤n ≤ 255 [Notes] •...
  • Page 12: Location Commands

    BTP-R580II Programming Manual • The maximum paper feed amount is 1016 mm. If the paper feed amount is more than 1016 mm, the printer feeds paper only 1016 mm. [Relative] ESC 2, ESC 3 [Example] 1B 40 (Initialize the printer)
  • Page 13: Esc $ Nl Nh Set Absolute Horizontal Print Position

    BTP-R580II Programming Manual 09 (the same as above) 33 33 33 33 09 (the same as above) 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...
  • Page 14: Esc T N Select Print Area Direction In Page Mode

    BTP-R580II Programming Manual [Range] 1 ≤ n ≤ 255 0 ≤ k ≤ 32 [Notes] • The horizontal tab position is stored as a value of [character width × n]. The character width includes the right-side character spacing, and the double-width characters are set with twice the width of normal characters.
  • Page 15: Esc W Xl Xh Yl Yh Dxl Dxh Dyl Dyh Set Print Area In Page Mode

    BTP-R580II Programming Manual Commands using horizontal motion unit: ESC SP, ESC $, ESC \ Commands using vertical motion unit: ESC 3, ESC J, GS $, GS \ ② If the starting position is the upper right or lower left of the print area, data is...
  • Page 16 BTP-R580II Programming Manual Horizontal starting position: x0 = [( xL + xH × 256) × (horizontal motion unit)] Vertical starting position: y0 = [( yL + yH × 256) × (vertical motion unit) ] Print area width: dx = [ (dxL + dxH × 256) × (horizontal motion unit) ] Print area height: dy = [ (dyL + dyH ×...
  • Page 17: Esc \ Nl Nh Set Relative Horizontal Printing Position

    BTP-R580II Programming Manual 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 print area in page mode) 1B 24 00 00 (set absolute horizontal starting position to be starting point)
  • Page 18: Esc A N Select Character Align Mode

    BTP-R580II Programming Manual • 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 position of the print area: ①...
  • Page 19: Gs $ Nl Nh Set The Absolute Vertical Position In

    BTP-R580II Programming Manual GS $ nL nH Set the absolute vertical position in page mode [Function] This command sets the absolute vertical position in page mode. [Format] ASCII nL nH nL nH Decimal 29 nL nH [Range] 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 [Notes] •...
  • Page 20: Gs P X Y Set The Horizontal And Vertical Motion Units

    BTP-R580II Programming Manual • This command does not affect printing in page mode. • If the setting exceeds the maximum printable width, the maximum printable width will be used. • The horizontal and vertical motion units are specified by GS P. Changing horizontal and vertical motion unit does not affect the current left margin.
  • Page 21: Gs W Nl Nh Set Print Area Width

    BTP-R580II Programming Manual starting position of print area: ① When the print starting position is set to the upper left (Print direction from left to right) or lower right (Print direction from right to left) of the print area by ESC T:...
  • Page 22: Gs \ Nl Nh Set Relative Vertical Position In

    BTP-R580II Programming Manual [Relative] GS L, GS P [Example] Refer to GS L GS \ nL nH Set relative vertical position in page mode [Function] Set relative vertical print position in page mode. [Format] ASCII nL nH nL nH Decimal 29...
  • Page 23: Esc Sp N Set Right-Side Character Spacing

    BTP-R580II Programming Manual 1B 4C (Enter page mode) 1B 57 00 00 00 00 20 02 E8 00 (Set printing width and height in page mode) 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...
  • Page 24: Esc ! N Select Print Mode

    BTP-R580II Programming Manual area direction and starting position as follows: ① When the starting position is set to the upper left or lower right of the print area by ESC T, the horizontal motion unit is used. ② When the starting position is set to the upper right or lower left of the print area by ESC T, the vertical motion unit is used.
  • Page 25 BTP-R580II Programming Manual • When both double-height and double-width modes are selected, characters will be enlarged two times in horizontal and vertical directions respectively. • All the characters can be underlined, except for the space set by HT and 90°...
  • Page 26: Esc % N Select/Cancel User-Defined Characters

    BTP-R580II Programming Manual ESC % n Select/Cancel user-defined characters [Function] Select/cancel user-defined characters. [Format] ASCII Decimal 27 [Range] 0 ≤ n ≤255 [Notes] • When the least significant bit of n is 0, the user-defined characters are not used. • When the least significant bit of n is 1, the user-defined characters are used.
  • Page 27 BTP-R580II Programming Manual • When compressed ASCII font (9 × 17) is selected: - 20 -...
  • Page 28: Esc - N Select/Cancel Underline Mode

    BTP-R580II Programming Manual ESC – n Select/Cancel underline mode [Function] Select/Cancel underline mode. [Format] ASCII Decimal 27 [Range] 0 ≤ n ≤2, 48 ≤n ≤ 50 [Notes] Select/Cancel underline mode based on the value of n: Function 0, 48 Cancel underline mode...
  • Page 29: Esc ? N Cancel User-Defined Characters

    BTP-R580II Programming Manual ESC ? n Cancel user-defined characters [Function] Cancel user-defined characters. [Format] ASCII Decimal 27 [Range] 32 ≤n < 127 [Notes] • Cancel the character with n as code in user-defined characters. After canceling the character, the corresponding character in the internal character set will be used.
  • Page 30: Esc M N Select Character Font

    BTP-R580II Programming Manual Decimal 27 [Range] 0 ≤ n ≤ 255 [Notes] • When the LSB of n is 0, double-strike mode is cancelled. • When the LSB of n is 1, double-strike mode is selected. • Only the least significant bit of n is valid.
  • Page 31: Esc V N Select/Cancel 90° Clockwise Rotation

    BTP-R580II Programming Manual Germany U.K. Denmark I Sweden Italy Spain I Japan Norway Denmark II Spain II Latin America Korea [Default] n = 0 ESC V n Select/Cancel 90° clockwise rotation [Function] Select/Cancel 90° clockwise rotation [Format] ASCII Decimal 27 [Range] 0 ≤...
  • Page 32: Esc T N Set Code Page

    BTP-R580II Programming Manual ESC t n Set code page [Function] Set code page [Format] ASCII Decimal 27 116 n [Range] 0≤n≤5, 13≤n≤24,26≤n≤29, 45≤n≤51 64≤n≤81 n=11,33,34,36,37,38, 41,43,54,56. Code page PC437 Katakana PC850 PC860 PC863 PC865 851[Greek] PC857 737[Greek] 928[Greek] WPC1252 PC866...
  • Page 33: Esc { N Select/Cancel Upside-Down Print Mode

    BTP-R580II Programming Manual 1257[Baltic] 774[Lithuanian] 3840 (IBM-Russian) 3841 (Gost) 3843 (Polish) 3844 (CS2) 3845 (Hungarian) 3846 (Turkish) 3847 (Brazil-ABNT) 3848 (Brazil-ABICOMP) 1001 2001 3001 (Estonian-1) 3002 (Estonian-2) 3011 (Latvian-1) 3012 (Latvian-2) 3021 (Bulgarian) 3041 (Maltese) 8859 Persia [Notes] • This command is disabled in Chinese font.
  • Page 34: Gs ! N Select Character Size

    BTP-R580II Programming Manual [Example] 1B 40 1B 7B 01 (Select upside-down print mode) 41 42 43 44 45 46 0A 30 31 32 33 34 35 0A 1B 7B 00 (Cancel upside-down print mode) 41 42 43 44 45 46 0A...
  • Page 35: Gs B N Select/Cancel White/Black Reverse Print Mode

    BTP-R580II Programming Manual area. • When characters in one line are enlarged to different sizes, all the characters are aligned at the baseline. • The ESC ! command can also select or cancel double-width and double-height modes. The last received command is effective.
  • Page 36: Fs & Select Chinese Mode

    BTP-R580II Programming Manual Decimal 28 33 n [Range] 0 ≤n ≤ 255 [Notes] n specifies the print mode of Chinese: Decimal Function 0, 1 Undefined Cancel double-width mode Select double-width mode Cancel double-height mode Select double-height mode Undefined Cancel underline mode Select underline mode •...
  • Page 37: Fs - N Select/Cancel Underline Mode For Chinese Characters

    BTP-R580II Programming Manual FS – n Select/Cancel underline mode for Chinese characters [Function] Select/Cancel underline mode for Chinese characters [Format] ASCII FS - 1C 2D n Decimal 28 45 n [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50...
  • Page 38: Fs C N

    BTP-R580II Programming Manual A1H ≤ c2 ≤ FEH 0 ≤ d ≤ 255 k = 72 [Notes] 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 for printing a dot or to 0 for not printing a dot.
  • Page 39: Fs S N1 N2 Set Left-Side And Right-Side Chinese Character Spacing

    BTP-R580II Programming Manual • This command is enabled only in Japanese character mode. • In JIS code mode, the following character codes are enabled: First byte: <21>H to <7E>H Second byte: <21>H to <7E>H • In SHIFT JIS code mode, the following character codes are enabled: First byte : <81>H to <9F>H 和...
  • Page 40: Bitmap Commands

    BTP-R580II Programming Manual [Format] ASCII Decimal 28 [Range] 0 ≤ n ≤ 255 [Notes] • When the LSB of n is 0, quadruple-size mode for Chinese characters is cancelled. •·When the LSB of n is 1, quadruple-size mode for Chinese characters is selected.
  • Page 41: Gs # N Define Current Downloaded Bitmap Number

    BTP-R580II Programming Manual • Data of the bitmap exceeding 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 completing the transmission of bitmap data, the printer returns to normal data processing mode.
  • Page 42: Gs * X Y D1

    BTP-R580II Programming Manual [Notes] • The command is only enabled for bitmaps in RAM and the settings are erased when power down. • The number does not apply to the bitmap downloaded in FLASH. GS * x y d1...d(x × y × 8) Define downloaded bitmap [Function] Define downloaded bitmap.
  • Page 43: Gs V 0 M Xl Xh Yl Yh D1

    BTP-R580II Programming Manual 0, 48 Normal 1, 49 Double-width 2, 50 Double-height 3, 51 Quadruple • This command is ignored if a downloaded bitmap has not been defined. • This command has no effect in the print modes (including emphasized, double-strike, underline, character enlargement, and white/black reverse printing), except for upside-down print mode.
  • Page 44: Fs P N M Print Bitmap Downloaded In Flash

    BTP-R580II Programming Manual • If this command is received during macro definition, the printer will stop macro definition and begin performing this command. This command is not part of the macro definition. • d indicates the bitmap data. When the corresponding bit is 1, the printer prints a dot;...
  • Page 45: Fs Q N [Xl Xh Yl Yh D1

    BTP-R580II Programming Manual FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n Define NV bitmap [Function] Define NV bitmap. [Format] ASCII n [ xL xH yL yH d1...dk] [ xL xH yL yH d1...dk] n [ xL xH yL yH d1...dk] [ xL xH yL yH d1...dk]...
  • Page 46: Status Commands

    BTP-R580II Programming Manual • 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...dk] is NV bitmap n. It is the same when printing bitmap using command FS p.
  • Page 47 BTP-R580II Programming Manual • n = 1: Transmit printer status • n = 2: Transmit off-line status • n = 3: Transmit error status • n = 4: Transmit paper sensor status [Notes] • When the printer receives the command, it returns relative status immediately.
  • Page 48: Gs A N Automatic Status Back (Asb)

    BTP-R580II Programming Manual Fixed to 0. Fixed to 1. Undefined. No cutter error. Cutter error occurs. Fixed to 1. Fixed to 0. Print head temperature is normal. Print head temperature is out of range. Fixed to 0. n = 4: Paper feeding status...
  • Page 49 BTP-R580II Programming Manual • Even if the printer is disabled by ESC =, the printer still performs ASB according to the settings set by this command. • The returned status information is as follows: First byte (Printer information) Off/On Decimal Printer status Not used, fixed to 0.
  • Page 50: Gs R N Return Status

    BTP-R580II Programming Manual Not used, fixed to 0. Undefined. Not used, fixed to 0. Fourth byte (paper sensor information) Off/On Decimal Printer Status Undefined. Not used, fixed to 0. Undefined. Not used, fixed to 0. GS r n Return status [Function] Return status.
  • Page 51: Barcode Commands

    BTP-R580II Programming Manual 5, 6 Undefined. Not used, fixed to 0. [Relative] DLE EOT, GS a 2.6 Barcode commands GS H n Select print position for HRI characters [Function] Select the print position for HRI characters when printing a barcode.
  • Page 52: ①Gs K M D1

    BTP-R580II Programming Manual [Range] 1 ≤ 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.
  • Page 53 BTP-R580II Programming Manual Determined by the 1 ≤ n ≤255 parameters of GS1 [Notes①] • This command ends with a NUL code. • When UPC-A or UPC-E is selected, the characters after the first 12 bytes will be processed as normal characters after receiving12 bytes of barcode data.
  • Page 54 BTP-R580II Programming Manual K: Kanji The legal width of the bar: The ratio of the bar is not changeable. Example: 1D 6B 0B 51 41 2C 30 31 32 33 34 35 36 37 38 39 41 42 43 44 20 32 44 20 63 6F...
  • Page 55 BTP-R580II Programming Manual character size, white/black reverse printing, or 90° clockwise rotated character, etc.) , except for upside-down print mode. [Notes (page mode)] • This command develops barcode 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.
  • Page 56 BTP-R580II Programming Manual • If the character received by the printer is not barcode code set data, the printer stops command processing and processes the following data as normal data. • When printer prints HRI characters, it does not print shift character and code set selection data.
  • Page 57: Gs S N1 N2 N3 N4 N5 N6 N7 N8 Set Parameters Of Gs1 Barcode

    BTP-R580II Programming Manual GS s n1 n2 n3 n4 n5 n6 n7 n8 Set parameters of GS1 barcode [Function] Set parameters of GS1 barcode. [Format] ASCII n1 n2 n3 n4 n5 n6 n7 n8 n1 n2 n3 n4 n5 n6 n7 n8...
  • Page 58: Gs O N Set Parameters Of Barcode Qrcode

    BTP-R580II Programming Manual it will not be printed out. • The character set of 2D barcode in composite barcode: 0 ~ 9, A ~ Z, a ~ z ! " % & ' ( ) * + , - ./ : ; < = > ? _ space FNC1 (FNC1 is indicated by “{1”).
  • Page 59: Gs Q N Set Correction Grade Of Barcode Pdf417

    BTP-R580II Programming Manual [Range] 1≤ nA ≤10 1≤nB≤100 3≤nC ≤90 1≤nD ≤30 1≤nE ≤7 2≤nF ≤25 The meaning of parameter n is shown as below: Parameter Meaning Appearance to height Appearance to width Lines limit Columns limit X size line spacing...
  • Page 60: Two-Color Commands

    BTP-R580II Programming Manual [Relative] GS k 2.7 Two-color commands ESC r n Enter/Exit two-color print mode [Function] Enter/exit two-colour print mode. [Format] ASCII ESC r Decimal 27 114 n [Range] 0 ≤n ≤ 1 [Notes] • n=0, exit two-color mode.
  • Page 61 BTP-R580II Programming Manual 1D 28 7A nL nH 30 53 Decimal 29 40 122 nL nH 48 83 [Range] nL = 2 nH = 0 [Notes] • The difference between upside-down command and ESC { n upside-down printing: this upside-down printing command can print the note in upside-down mode, while ESC { n can only print the character line in upside-down mode.
  • Page 62: Watermark Commands

    BTP-R580II Programming Manual In upside-down print mode, this kind of command will be performed before printing. Details are as follows: Command Function Automatic status back DLE ENQ Real-time request DLE DC4 Generate cash drawer driver pulse at real time Return status Produce cash drawer control pulse •...
  • Page 63: Gs { W N Enter\Exit Watermark Mode

    BTP-R580II Programming Manual 1D 7B 77 02 n1 n2 n3 n4 n5 Decimal 29 123 119 02 n1 n2 n3 n4 n5 [Range] 0 ≤ n1 ≤ 1 0 ≤ n2 ≤ 2 n3 parameter selection can be found in the table below.
  • Page 64: Gray Scale Print Command

    BTP-R580II Programming Manual [Range] 0 ≤ n ≤ 1 [Notes] • n = 0: exit watermark mode • n = 1: enter watermark mode • This command is enabled only when processed at the beginning of the line. • Before using this command, use watermark setting command to set watermark parameters first.
  • Page 65 BTP-R580II Programming Manual • In standard mode, this command is enabled only when processed at the beginning of the line. • The 9 bytes <from FS~ zH > are processed as command data, not data of graphics. • In the first group of NV bitmaps, when any parameter of the yL, yH, zL, zH is out of the defined range, this command is disabled.
  • Page 66: Esc C 6 N Yl Yh Zl Zh D1 D2 D3 ...D(K) Download Ram Gray Scale Bitmap

    BTP-R580II Programming Manual ESC c 6 n yl yh zl zh d1 d2 d3 ...d(k) Download RAM gray scale bitmap [Function] Download RAM gray scale bitmap. [Format] ASCII ESC c 6 n yl yh zl zh d1 d2 d3 ...d(k) 1B 63 36 n yl yh zl zh d1 d2 d3 ...d(k)
  • Page 67: Page Control Commands

    BTP-R580II Programming Manual 63 37 n Decimal 27 99 55 n [Range] 0 ≤ n ≤ 7 [Notes] • This command is ignored if the downloaded bitmap has not been defined. • This command is disabled in upside-down print mode.
  • Page 68: Dle Dc4 N M T Generate Pulse At Real Time To Open Cash Drawer

    BTP-R580II Programming Manual [Range] 1 ≤n ≤ 2 [Notes] The meaning of n is as follows: Request Recover from an error and restart printing from the line where the error occurred Recover from an error and clear the data in receive and print buffers •...
  • Page 69: Esc 3 N Set Line Spacing

    BTP-R580II Programming Manual Decimal 27 [Notes] The line spacing can be set independently in standard mode and in page mode. [Relative] ESC 3 ESC 3 n Set line spacing [Function] Set line spacing. [Format] ASCII Decimal 27 [Range] 0 ≤ n ≤ 255 [Notes] •...
  • Page 70: Esc @ Initialize The Printer

    BTP-R580II Programming Manual ESC @ Initialize the printer [Function] Initialize the printer, clear data in print buffer and set print mode to the default mode when powered on. [Format] ASCII Decimal 27 [Notes] • The data in the receive buffer is not erased.
  • Page 71: Esc C 3 N Select Paper Sensor To Output Paper End Signals

    BTP-R580II Programming Manual [Notes] • This command is enabled only in page mode. • This command clears print data in the buffer in page mode. • This command sets the current position to the beginning of the line. • The page mode area is initialized as default data.
  • Page 72: Esc C 4 N Select Paper Near End Sensor To Stop Printing

    BTP-R580II Programming Manual signal. • When both sensors are disabled, the paper end sensor is used to output paper end signal. [Default] n = 12 ESC c 4 n Select paper near end sensor to stop printing [Function] Select paper sensor to stop printing.
  • Page 73 BTP-R580II Programming Manual [Notes] The corresponding relationship between the range of m and cash drawer connector pin: - 66 -...
  • Page 74: Gs : Start/End Macro Definition

    BTP-R580II Programming Manual Connector pin Cash drawer kick-out connector pin 2 0, 48 Cash drawer kick-out connector pin 5 1, 49 • The high level time is [t1 × 2 ms] and the low level time is [t2 × 2 ms].
  • Page 75: ①Gs V M ②Gs V M N Select Paper Cutting Mode And Cut Paper

    BTP-R580II Programming Manual • When GS ^ is received during macro definition, the printer ends macro definition and clears the definition. • Macro is not defined when the power is turned on. • The defined contents of the macro cannot be cleared by ESC @. Therefore, ESC @ can be included in the contents of the macro definition.
  • Page 76 BTP-R580II Programming Manual • m specifies macro executing mode. • When the LSB of m is 0: The macro is executed r times continuously at the interval of t × 100 ms. • When the LSB of m is 1, the LED flashes after waiting for t × 100 ms and the printer does not execute the macro until the FEED button is pressed down.
  • Page 77: Programming Process Guide

    BTP-R580II Programming Manual 3 Programming process guide Because the different printing status and errors can be returned by Auto Status Back (ASB) command, it is recommended that you can use ASB command to inquiry status. ASB command is enabled when the printer is powered on and can be directly sent to inquiry the status.
  • Page 78: Appendix

    BTP-R580II Programming Manual Appendix Appendix A: CODE128 A.1 Overview of CODE128 In CODE128 system, it is possible to represent 128 ASCII characters, 100 numbers from 00 to 99 and some special characters with three code sets: A, B and C. Each code set is used for representing the following characters: •...
  • Page 79 BTP-R580II Programming Manual 7B,31 123,49 FNC1 7B,32 123,50 FNC2 7B,33 123,51 FNC3 7B,34 123,52 FNC4 < 7B,53 123,83 SHIFT 7B,42 123,66 CODEB > 7B,43 123,67 CODEC " & - 72 -...
  • Page 80 BTP-R580II Programming Manual Characters in CODE B: Transmit Data Transmit Data Transmit Data Character Character Character Decimal Decimal Decimal " & 7B,7B 123,123 — FNC1 7B,31 123,49 FNC2 7B,32 123,50 FNC3 7B,33 123,51 FNC4 7B,34 123,52 123,83 SHIFT 7B,53 CODEA...
  • Page 81 BTP-R580II Programming Manual Characters in CODE C: Transmit Data Transmit Data Transmit Data Character Character Character Decimal Decimal Decimal 7B,31 123,49 FNC1 7B,41 123,65 CODEA 7B,42 123,66 CODEB - 74 -...
  • Page 82: Appendix B: Print Mode And Its Change

    BTP-R580II Programming Manual Appendix B: Print mode and its change B.1 General Description The printer operates in two modes: standard mode and page mode. In standard mode, when line buffer is full or when the printer receives print or paper feed commands, the printer will print and feed paper. In page mode, all the received print data and paper feed commands are stored in the specified memory, and the printer executes no operation.
  • Page 83 BTP-R580II Programming Manual print area remains the default value. 2) The print data received after print area and print direction are set (set by ESC T command) will be formatted within the print area as shown in figure B.2. Point A is the starting position of print area as a default value.
  • Page 84: Appendix C: Command Index

    BTP-R580II Programming Manual Figure B.3 storage location of print data Figure B.4 storage location of downloaded bitmap Appendix C: Command index Command Function Horizontal tab Print and feed one line Print and feed paper Print and carriage return Delete data in print buffer in page mode...
  • Page 85 BTP-R580II Programming Manual ESC & Define user-defined characters ESC * Select bitmap mode ESC – n Select/Cancel underline mode ESC 2 Set default line spacing ESC 3 n Set line spacing ESC ? Cancel user-defined characters ESC @ Initialize the printer...
  • Page 86 BTP-R580II Programming Manual GS k Print barcode GS r Return status GS v 0 Print raster bitmap GS w Set barcode width FS ! Set Chinese character mode FS & Select Chinese mode FS - Select/Cancel underline mode for Chinese characters FS .

Table of Contents