Citizen BD2-2880 Command Reference Manual

Control board for mlt-288/mlt-289 & mlt-388/mlt-389
Hide thumbs Also See for BD2-2880:

Advertisement

Command Reference

CONTROL BOARD FOR MLT-288/MLT-289
CONTROL BOARD FOR
BD2-2880/2890
MODEL
BD2-3880/3890
MODEL
Rev. 1.01 Newly Issued on December 15th, 2005
MLT-388/MLT-389

Advertisement

Table of Contents
loading

Summary of Contents for Citizen BD2-2880

  • Page 1: Command Reference

    Command Reference CONTROL BOARD FOR MLT-288/MLT-289 CONTROL BOARD FOR MLT-388/MLT-389 BD2-2880/2890 MODEL BD2-3880/3890 MODEL Rev. 1.01 Newly Issued on December 15th, 2005...
  • Page 2 REVISION Rev. No. Date Content 0.00 2002.07.02 Newly authored BD2-2880 command part modified. 0.01 2003.06.10 2-34 Range changed. 2-37 Ranges of CODE39/ITF/CODABAR/CODE128 changed. 2-40 Ranges of CODE39/ITF/CODABAR/CODE128 changed. 1.00 2003.06.23 First version as 1.00. 1.01 2005.12.15 Numbers of reference page changed.
  • Page 3: Print Control Functions

    BD2-3880/3890 Command Reference 1. PRINT CONTROL FUNCTIONS 1.1 Command List Print Control Commands Control Code Function Code Page Printing and paper feed Print command ESC J Printing and feeding paper n/203 inch 1Bh4Ah n ESC d Printing and feeding the paper by n lines 1Bh64h n Print Character Commands Page...
  • Page 4: Macro Commands

    BD2-3880/3890 Command Reference Bit Image Commands Page Control Code Function Code ESC * Specifying the bit image mode 1Bh 2Ah m n1 n2[d]k GS * Defining the download, bit image 1Dh 2Ah n1 n2 GS / Printing the download, bit image 1Dh 2F Status Command Control Code...
  • Page 5: Other Commands

    BD2-3880/3890 Command Reference Other Commands Page Control Code Function Code ESC = Data input control 1Bh 3Dh n ESC @ Initializing the Printer 1Bh 40h DC2 A Selecting the Print drive system 12h 41h n NOP Commands Control Code Function Code Page ESC c 3...
  • Page 6: Command Details

    BD2-3880/3890 Command Reference 1.2 Command Details 1.2.1 Description of Items XXXX [Function] Command Function A sequence of code constituting a command is represented in hexadecimal number for < [Code] >H, binary number for < >B, and decimal number for < >, respectively; [ ]k represents a repeat count of k-times.
  • Page 7 BD2-3880/3890 Command Reference Printing and Paper Feed Command [Function] <0A>H [Code] Prints data inside the input buffer and feeds lines based on the line feed amount having been set. [Outline] • The head of the line becomes the next print starting position. [See Also] ESC 2, ESC 3 [Sample Program]...
  • Page 8 BD2-3880/3890 Command Reference [Function] Print Command <0D>H [Code] 1) When DS 1-2 is OFF: [Outline] This command is ignored. 2) When DS 1- 2 is ON: With data held inside the internal print buffer, printing and line feed are performed. Without data inside the internal print buffer, however, no printing is performed.
  • Page 9 BD2-3880/3890 Command Reference ESC J n Printing and feeding paper n/203 inch [Function] [Code] <1B>H<4A>H<n> [Range] {0 =< n =< FF} Data is described in Hex code. Prints data inside the print buffer and feeds paper by n/360 inch. Since an actual mechanical [Outline] pitch is 1/203 inch, it is internally converted approximate to the value specified with this command.
  • Page 10: Esc D N

    BD2-3880/3890 Command Reference ESC d n Printing and Feeding the paper by n lines [Function] [Code] <1B>H<64>H<n> [Range] * {0 =< n =< FF} Data is described in Hex code. Prints data inside the buffer and feeds paper by n lines. [Outline] •...
  • Page 11: Esc Sp N

    BD2-3880/3890 Command Reference ESC SP n [Function] Setting the right space amount of the character [Code] <1B>H<20>H<n> {0 =< n =< 20} (MLT-2880) Data is described in Hex code. [Range] {0 =< n =< 30} (MLT-38x0) Data is described in Hex code. [Outline] The rightward space amount is set in dot unit (1/203 inch unit).
  • Page 12 BD2-3880/3890 Command Reference ESC ! n Collective Specifying Printing Mode [Function] [Code] <1B>H<21>H<n> [Range] {0 =< n=< FF} Data is described in Hex code. [Outline] Printing mode is assigned. Each n bit indicates the following: Va lue Function Character Font Font A Font B Undefined...
  • Page 13 BD2-3880/3890 Command Reference [Sample Program] LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H00) + "H" ; LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H01) + "H"; LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H08) + "H"; LPRINT CHR$ (&H1B) + "...
  • Page 14 BD2-3880/3890 Command Reference ESC % n Specifying/Canceling Download Character Set [Function] [Code] <1B>H<25>H<n> [Range] {0 =< n =< FF} data is described in Hex code. [Outline] Specifying/canceling download characters. Further, only the lowest bit (n0) is valid for n. The lowest bit (n0) indicates the following. Function Canceling download character set Specifying download character set...
  • Page 15 BD2-3880/3890 Command Reference × ESC & s n m [a [p] s a] m – n +1 Defining Download Character [Function] × [Code] <1B>H<26>H<s><n><m> [<a><p1><p2><ps a>]m-n+1 {s = 03} [Range] {20 (Hex) =< n =< m =< 7E (Hex)} {0 =< a =< 0C(Hex)} (Font A) {0 =<...
  • Page 16 BD2-3880/3890 Command Reference [Example] 9 dot 12 dot 24 dot 24 dot FONT A FONT B Create each data bit by setting "1" for a printed dot and "0" for an unprinted dot. [Sample Program] [Print Results] See Sample Program and Print Results for ESC % on Pa ge 33.
  • Page 17 BD2-3880/3890 Command Reference – [Function] Specifying/ Canceling Underline <1B>H<2D>H<n> [Code] {0 =< n =< 02} data is described in Hex code. [Range] Specifying/canceling an underline. [Outline] • Types of underlines by n value are shown below: n (Hex) Type Canceling an underline. Specifying an underline for 1-dot width.
  • Page 18 BD2-3880/3890 Command Reference ESC E n Specifying/canceling highlighting [Function] [Code] <1B>H<45>H<n> {0 =< n =<FF} Data is described in Hex code. [Range] Specifying/canceling the highlighting characters. [Outline] • "n" is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: Type Canceling highlighting.
  • Page 19: Esc G N

    BD2-3880/3890 Command Reference ESC G n [Function] Specifying/canceling Double Printing [Code] <1B>H<47>H<n> {0 =< n =< FF} Data is described in Hex code. [Range] Specifying/canceling the double printing. [Outline] • "n" is valid only for the lowest bit (n0). • Control by n is shown as follows. Type Canceling double printing.
  • Page 20 BD2-3880/3890 Command Reference ESC R n [Function] Selecting the International Character set <1B>H<52>H<n> [Code] [Range] {0 =< n =< 0A) Data is described in Hex code. Depending on the value of n, following character sets are specified. [Outline] n(Hex) Character Set U.S.A.
  • Page 21: Esc V N

    BD2-3880/3890 Command Reference ESC V n Specifying/Canceling 90°-right- turned Characters [Function] [Code] <1B>H<56>H<n> [Range] {0 =< n =< 1} Data is described in Hex code. [Outline] Specifying/canceling characters 90°-right- turned character. • "n" means the followings. n (Hex) Condition Canceling 90°-right- turned Characters Specifying 90°-right- turned Characters •...
  • Page 22: Esc T N

    BD2-3880/3890 Command Reference ESC t n [Function] Selecting Character Code Table [Code] <1B>H<74>H<n> [Range] {0 =< n =< 1} Data is described in Hex code. Selecting Page n on the character code table: The character code table is selected depending on the value of n. "n"...
  • Page 23 BD2-3880/3890 Command Reference ESC { n Specifying/Canceling the Inverted Characters [Function] <1B>H<7B>H<n> [Code] [Range] {0 =< n =< FF} Data is described in Hex code. Specifying/canceling inverted characters. [Outline] • "n" is valid only for the lowest bit (n0). • Bit n (n0) means the followings. Condition Canceling inv rted characters.
  • Page 24 BD2-3880/3890 Command Reference [Function] Horizontal Tab Command [Code] <09>H [Outline] Shifts the printing position to the next horizontal tab position. • Ignored when the next horizontal tab position has not been set. • The horizontal tab position is set by ESC D. [Caution] •...
  • Page 25 BD2-3880/3890 Command Reference ESC $ n1 n2 Specifying the Absolute Positions [Function] <1B>H<24>H<n1><n2> [Code] [Range] {0 =< n1 =< FF} {0 =< n2 =< 1} (BD2-2880) {0 =< n2 =< 2} (BD2-38x0) Data is described in Hex code. [Outline] The printing start position is specified in the number of dots (1/203 inch unit) from the beginning of line.
  • Page 26 BD2-3880/3890 Command Reference ESC D [ n ] k NUL [Function] Setting Horizontal Tab Position [Code] <1B>H<44>H [ <n> ] k<00>H {0 =< n =< FFH} Data is described in Hex code. [Range] {0 =< k =< 20H} Data is described in Hex code. [Outline] Specifying a horizontal tab position.
  • Page 27 BD2-3880/3890 Command Reference n1 n2 [Function] Specifying the Relative Positions <1B>H<5C>H<n1>< n2> [Code] {0 =< n1 =< FF} [Range] {0 =< n2 =< FF} Data is described in Hex code. [Outline] The printing start position is specified in the number of dots(1/203 inch unit) from the current position.
  • Page 28: Esc A N

    BD2-3880/3890 Command Reference ESC a n [Function] Aligning the characters <1B>H<61>H<n> [Code] [Range] {0 =< n =< 2} Data is described in Hex code. All the printed data within one line are aligned in the specified position. [Outline] • Depending on n value, positional alignment is carried out as in the table below: n (Hex) Position Left end alignment...
  • Page 29 BD2-3880/3890 Command Reference ESC 2 Specifying 1/6-inch line feed rate [Function] [Code] [Code] <1B>H<32>H [Outline] The line feed rate per line is specified by 1/6 inch. [Sample Program] LPRINT "AAAAA" + CHR$ (&HA); LPRINT CHR$ (&H1B) + "3" + CHR$ (0); LPRINT "AAAAA"...
  • Page 30: Esc 3 N

    BD2-3880/3890 Command Reference ESC 3 n Setting line feed rate of minimum pitch [Function] [Code] <1B>H<33>H<n> [Range] {0 =< n =< FF} Data is described in Hex code. [Outline] The line feed rate per line is specified by n/360 inch. Since an actual mechanical pitch is 1/203 inch, it is internally converted approximate to the value specified with this command.
  • Page 31 BD2-3880/3890 Command Reference ESC * m n1 n2 [ d ] k [Function] Specifying the Bit Image Mode [Code] <1B>H<2A>H<m><n1><n2> [ <d> ] k [Range] {m= 0, 1, 32, 33 bit image mode (See the table below.)} {0 =< n1 =< FF(Hex)} {0 =<...
  • Page 32 BD2-3880/3890 Command Reference [Sample Program] LPRINT CHR$ (&H1B) + "*”; LPRINT CHR$ (0) + CHR$ (20) + CHR$ (0); IMG1 : GOSUB IMG1 LPRINT CHR$ (&HFF) ; LPRINT CHR$ (&HA); FOR I=1 TO 18 LPRINT CHR$ (&H1B) + "*”; LPRINT CHR$ (&H85) ; LPRINT CHR$ (1) + CHR$ (20) + CHR$ (0);...
  • Page 33 BD2-3880/3890 Command Reference × × GS * n1 n2 [ d ] n1 [Function] Defining the Download Bit Image × × <1D>H<2A>H<n1><n2> [ < d > ] n1 [Code] {1 =< n1} [Range] {1 =< n2} {n1 x n2 =< 1311} (BS2-2880) {n1 x n2 =<...
  • Page 34 BD2-3880/3890 Command Reference [Sample Program] GOSUB IMG LPRINT CHR$ (&H1D) + "/" + CHR$ (0); LPRINT CHR$ (&H1D) + "/" + CHR$ (1); LPRINT CHR$ (&H1D) + "/" + CHR$ (2); LPRINT CHR$ (&H1D) + "/" + CHR$ (3); IMG: n 1 = 10 : n 2= 5 LPRINT CHR$ (&H1D) + "*”;...
  • Page 35 BD2-3880/3890 Command Reference GS / m [Function] Printing the Download, Bit Image <1D>H<2F>H<m> [Code] [Range] {0 =< m =< 03} Data is described in Hex code. Prints download bit image in a mode specified by m. [Outline] • Modes can be selected by m are shown below. Mode Name Dot Density in Dot Density in...
  • Page 36 BD2-3880/3890 Command Reference ESC v (Serial Interface Only) Transmitting the printer status (Serial Type) [Function] <1B>H<76>H [Code] [Outline] Current printer status is transmitted. • Status sent out consists of 1 byte whose content is as in the table below. [Caution] •...
  • Page 37 BD2-3880/3890 Command Reference ESC c5 n [Function] Enabling/Disabling Panel Switches <1B>H<63>H<35>H<n> [Code] [Range] {0 =< n =< FF} Data is described in Hex code. Selecting the LF switch valid/invalid. [Outline] • "n" is valid only in the lowest bit (n0). •...
  • Page 38 BD2-3880/3890 Command Reference GS : [Function] Starting / Ending Macro Definition [Code] <1D>H<3A>H [Outline] Specifying starting / ending macro definition. Means termination when received while defining a macro. Maximum content available for macro definition is 2048 bytes. [Caution] A portion exceeding 2048 bytes is not defined. •...
  • Page 39 BD2-3880/3890 Command Reference GS ^ n1 n2 n3 Executing the Macro [Function] <1D>H<5E>H<n1><n2><n3> [Code] {0 =< n1 =< FF} [Range] {0 =< n2 =< FF} {0 =< 3 =< 1} Data is described in Hex code. [Outline] Executing contents defined in macro. •...
  • Page 40 BD2-3880/3890 Command Reference ESC i (When Using Auto Paper Cutter) [Function] Full Cut <1B>H<69>H [Code] [Outline] Activating auto cutter unit (Full cut) • This is valid only when n is inputted at the beginning of line. [Caution] • Prior to cutting the paper, feed the paper from the printing position to beyond the paper cutting position of the cutter.
  • Page 41 BD2-3880/3890 Command Reference ESC m (When Using Auto Paper Cutter) Partial Cut [Function] <1B>H<6D>H [Code] Activating auto cutter unit (Partial cut) [Outline] • This is valid only when n is inputted at the beginning of line. [Caution] • Prior to cutting the paper, feed the paper from the printing position to beyond the paper cutting position of the cutter.
  • Page 42 BD2-3880/3890 Command Reference GS H n Selecting of Printing Position of HRI Code [Function] [Code] <1D>H<48>H<n> [Range] {0 =< n =< 3} Data is described in Hex code. [Outline] Selecting printing position of HRI code in printing bar codes. • "n" means the followings. n (Hex) Printing Position No printing...
  • Page 43 GS f n Selecting the font of HRI code [Function] [Code] <1D>H<66>H<n> [Range] n = 0, 1 Selecting the font of HRI code in printing bar code. [Outline] The type of font can be printed by selecting n is as follows. The HRI code refers to the bar code-turned characters so that you can read them.
  • Page 44 GS h n Selecting the height of the Bar Code [Function] [Code] <1D>H<68>H<n> {1 =< n =< FF} Data is described in Hex code. [Range] [Outline] Selecting bar code height. n denotes the number of dots in the vertical direction. [Default] •...
  • Page 45 BD2-3880/3890 Command Reference GS k n [ d ] k NUL Printing the Bar Code (1) [Function] [Code] <1D>H<6B>H<n> [ < d> ] k <00>H [Range] {0 =< n =< 7} Data are described in Hex code. [Outline] Specifying a type of bar code and printing bar codes. •...
  • Page 46: Codabar (Nw - 7)

    [Description of Bar Codes] <For print examples, see Page 46. > UPC-A This bar code, consisting of numerals only, has a fixed length of 12 column; a 11-columns number entered from the host or application software plus a check column(12th column) automatically calculated inside the printer.
  • Page 47 BD2-3880/3890 Command Reference • Processing of the special characters The characters above the ASCII code number 96 are considered special characters. The following lists the converted characters for entering these characters. ASCII Code Converted Character Subset Code Subset Code B Subset Code C FNC 3 FNC 3...
  • Page 48 BD2-3880/3890 Command Reference [Description of Bar Codes] UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF, CODABAR, CODE128 Type Print Sample Outline of Symbol Max. column 12-column fixed-length bar code consisting – UPC-A of numerals only 8-column fixed-length bar code consisting –...
  • Page 49 GS k m n [d1 ... dn] [Function] Printing the Bar Code (2) [Code] <1D>H<6B>H<m><n>[d1...dn] 65 =< m =< 73 Ranges of n and d differ depending on the barcode system. [Range] [Outline] Specifying a type of bar code and printing bar codes. Bar Code System Range of n Range of d...
  • Page 50 [Description of Bar Codes] UPC-A This bar code, consisting of numerals only, has a fixed length of 12 column; a 11-columns number entered from the host or application software plus a check column (12th column) automatically calculated inside the printer. If the 12th-column numeral is sent from the host, the entire bar code will be printed as it is.
  • Page 51 BD2-3880/3890 Command Reference Control Character Control Character HRI Code HRI Code ASCII Hex. ASCII Hex. CODE128 This barcode consists of 103 kinds of barcode characters and three code subsets with a variable length. It can print 128 ASCII characters. • Code set A can print ASCII characters of 00H through 5FH.
  • Page 52 BD2-3880/3890 Command Reference [Special Characters] Hex. Code ASCII Code Code Set A Code Set B Code Set C 7B53 SHIFT SHIFT –N/A 7B41 –N/A CODE A CODE A 7B42 CODE B –N/A CODE B 7B43 CODE C CODE C –N/A 7B31 FNC1 FNC1...
  • Page 53 BD2-3880/3890 Command Reference [Description of Bar Codes] UPC-A, UPC-E, JAN13 (EAN), JAN8 (EAN), CODE39, ITF, CODABAR, CODE128 Type Print Sample Outline of Symbol 12-column fixed-length bar code consisting of numerals only. UPC-A 8-column fixed-length bar code consisting of numerals only. Abbreviated version of UPC-A. UPC-E 13-column fixed-length bar code consisting of numerals only.
  • Page 54: Gs W N

    BD2-3880/3890 Command Reference GS w n [Function] Selecting the horizontal size (Scale factor) of the Bar Code [Code] <1D>H <77>H<n> [Range] {2 =< n =< 4} Data is described in Hex code. [Outline] Selecting bar code width. n denotes the number of dots in fine element width. •...
  • Page 55 BD2-3880/3890 Command Reference ESC = n [Function] Data Input Control [Code] <1B>H<3D>H<n> [Range] {0 =< n =< FF} Data is described in Hex code. [Outline] Selecting equipment in which data input from the host is effective. • Each bit of n indicates as follows: Equipment Va lue Printer...
  • Page 56 BD2-3880/3890 Command Reference ESC @ [Function] Initializing the Printer <1B>H<40>H [Code] [Range] Clears data stored in the print buffer and brings various settings to the initial state (Default state). • Data inside the internal input buffer are not cleared. [Caution] •...
  • Page 57 BD2-3880/3890 Command Reference DC2 A n Selecting the Print drive system [Function] [Code] <12>H<41>H<n> [Range] {0 =< n =< FF} [Outline] Selecting the Fixed division system or the Variable division system. • "n" is valid only for the lowest bit (n0). Print Drive System Fixed division number system Variable division number system...
  • Page 58: Character Code Table

    BD2-3880/3890 Command Reference 2. CHARACTER CODE TABLE 2.1 International...
  • Page 59 BD2-3880/3890 Command Reference 2.2 Japanese...
  • Page 60: International Character Set

    BD2-3880/3890 Command Reference 2.3 International Character Set COUNTRY...

Table of Contents