Citizen CBM1000II Command Reference Manual
Citizen CBM1000II Command Reference Manual

Citizen CBM1000II Command Reference Manual

Line thermal printer
Hide thumbs Also See for CBM1000II:

Advertisement

Command Reference

LINE THERMAL PRINTER
CBM1000II
MODEL
Rev. 2.01 Newly issued on June 19, 2003

Advertisement

Table of Contents
loading

Summary of Contents for Citizen CBM1000II

  • Page 1: Command Reference

    Command Reference LINE THERMAL PRINTER CBM1000II MODEL Rev. 2.01 Newly issued on June 19, 2003...
  • Page 2 REVISION Rev.No. Date Comment Rev. 1.00 2001/10/19 Newly issued Rev. 2.00 2002/05/09 Added “GS p” on Page 89. Rev. 2.01 2003/06/19 Added parameter on ESC t (After MPV3.12000).
  • Page 3: Print Control Functions

    1. PRINT CONTROL FUNCTIONS 1.1 Command List No. Command Function Mode Code Page Horizontal tab S.P. <09>H Printing and paper feed S.P. <0A>H Back to printing S.P. <0D>H Printing in PAGE MODE and returning to STANDARD MODE <0C>H Printing and paper feeding to the top of the Label (Black mark position) Canceling print data in PAGE MODE <18>H...
  • Page 4 No. Command Function Mode Code Page Selecting the character printing direction 31 ESC T <1B>H<54>H<n> in PAGE MODE Specifying/Canceling 90°-right-turned 32 ESC V <1B>H<56>H<n> characters <1B>H<57>H<xL><xH> 33 ESC W Defining the print area in PAGE MODE <yL><yH><dxL><dxH> <dyL><dyH> 34 ESC \ Specifying the relative position S.P.
  • Page 5 No. Command Function Mode Code Page <1D>H<57>H<nL> 55 GS W Setting the print area width S.P.* <nH> Specifying the relative vertical position <1D>H<5C>H<nL> 56 GS \ S.P.* of a character in PAGE MODE <nH> <1D>H<5E>H<n1> 57 GS ^ Executing the macro S.P.
  • Page 6 Label Control No. Command Function Mode Code Page 71 GS FF Printing and discharging the labels <1D>H<0C>H 72 GS < Initialiging the printer mechanism S.P. <1D>H<3C>H 73 GS A Correcting the label top position S.P. <1D>H<41>H<m><n> 105 <1D>H<43>H 74 GS C0 Setting the numbering print mode S.P.
  • Page 7: Command Details

    1.2 Command Details 1.2.1 Descriptions of Each Item XXXX [Function] The name of a command. [Code] The string of codes comprising the command is represented by < >H for hexadecimal numbers, < >B for binary numbers, and < > for decimal numbers, [ ] k denotes the number of repetition of “k”...
  • Page 8 1.2.2 Command Details [Function] Horizontal tab [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. [Caution] • The horizontal tab position is set by ESC D. •...
  • Page 9 [Function] Printing and paper feed [Code] <0A>H [Outline] Prints data inside the print buffer and feeds paper based on the line feed amount having been set. [Caution] The head of the line becomes the next print starting position. [See Also] ESC 2, ESC 3 [Sample Program] LPRINT “AAA”...
  • Page 10 [Function] Back to printing [Code] <0D>H [Outline] 1) When DSW1-5 is OFF: This command is ignored. 2) When DSW1-5 is ON: With data held inside the internal print buffer, printing and line feed are performed. Without data inside the internal print buffer, however, only line feed is performed.
  • Page 11 (Page Mode) [Function] Printing in PAGE MODE and returning to STANDARD MODE [Code] <0C>H [Outline] Executes a batch printout of the data mapped in the entire print area, and then returns to STANDARD MODE. [Caution] • All mapped data is erased after printout. •...
  • Page 12 [Function] Canceling print data in PAGE MODE [Code] <18>H [Outline] Erases all data contained in the currently effective print area in PAGE MODE. [Caution] • This command is only effective when PAGE MODE is selected. • If the previously established print area overlaps the currently effective print area, the overlapped data in the previously established area will be erased.
  • Page 13: Dle Eot N

    DLE EOT n [Function] Sending status in real-time [Code] <10>H<04>H<n> [Range] [Outline] Sends in real-time the status specified by “n”. Status Printer status Status caused by an offline condition Status caused by an error Continuous paper detector status [Caution] • Each status represents the current status. It is 1 byte data. •...
  • Page 14 (1) Printer status (When n = 1 is specified) Status Hex. Decimal Unused Unused Status of pin 3 of Drawer Kick-Out Connector = L Status of pin 3 of Drawer Kick-Out Connector = H Online status Offline status Unused Undefined —...
  • Page 15 (3) Status caused by an error (when n = 3 is specified) Status Hex. Decimal Unused Unused No label detection error occurred (only when "Label" is selected). A label detection error occurred (only when "Label" is selected). Auto cutter error not occurred Auto cutter error occurred Unused Unrecoverable error not occurred...
  • Page 16: Dle Enq N

    DLE ENQ n [Function] Real-time request to printer [Code] <10>H<05>H<n> [Range] [Outline] The printer responds in real-time to the request that the host specifies with number “n”. Function After recovering from an error, the printer resumes printing from the beginning of the line where the error occurred.
  • Page 17: Dle Dc4 N M T

    DLE DC4 n m t [Function] Outputting specified pulse in real-time. [Code] <10>H<14>H<n><m><t> [Range] n=1, m=0,1 [Outline] A signal specified with “t” is output to the connector pin specified with “m”. Connector pin Pin No. 2 of drawer Kick-Out Connector Pin No.
  • Page 18 ESC FF [Function] Printing data in PAGE MODE [Code] <1B>H<0C>H [Outline] Executes a batch printout of the data mapped in the entire print area in PAGE MODE. [Caution] • This command is only effective when PAGE MODE is selected. • Mapped data, as well as the ESC T and ESC W settings, and the character mapping position are held even after printing.
  • Page 19: Esc Sp N

    ESC SP n [Function] Setting the right spacing of the character [Code] <1B>H<20>H<n> [Range] [Outline] Sets the right spacing of character to [n basic calculation pitch] inches. [Caution] • If the horizontal magnification of character is 2 or more, the right spacing increases with the magnification.
  • Page 20 [Sample Program] LPRINT CHR$(&H1B) + “ ” + CHR$(0) ; LPRINT “AAAAA” + CHR$(&HA) ; LPRINT CHR$(&H1B) + “ ” + CHR$(1) ; LPRINT “AAAAA” + CHR$(&HA) ; LPRINT CHR$(&H1B) + “ ” + CHR$(12) ; LPRINT “AAAAA” + CHR$(&HA) ; [Print Results] AAAAA 0-dot space...
  • Page 21 ESC ! n [Function] Collectively specifying the printing mode [Code] <1B>H<21>H<n> [Range] [Outline] Printing mode is assigned. Value Function Character Font Font A Font B Undefined Undefined Emphasis Canceled Specified Double height Canceled Specified Double width Canceled Specified Undefined Underline Canceled Specified [Caution]...
  • Page 22 [Sample Program] LPRINT CHR$(&H1B) + “!” + CHR$(&H00) + “H” ; LPRINT CHR$(&H1B) + “!” + CHR$(&H01) + “H” ; LPRINT CHR$(&H1B) + “!” + CHR$(&H08) + “H” ; LPRINT CHR$(&H1B) + “!” + CHR$(&H10) + “H” ; LPRINT CHR$(&H1B) + “!” + CHR$(&H20) + “H” ; LPRINT CHR$(&H1B) + “!”...
  • Page 23 ESC $ n1 n2 [Function] Specifying the absolute positions [Code] <1B>H<24>H<n1><n2> [Range] [Outline] The printing start position is specified with the number of dots (1/203 inch unit) from the beginning of a line. • The number of dots is divided by 256, whose quotient is taken as “n2”...
  • Page 24 [Sample Program] LPRINT CHR$(&H1B) + “$” ; LPRINT CHR$(0) + CHR$(0) + “A” ; LPRINT CHR$(&H1B) + “$” ; LPRINT CHR$(50) + CHR$(0) + “B” ; LPRINT CHR$(&H1B) + “$” ; LPRINT CHR$(0) + CHR$(1) + “C” ; LPRINT CHR$(&HA) ; LPRINT CHR$(&H1B) + “$”...
  • Page 25 ESC % n [Function] Specifying/Canceling download character set [Code] <1B>H<25>H<n> [Range] [Outline] Specifying/canceling download characters. • Only the lowest bit (n0) is valid for n. Function Canceling download character set Specifying download character set [Caution] Download characters and download bit images cannot be defined simultaneously.
  • Page 26 ESC & s n m [a [p] s a] m–n+1 [Function] Defining the download characters [Code] <1B>H<26>H<s>H<n><m>[<a><p1><p2> <ps a>]m-n+1 [Range] s = 3 12 (Font A) 9 (Font B) [Outline] Defines the font of download characters of alphanumeric characters. • “s” indicates the number of bytes in vertical direction. •...
  • Page 27 [Example] 12dot 9dot p1 p4 p1 p4 24dot 24dot Font A Font B Create each data bit by setting “1” for a printed dot and “0” for an unprinted dot. [Sample Program] Refer to Sample Program and Print Results for ESC % on page 23.
  • Page 28 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 k = n1 + 256 (m = 0, 1) k = (n1+ 256 3 (m = 32, 33) [Outline] According to the number of dots specified in “n1”, “n2”, specify the bit image of mode “m”.
  • Page 29 [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); NEXT I GOSUB IMG1 LPRINT CHR$(&HFF);...
  • Page 30 ESC – n [Function] Specifying/Canceling underline [Code] <1B>H<2D>H<n> [Range] [Outline] Specifying/canceling an underline. Function 0.48 Canceling an underline 1.49 Specifying an underline for 1-dot width 2.50 Specifying an underline for 2-dots width [Caution] • An underline is attached to the full character width. It is, however, not attached to the part having been skipped by horizontal tab command.
  • Page 31 ESC 2 [Function] Specifying 1/6-inch line feed rate [Code] <1B>H<32>H [Outline] The line feed rate per line is specified by 1/6 inch. [Caution] Line feed rate can be specified respectively for both STANDARD MODE and PAGE MODE. [Sample Program] LPRINT “AAAAA” + CHR$(&HA); LPRINT CHR$(&H1B) + “3”...
  • Page 32: Esc 3 N

    ESC 3 n [Function] Setting line feed rate of minimum pitch [Code] <1B>H<33>H<n> [Range] [Outline] Sets the line feed width per line to [n basic calculation pitch] inches. [Caution] The line feed width can be set separately for the STANDARD and PAGE MODES.
  • Page 33 ESC = n [Function] Data input control [Code] <1B>H<3D>H<n> [Range] [Outline] Selecting equipment for which data input from the host is valid. • Each bit of “n” indicates as follows: Value Equipment Printer Invalid Valid Not defined Not defined Not defined Not defined Not defined Not defined...
  • Page 34 ESC ? n [Function] Deleting download characters [Code] <1B>H<3F>H<n> [Range] [Outline] Deletes the downloaded characters of specified code. [Caution] • The character “n” indicates the character code used to delete the defined pattern. After the deletion, characters are printed in the same pattern as the internal characters. •...
  • Page 35 ESC @ [Function] Initializing the printer [Code] <1B>H<40>H [Outline] Clears data stored in the print buffer and brings various settings to the initial state (Default state). [Caution] • The settings of DIP switches are not read again. • Data inside the internal input buffer is not cleared. •...
  • Page 36 ESC D [ n ] k NUL [Function] Setting horizontal tab position [Code] <1B>H<44>H [<n>] k<00> [Range] [Outline] Specifying a horizontal tab position. • “n” indicates the number of columns from the beginning to the horizontal tab position. Note, however, that “n= set position –...
  • Page 37: Esc E N

    ESC E n [Function] Specifying/Canceling Emphasis Printing [Code] <1B>H<45>H<n> [Range] [Outline] Specifying/canceling the emphasized characters. • “n” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: Function Canceling emphasis printing Specifying emphasis printing •...
  • Page 38: Esc G N

    ESC G n [Function] Specifying/Canceling Double strike printing [Code] <1B>H<47>H<n> [Range] [Outline] Specifying/canceling the double strike printing. • “n” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows. Function Canceling double strike printing Specifying double strike printing This is effective to all characters.
  • Page 39: Esc J N

    ESC J n [Function] Printing and feeding paper in minimum pitch [Code] <1B>H<4A>H<n> [Range] [Outline] Prints the data held in the print buffer and feeds paper by [n basic calculation pitch] inches. The beginning of the line is taken as the next print start position. [Caution] The line feed width can be set separately for the STANDARD and PAGE MODES.
  • Page 40 ESC L [Function] Selecting PAGE MODE [Code] <1B>H<4C>H [Outline] Switches from STANDARD MODE to PAGE MODE. [Caution] • This command is only effective if it entered at the beginning of a line. • This command is not effective if it is entered when in PAGE MODE.
  • Page 41: Esc M N

    ESC M n [Function] Selection of character fonts [Code] <1B>H<4D>H<n> [Definition value] n=0, 1, 48, 49 [Outline] Selects character fonts. Function 0, 48 Selection of font A (12 1, 49 Selection of font B (9 [Details] ESC ! can also select fonts, but the setting made by the command that has last been processed becomes valid.
  • Page 42 ESC R n [Function] Selecting the international character set [Code] <1B>H<52>H<n> [Range] [Outline] Depending on the value of “n”, one of the following character sets is specified; Character Set U.S.A. France Germany U.K. Denmark I Sweden Italy Spain I Japan Norway Denmark II Spain II...
  • Page 43 ESC S [Function] Selecting STANDARD MODE [Code] <1B>H<53>H [Outline] Switches from PAGE MODE to STANDARD MODE. [Caution] • This command is only effective if it is entered when in PAGE MODE. • Any data mapped in PAGE MODE is erased. •...
  • Page 44: Esc T N

    ESC T n [Function] Selecting the character printing direction in PAGE MODE [Code] <1B>H<54>H<n> [Range] [Outline] Selects the direction and start point of character printing in PAGE MODE. Printing direction Start point 0, 48 Left to right Top left (“A” in the figure) 1, 49 Bottom to top Bottom left (“B”...
  • Page 45: Esc V N

    ESC V n [Function] Specifying/Canceling 90°-right-turned characters [Code] <1B>H<56>H<n> [Range] n = 0, 1, 48, 49 [Outline] Specifying/canceling 90°-right- turned characters. Function 0, 48 Canceling 90°-right- turned Characters 1, 49 Specifying 90°-right- turned Characters [Caution] No underlines are attached to 90°-right- turned characters . [Default] n = 0 [Sample Program]...
  • Page 46: Esc W Xl Xh Yl Yh Dxl Dxh Dyl Dyh

    ESC W xL xH yL yH dxL dxH dyL dyH [Function] Defining the print area in PAGE MODE [Code] <1B>H<57>H<xL><xH><yL><yH><dxL><dxH><dyL><dyH> [Range] xL, xH, yL, yH, dxL, dxH, dyL, dyH 255, except for dxL = dxH = 0 or dyL = dyH = 0 [Outline] Defines the location and size of the print area.
  • Page 47 • The figure below illustrates the print area, where X = horizontal start point, Y=vertical start point, Dx=horizontal length, and Dy=vertical length. Paper Paper Feed Direction Print Area The printable area for this printer is approximately 72.070 mm (576/203 inches) horizontally and 117 mm (1662/360 inches) vertically.
  • Page 48 ESC \ nL nH [Function] Specifying the relative position [Code] <1B>H<5C>H<nL><nH> [Range] [Outline] This command specifies the next print start position in a relative position with respect to the current position. The next print start position will be at a point of [(nL + nH 256) basic calculation pitch] inches away from the current position.
  • Page 49: Esc A N

    ESC a n [Function] Aligning the characters [Code] <1B>H<61>H<n> [Range] [Outline] All the printed data within one line are aligned in the specified position. • Depending on the value “n”, positional alignment is carried out as shown in the table below: Position 0,48 Left end alignment...
  • Page 50: Esc C 3 N

    ESC c 3 n [Function] Selecting the Paper Sensor valid for a paper end signal output [Code] <1B>H<63>H<33>H<n> [Range] [Outline] This command selects by which Paper Sensor a paper end signal should be output. Each bit for “n” has the following meaning: Value Position Paper Near-end...
  • Page 51: Esc C 4 N

    ESC c 4 n [Function] Selecting the Paper Near-end Sensor valid for print stop [Code] <1B>H<63>H<34>H<n> [Range] [Outline] This command selects the Paper Near-end Sensor which helps to stop printing when the paper supply almost runs out. Each bit for “n” has the following meaning: Value Position Paper Near-end...
  • Page 52: Esc C 5 N

    ESC c 5 n [Function] Enabling/Disabling the panel switches [Code] <1B>H<63>H<35>H<n> [Range] [Outline] Enabling/disabling the FEED switch. • “n” is valid only in the lowest bit. Condition FEED switch valid FEED switch invalid [Caution] When the panel switch is disabled with this command, the FEED switch is also disabled.
  • Page 53: Esc D N

    ESC d n [Function] Printing and feeding the paper by “n” lines [Code] <1B>H<64>H<n> [Range] [Outline] Prints data in the print buffer and feeds paper by “n” lines. • Specified lines do not remain. • The beginning of the line is specified as the next print start position.
  • Page 54 ESC p m n1 n2 [Function] Generating the specified pulses [Code] <1B>H<70>H<m><n1><n2> [Range] m = 0, 1, 48, 49 [Outline] The signals specified by “n1” and “n2” are output to the connector pin specified by “m”. • “m” has the followings. Connector Pin 0, 48 Drawer Kick-Out pin No.2...
  • Page 55 ESC t n [Function] Selecting the character code table [Code] <1B>H<74>H<n> [Range] 9, 16 19, n = 255 [Outline] Selecting the character code table: The character code table is selected based on the value of “n”. Character Code Table Codepage PC437 (USA, European Standard) Codepage Katakana (Japanese) 2, 19 Codepage PC858 (Multilingual)
  • Page 56 ESC { n [Function] Specifying/Canceling the inverted characters [Code] <1B>H<7B>H<n> [Range] [Outline] Specifying/canceling inverted characters. • “n” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: Condition Canceling inverted characters. Specifying inverted characters.
  • Page 57 GS ! n [Function] Specifying the character size [Code] <1D>H<21>H<n> [Range] 255, where: vertical magnification horizontal magnification [Outline] Specifies the character size (Vertical and horizontal magnification). Value Function Hex. Number Decimal Number Vertical magnification Refer to Table 2, “Vertical specification Magnification”.
  • Page 58 • If characters of different vertical magnification are contained in a line, the baseline of each character is lined up. • Horizontal and vertical magnification can also be specified/ canceled by ESC !. The ESC ! or GS ! command, whichever is handled last, becomes effective.
  • Page 59 GS $ nL nH [Function] Specifying the absolute vertical position of characters in PAGE MODE [Code] <1D>H<24>H<nL><nH> [Range] [Outline] This command is used in PAGE MODE to specify the vertical position of characters at the data mapping start position as an absolute value measured from the start point.
  • Page 60 n1 n2 [ d ] n1 n2 8 [Function] Defining the download bit image [Code] <1D>H<2A>H<n1><n2> [< d >] n1 [Range] 1536 [Outline] Defines download bit images of the number of dots specified by n1 and n2. • The numbers of dots are n1 8 in horizontal direction and n2 8 in vertical direction.
  • Page 61 [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: n1=10 : n2=5 LPRINT CHR$(&H1D) + “ ”; LPRINT CHR$(n1) + CHR$(n2); FOR J=1 TO n1 FOR I=1 TO n2 LPRINT CHR$(J);...
  • Page 62 GS ( A pL pH n m [Function] Execution of test printing [Code] <1D>H<28>H<41>H<pL><pH><n><m> [Definition] (pL+(pH 256))=2 (pL=2, pH=0) 2, 48 3, 49 [Outline] Specified test printing will be executed. • pL, pH will specify the number of subsequent parameters by (pL+(pH 256))bytes.
  • Page 63 GS / m [Function] Printing the downloaded bit image [Code] <1D>H<2F>H<m> [Range] [Outline] Prints downloaded bit image in a mode specified by “m”. Modes that can be selected by “m” are shown below. Dot Density in Dot Density in Mode Name Vertical Direction Horizontal Direction 0,48...
  • Page 64 GS : [Function] Starting/Ending macro definition [Code] <1D>H<3A>H [Outline] Specifying starting/ending macro definition. Reception of this command during macro definition signifies ending the macro definition. [Caution] Maximum content available for macro definition is 2048 bytes. A portion exceeding 2048 bytes is not defined. •...
  • Page 65: Gs B N

    GS B n [Function] Specifying/Canceling the black/white inverted printing [Code] <1D>H<42>H<n> [Range] [Outline] This command specifies or cancels the black/white inverted printing. • “n” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: Function The black/white inverted printing is canceled.
  • Page 66 GS H n [Function] Selecting of printing position of HRI characters [Code] <1D>H<48>H<n> [Range] [Outline] Selecting printing position of HRI characters in printing bar codes. • “n” means the followings. Printing Position 0,48 No printing 1,49 Above the bar code 2,50 Below the bar code 3,51...
  • Page 67 [Print Results] No HRI characters Printed above Printed below Printed above and below — 65 —...
  • Page 68 GS I n [Function] Sending the printer ID [Code] <1D>H<49>H<n> [Range] 4 , 49 [Outline] Sends the specified printer ID. Type of printer ID Specification Value (Hex.) 1,49 Model ID CBM1000 2,50 Type ID Refer to table “Type ID” below 3,51 ROM version ID As per ROM version...
  • Page 69: Gs L Nl Nh

    GS L nL nH [Function] Setting the left margin [Code] <1D>H<4C>H<nL><nH> [Range] [Outline] This command sets the left margin specified by nL and nH. The value of the left margin is [(nL + nH 256) basic calculation pitch] inches. Printable Area Left Margin Print Area Width [Caution]...
  • Page 70 • When mapping non-character data (Bit image, downloaded bit image, or bar code), if the print area specified is narrower than 9-bits, only the line for that data is handled as follows: (1) The print area is extended toward the left (So, the left margin is decreased) until it is 9-dot wide, but not wider than the printable area.
  • Page 71: Gs P X Y

    GS P x y [Function] Specifying the basic calculation pitch [Code] <1D>H<50>H<x><y> [Range] [Outline] This command sets the horizontal basic calculation pitch to approx. 25.4/x mm (1/x inches), and the vertical basic calculation pitch to approx. 25.4/y mm (1/y inches). •...
  • Page 72 GS V m ..(1) GS V m n ..(2) [Function] Cutting the paper [Code] (1) <1D>H<56>H<m> (2) <1D>H<56>H<m><n> [Range] (1) m = 1, m = 49 (2) m = 66 [Outline] Performs the specified paper cutting. Function 1,49 Partial cut (Leaving a bridge area uncut) Paper feed by “cut position + {n basic calculation...
  • Page 73: Gs W Nl Nh

    GS W nL nH [Function] Setting the print area width [Code] <1D>H<57>H<nL><nH> [Range] [Outline] Sets the print area width specified by nL and nH. • The print area width will be [(nL + nH 256) basic calculation pitch] inches. Printable Area Left Margin Print Area Width [Caution]...
  • Page 74 (2) If a sufficient area cannot be provided as a result of step (1), the print area is extended toward the left (So, the left margin is decreased). Printable Area Extended toward the right (2) The left margin Left Margin is trimmed Print Area Width (3) If a sufficient area cannot be provided as a result of step...
  • Page 75 GS \ nL nH [Function] Specifying the relative vertical position of a character in PAGE MODE [Code] <1D>H<5C>H<nL><nH> [Range] [Outline] This command is used in PAGE MODE to specify the vertical position of a character in the data mapping start position, in a relative position with respect to the current position.
  • Page 76 GS ^ n1 n2 n3 [Function] Executing the macro [Code] <1D>H<5E>H<n1><n2><n3> [Range] [Outline] Executing contents defined in macro. n1 : The number of times of macro execution n2 : Waiting time on macro execution Waiting time of n2 100 msec is given for every execution. n3 : Macro execution mode n3=0 Continuous execution: The Macro is executed “n1”...
  • Page 77 GS a n [Function] Enabling/Disabling ASB (Automatic Status Back) [Code] <1D>H<61>H<n> [Range] [Outline] This command selects the status item to be addressed by ASB (Automatic Status Back.) Status item addressed by ASB Hex. Decimal Status of pin 3 of Drawer Kick-Out Connector = disabled Status of pin 3 of Drawer Kick-Out Connector = enabled Online/offline status = disabled Online/offline status = enabled...
  • Page 78 (1) 1st byte (Printer information) Status Hex. Decimal Unused Unused Status of pin 3 of Drawer Kick-Out Connector = “L” Status of pin 3 of Drawer Kick-Out Connector = “H” Online status Offline status Unused Cover closed Cover open Not in paper feed state triggered by FEED switch In paper feed state triggered by FEED switch Unused (2) 2nd byte (Error occurrence information)
  • Page 79 (4) 4th byte (Paper Sensor information) Status Decimal Undefined — — Undefined — — Undefined — — Undefined — — Unused Undefined — — Undefined — — Unused [Default] DIP Switch 2-6 OFF: n = 0 DIP Switch 2-6 ON: n = 2 [See Also] DLE EOT, GS r —...
  • Page 80 GS b n [Function] Specifying/Canceling the smoothing [Code] <1D>H<62>H<n> [Range] [Outline] This command specifies or cancels the smoothing. • “n” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: Function The smoothing is canceled.
  • Page 81 GS f n [Function] Selecting the font of HRI characters [Code] <1D>H<66>H<n> [Range] n = 0, 1 [Outline] Selecting the font of HRI characters in printing bar code. The type of font can be selected with “n” as follows: Font 0, 48 Font A (12 1, 49...
  • Page 82 GS h n [Function] Specifying the height of the bar code [Code] <1D>H<68>H<n> [Range] [Outline] Selecting bar code height. “n” denotes the number of dots in the vertical direction. [Default] n = 162 [Sample Program] Refer to Sample Program and Print Results for GS w on page 93.
  • Page 83: Table Of Contents

    GS k m [d1 ..dk] NUL GS k m n [d1 ..dn] [Function] Printing the bar code [Code] (1) <1D>H<6B>H<m> [d1..dk] NUL (2) <1D>H<6B>H<m><n> [d1..dn] [Range] (1) 0 The definitions of “k” and “d” vary with the bar code system. (2) 65 73 The definitions of “n”...
  • Page 84 [Caution] For (1): • This command ends with a NUL code. • For UPC-A or UPC-E, the bar code is printed when 12 bytes of bar code data have been entered, and the subsequent data is handled as normal data. •...
  • Page 85 For PAGE MODE: • This command only maps the bar code, without performing a printout. After the bar code is mapped, the dot next to the last data item of the bar code is taken as the start position for the next data mapping.
  • Page 86: Upc-A

    [Description of Bar Codes] <For print examples, refer to page 88.> UPC-A This bar code, consisting of numerals only, has a fixed length of 12 columns; a 11-column number entered from the host or application software plus a check digit (12th column) automatically calculated inside the printer.
  • Page 87: Code93

    CODABAR (NW-7) This bar code, consisting of alphanumerics, has a variable length of columns. Available characters include “0 1 2 3 4 5 6 7 8 9 A B C D $ + – . / :”. A start/stop code is required; any one of A, B, C, and D is used.
  • Page 88: Code128

    CODE128 This bar code consists of 103 bar code characters and three code sets, enabling 128 ASCII code characters to be printed. It has a variable length of columns. • Code set A ASCII characters 00H - 5FH can be represented.
  • Page 89 Special characters Hex. ASCII 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 FNC1 7B32 FNC2 FNC2 –N/A...
  • Page 90 [Description of Bar Codes] UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF, CODABAR, CODE93, CODE128 Type Print Sample Outline of Symbol UPC-A 12-column fixed-length bar code consisting of numerals only. UPC-E 8-column fixed-length bar code consisting of numerals only. Abbreviated version of UPC-A. JAN-13 13-column fixed-length bar code consisting of numerals only.
  • Page 91 GS p n (Only for Label Model) [Function] Selecting the paper mode [Code] <1D>H<70>H<n> [Range] n = 0, 1 [Outline] Selecting the paper mode. The mode can be selected with “n” as follows: Function Standard thermal paper Label paper (Label interval detection or Black mark detection) [Caution] When “n”...
  • Page 92 GS r n [Function] Sending status [Code] <1D>H<72>H<n> [Range] [Outline] Sends the specified status to the host. Function 1,49 Sends the paper Sensor status. 2,50 Sends the Drawer Kick-out Connector status. [Caution] • When the serial interface is used: For DTR/DSR control: The printer sends the status after verifying that the host is ready to receive.
  • Page 93 • Drawer Kick-Out Connector status (n = 2, 50) Status Hex. Decimal Status of pin 3 of Drawer Kick Connector = “L” Status of pin 3 of Drawer Kick Connector = “H” 01 Undefined — — Undefined — — Undefined —...
  • Page 94 GS v 0 m xL xH yL yH d1...dk [Function] Printing of raster bit image [Code] <1D>H<76>H<30>H<m><xL><xH><yL><yH> [<d>] k [Range] 3, 48 51, 0 255, 0 255, 255, 0 8, 0 255, k=(xL+xH 256) (yL+yH 256), however, k 0 [Outline] Prints raster bit images in mode “m”.
  • Page 95 • If this command is executed during macro definition, the macro definition is suspended, and the processing of the command starts. The macro is left undefined. • “d” denotes defined data. Dots to be printed are specified as “1”, and those not to be printed as “0”. [Example] When xL+xH 256= 64...
  • Page 96: Gs W N

    GS w n [Function] Specifying the horizontal size (Magnification) of bar code [Code] <1D>H<77>H<n> [Range] [Outline] Selecting bar code width. “n” denotes the number of dots in fine element width. [Default] n = 3 [Sample Program] LPRINT CHR$(&H1D) + “h” + CHR$(30); LPRINT CHR$(&H1D) + “w”...
  • Page 97 FS g3 m a1 a2 a3 a4 nL nH d1…dk [Function] Writing data into the download user NV memory [Code] <1C>H<67>H<33>H<m>H<a1>H<a2>H<a3>H<a4>H <nL>H<nH>H[<d>]nL+(nH 256) [Range] 6000H (a1+(a2 256)+(a3 65536)+(a4 16777216)) 7FFFH Sto rage start address (nL+(nH 256)) 1024 k=(nL+(nH 256)) [Outline] This command loads data into the download user NV memory.
  • Page 98 [Caution] • Because frequent writing in the non-volatile memory can destroy the memory, the writing command (FS g3) should be used less than 10 times a day. • It may happen that the printer becomes BUSY during the process of writing data into the non-volatile memory while this command is executed.
  • Page 99 FS g4 m a1 a2 a3 a4 nL nH [Function] Reading data from the download user NV memory [Code] <1C>H<67>H<34>H<m>H<a1>H<a2>H<a3>H<a4>H <nL>H<nH>H [Range] 6000H (a1+(a2 256)+(a3 65536)+(a4 16777216)) 7FFFH Write start address +n1+nH 8000H K=(nL+(nH 256)) [Outline] • This command reads data from the download user NV memory.
  • Page 100 • When the XON/XOFF control is selected, all the codes are sent continuously without verifying that the host can receive the data. Data that has been sent is always continuous except for the XOFF code. • When parallel interface is used, the size of the buffer for sending data (The buffer that stores all data to be sent except for ASB status) is 99 bytes.
  • Page 101 F S p n m [Function] Printing the download NV bit images [Code] <1C>H<70>H<n><m> [Range] [Outline] This command prints the download NV bit images (n) using a specified mode (m). Dot Density in Dot Density in Mode Name Vertical Direction Horizontal Direction 0,48 NORMAL MODE...
  • Page 102 • When the size of a bit image exceeds the limits of the printing area, the data within the limits of the printing area will be printed but the parts exceeding the limit will not be printed. • Regardless of the amount of line feed set with ESC 2 and ESC 3, NORMAL MODE and DOUBLE WIDTH MODE execute a paper feed of (Height n of NV bit image) dots while DOUBLE HEIGHT MODE and QUADRUPLE SIZE MODE execute a paper...
  • Page 103 F S q n [xL xH yL yH d1…dk] 1… [xL xH yL yH d1…dk] n [Function] Defining the download NV bit image [Code] <1C>H<71>H<n>H{<xL><xH><yL><yH><d1...dk>}1... {<xL><xH><yL><yH><d1...dk>}n [Range] 255, 0 255, 3 but, 1 (xL + xH 256) 1023 1 but, 1 (yL + yH 256) k = ( xL + xH...
  • Page 104 • If outside-defined-area arguments are processed for the second or subsequent NV bit image data groups, the processing of this command is suspended, and a writing process into the non-volatile memory starts. At this time, the NV bit image being defined becomes invalid (Undefined), but the preceding NV bit images are valid.
  • Page 105 [Caution] • Because frequent writing in the non-volatile memory can destroy the memory, the writing command should be used less than 10 times a day. • Just after the completion of the writing operation into the non- volatile memory, the printer hardware will be reset. Therefore, download characters, download bit images, and macro definition will be made undefined.
  • Page 106 GS FF [Function] Printing and discharging the label. [Code] <1DH><0C>H [Outline] This command prints the data in the printer buffer and cuts discharged the label [Caution] Valid only if "Label" is chosen for paper type. Operation depends on the selection mechanism: No auto cutter: •...
  • Page 107 GS < [Function] Initializing the printer mechanism [Code] <1D>H<3C>H [Outline] Perform a label initialization identical to power-on initialization. [Caution] This command is valid only if "label" is chosen. • Parameters configured by commands are not reset. GS A m n [Function] Correcting the label top position [Code]...
  • Page 108 GS C0 m n [Function] Setting the numbering print mode. [Code] <1D>H<43>H<30>H<m><n> [Range] [Outline] This command sets the numbering(serial number counter) print mode. m denotes the number of print columns. Prints the columns indicated by numeral. In theis case, n has no meaning. m=1 to 5 Indicates the maximum number of columns to be printed.
  • Page 109 GS C1 n1 n2 n3 n4 n5 n6 [Function] Setting the numbering counter mode (A) [Code] <1D>H<43>H<31>H<n1><n2><n3><n4><n5><n6> [Range] n1 , n2 , n3 , n4 , n5 , n6 [Outline] This command sets the numbering(serial number counter) mode. n1 + n2 x 256(n1 = remainder, n2 = quotient) : Counter default n3 + n4 x 256(n3 = remainder, n4 = quotient) : Counter final value : Counter step value : Idential counter print counter...
  • Page 110 GS C2 n1 n2 [Function] Setting the numbering counter [Code] <1D>H<43>H<32>H<n1><n2> [Range] [Outline] This command sets the numbering (serial number counter) value. n1 + n2 x 256(n1= remainder, n2=quotient) becomes a counter value. [Caution] • If the counter is set with this command, a repeat count of the idential count will be cleared.
  • Page 111 GS C ; n1 ; n2 ; n3 ; n4 ; n5 ; [Function] Setting the numbering counter mode (B) [Code] <1D>H<43>H<3B>H<n1><3B>H<n2><3B>H<n2> <3B>H<n3><3B>H<n4><3B>H<n5><3B>H <n1>,<n2>,<n3>,<n4>,<n5> are character codes. [Range] n1 , n2 , n5 65535 n3 , n4 [Outline] This command sets the numbering (serial number counter) mode and a counter value.
  • Page 112 GS c [Function] Print the counter [Code] <1D>H<63>H [Outline] This command prints the serial number counter data. After setting the current counter value in the print buffer as the print data (Character string), it increments or decrements the counter according to the set count mode.

Table of Contents