Citizen PPU-231II Command Reference Manual
Citizen PPU-231II Command Reference Manual

Citizen PPU-231II Command Reference Manual

Citizen line thermal printer command reference manual

Advertisement

Quick Links

Command Reference

LINE THERMAL PRINTER
PPU-231II
MODEL
Rev. 1.01 Newly issued on December 19, 2002

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PPU-231II and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Citizen PPU-231II

  • Page 1: Command Reference

    Command Reference LINE THERMAL PRINTER PPU-231II MODEL Rev. 1.01 Newly issued on December 19, 2002...
  • Page 2 REVISION Rev.No. Rev. 1.00 Jun. 10, 2002 Rev. 1.01 Dec. 19, 2002 Date Newly issued Revised P. 12, P. 78, P. 79, P. 90 Comment...
  • Page 3: Table Of Contents

    Printing and paper feeding to the top of the Black mark position Canceling print data in PAGE MODE DLE EOT Sending status in real-time DLE ENQ Real-time request to printer ESC FF Printing data in PAGE MODE 10 ESC SP...
  • Page 4: No. Command

    49 GS B inverted printing Selecting of printing position of HRI 50 GS H characters 51 GS I Sending the printer ID 52 GS L Setting the left margin 53 GS P Specifying the basic calculation pitch 54 GS R0...
  • Page 5 No. Command 58 GS W Setting the print area width Specifying the relative vertical position 59 GS \ of a character in PAGE MODE 60 GS ^ Executing the macro Enabling/Disabling ASB (Automatic 61 GS a Status Back) 62 GS f Selecting the font of HRI characters 63 GS h Specifying the height of the bar code...
  • Page 6: Descriptions Of Each Item

    1.2 Command Details 1.2.1 Descriptions of Each Item XXXX [Function] [Code] [Range] [Outline] [Caution] [Default] [Reference] [Sample Program] [Printing Result] The name of a command. The string of codes comprising the command is represented by < >H for hexadecimal numbers, < >B for binary numbers, and <...
  • Page 7: Ht Horizontal Tab S.p. <09>H

    1.2.2 Command Details [Function] [Code] [Outline] [Caution] [See Also] [Sample Program] [Printing Result] Horizontal tab <09>H 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. •...
  • Page 8: Lf Printing And Paper Feed S.p. <0A>H

    [Function] [Code] [Outline] [Caution] [See Also] [Sample Program] [Print Results] Printing and paper feed <0A>H Prints data inside the print buffer and feeds paper based on the line feed amount having been set. The head of the line becomes the next print starting position. ESC 2, ESC 3 LPRINT “AAA”...
  • Page 9: Cr Back To Printing S.p. <0D>H

    [Function] [Code] [Outline] [See Also] [Sample Program] [Print Results] Back to printing <0D>H 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 10: Printing In Page Mode And Returning To Standard Mode

    Printing and paper feeding to the top of the Black mark position <0C>H This command prints the data in the printer buffer and searches for the head of the next label (Black mark position) This command is valid only when the label printer is selected with DS2-7.
  • Page 11: Can Canceling Print Data In

    [Function] [Code] [Outline] [Caution] [See Also] Canceling print data in PAGE MODE <18>H Erases all data contained in the currently effective print area in PAGE MODE. • 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 12: Dle Eot N

    2 bytes or more. [Example 2] If the printer sends DLE EOT 3 after the host has sent up to ESC 3 in its attempt to send ESC 3 n, the printer handles the ESC 3 as ESC 3 <10>H.
  • Page 13 Unused Bit 5: Printing is stopped if the paper end detector detects a “paper out” state, or if the printer is out of paper when the Paper Near-end Sensor is enabled by ESC c 4. At this time, bit 5 = “1”.
  • Page 14 [See Also] (3) Status caused by an error (when n = 3 is specified) Status Unused Unused No Black mark detection error occurred (only when “Black mark” is selected). A Black mark detection error occurred (only when “Black mark” is selected). Auto cutter error not occurred Auto cutter error occurred Unused...
  • Page 15: Dle Enq N

    [Example 2] • If the printer sends DLE ENQ 2 when the host has sent up to ESC 3 in its attempt to send ESC 3 n, the printer treats the ESC 3 as ESC 3 <10>H. Thus, the user should be careful.
  • Page 16: Esc Ff

    ESC FF [Function] [Code] [Outline] [Caution] [See Also] Printing data in PAGE MODE <1B>H<0C>H Executes a batch printout of the data mapped in the entire print area in PAGE MODE. • This command is only effective when PAGE MODE is selected. •...
  • Page 17: Esc Sp

    ESC SP n [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] Setting the right spacing of the character <1B>H<20>H<n> Sets the right spacing of character to [n basic calculation pitch] inches. • If the horizontal magnification of character is 2 or more, the right spacing increases with the magnification.
  • Page 18 [Sample Program] [Print Results] 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) ; AAAAA A A A A A A A A A A...
  • Page 19: Collectively Specifying The Printing Mode

    ESC ! n [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] Collectively specifying the printing mode <1B>H<21>H<n> Printing mode is assigned. Function Character Font Undefined Undefined Emphasis Double height Double width Undefined Underline • With double height and double width being specified simultaneously, quadruple characters are created.
  • Page 20 [Sample Program] [Print Results] 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) + “!”...
  • Page 21: Specifying The Absolute Positions

    ESC $ n1 n2 [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] Specifying the absolute positions <1B>H<24>H<n1><n2> 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 22 [Sample Program] [Print Results] 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) ;...
  • Page 23: Esc

    ESC % n [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] [Sample Program] GOSUB SETCHR LPRINT CHR$(&H1B) + “%” + CHR$(0) ; LPRINT “@A” + CHR$(&HA) ; LPRINT CHR$(&H1B) + “%” + CHR$(1) ; LPRINT “@A” +CHR$(&HA) ; SETCHR: LPRINT CHR$(&H1B) + “&” ; LPRINT CHR$(3) + “@”...
  • Page 24: Defining The Download Characters

    ESC & s n m [a [p] s a] m–n+1 [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] Defining the download characters <1B>H<26>H<s>H<n><m>[<a><p1><p2> s = 3 12 (Font A) 9 (Font B) Defines the font of download characters of alphanumeric characters.
  • Page 25 [Example] 24dot [Sample Program] 12dot p1 p4 Font A Create each data bit by setting “1” for a printed dot and “0” for an unprinted dot. Refer to Sample Program and Print Results for ESC % on page 23. — 23 — 9dot p1 p4 24dot...
  • Page 26: Esc

    • When the value of m is out of the above range, the data following after n1 is processed as normal printing data. • After completion of bit image printing, the printer returns to normal data processing mode. — 24 —...
  • Page 27 [Sample Program] LPRINT CHR$(&H1B) + “ LPRINT CHR$(0) + CHR$(20) + CHR$(0); GOSUB IMG1 LPRINT CHR$(&HA); LPRINT CHR$(&H1B + “ LPRINT CHR$(1) + CHR$(20) + CHR$(0); GOSUB IMG1 LPRINT CHR$(&HA); LPRINT CHR$(&H1B) + “ LPRINT CHR$(32) + CHR$(20) + CHR$(0); GOSUB IMG2 LPRINT CHR$(&HA);...
  • Page 28: Specifying/Canceling Underline

    ESC – n [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] [Sample Program] [Print Results] Specifying/Canceling underline <1B>H<2D>H<n> Specifying/canceling an underline. 0.48 Canceling an underline 1.49 Specifying an underline for 1-dot width 2.50 Specifying an underline for 2-dots width • 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 29: Esc 2

    ESC 2 [Function] [Code] [Outline] [Caution] [Sample Program] [Print Results] Specifying 1/6-inch line feed rate <1B>H<32>H The line feed rate per line is specified by 1/6 inch. Line feed rate can be specified respectively for both STANDARD MODE and PAGE MODE. LPRINT “AAAAA”...
  • Page 30: Esc 3 N

    ESC 3 n [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] Setting line feed rate of minimum pitch <1B>H<33>H<n> Sets the line feed width per line to [n inches. The line feed width can be set separately for the STANDARD and PAGE MODES.
  • Page 31: Data Input Control

    • When the printer has not been selected, this printer abandons all the received data until it is selected by this command. • Even when the printer has not been selected, it can become BUSY state through printer operation. • When the printer is deselected, this printer discards all the data until it is selected with this command.
  • Page 32: Deleting Download Characters

    ESC ? n [Function] [Code] [Range] [Outline] [Caution] [See Also] Deleting download characters <1B>H<3F>H<n> Deletes the downloaded characters of specified code. • 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 33 [Code] [Outline] [Caution] [Sample Program] [Print Results] Initializing the printer <1B>H<40>H Clears data stored in the print buffer and brings various settings to the initial state (Default state). • The settings of DIP switches are not read again. • Data inside the internal input buffer is not cleared.
  • Page 34 ESC D [ n ] k NUL [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] [Sample Program] Setting horizontal tab position <1B>H<44>H [<n>] k<00> Specifying a horizontal tab position. • “n” indicates the number of columns from the beginning to the horizontal tab position.
  • Page 35: Esc E N

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

    • Control by the lowest bit (n0) is shown as follows. Canceling double strike printing Specifying double strike printing This is effective to all characters. With this printer,double-strike printing and emphasis printing provide completely the same results. ESC E LPRINT CHR$(&H1B) + “G” + CHR$(0);...
  • Page 37: Esc J N

    ESC J n [Function] [Code] [Range] [Outline] [Caution] [Default] [Sample Program] Printing and feeding paper in minimum pitch <1B>H<4A>H<n> 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.
  • Page 38 ESC L [Function] [Code] [Outline] [Caution] [See Also] Selecting PAGE MODE <1B>H<4C>H Switches from STANDARD MODE to PAGE MODE. • 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 39: Esc M N

    ESC M n [Function] [Code] [Definition value] [Outline] [Details] [Reference] Selection of character fonts <1B>H<4D>H<n> n=0, 1, 48, 49 Selects character fonts. 0, 48 Selection of font A (12 1, 49 Selection of font B (9 ESC ! can also select fonts, but the setting made by the command that has last been processed becomes valid.
  • Page 40 ESC R n [Function] [Code] [Range] [Outline] [Default] [See Also] Selecting the international character set <1B>H<52>H<n> Depending on the value of “n”, one of the following character sets is specified; n = 0 Character Code Table (International Character Set) — 38 — Character Set U.S.A.
  • Page 41 STANDARD MODE use. (1) Spacing setting: (2) Line feed width setting: ESC 2, ESC 3 • STANDARD MODE is selected when the printer is turned on or reset,or when ESC @ is executed. FF, ESC FF, ESC L —...
  • Page 42: Esc T N

    Top to bottom Print Area • When STANDARD MODE is selected, this command only executes the internal flagging of the printer without affecting the printing in STANDARD MODE. • The character mapping position will be the start point of the print area specified by ESC W.
  • Page 43: Esc V N

    ESC V n [Function] [Code] [Range] [Outline] [Caution] [Default] [Sample Program] [Print Results] Specifying/Canceling 90°-right-turned characters <1B>H<56>H<n> n = 0, 1, 48, 49 Specifying/canceling 90°-right- turned characters. 0, 48 Canceling 90°-right- turned Characters 1, 49 Specifying 90°-right- turned Characters No underlines are attached to 90°-right- turned characters . n = 0 LPRINT CHR$(&H1B) + “V”...
  • Page 44: Esc W Xl Xh Yl Yh Dxl Dxh Dyl Dyh

    • Vertical length = [(dyL + dyH inches • When STANDARD MODE is selected, this command only executes the internal flagging of the printer without affecting the printing in STANDARD MODE. • If the horizontal start point or vertical start point is out of the printable area, this command is canceled and the next data is handled as normal data.
  • Page 45 • The figure below illustrates the print area, where X = horizontal start point, Y=vertical start point, Dx=horizontal length, and Dy=vertical length. Print Area The printable area for this printer is approximately 72.070 mm (576/203 inches) horizontally and 117 mm (1662/360 inches) vertically. xL=xH=yL=yH=0...
  • Page 46 ESC \ nL nH [Function] [Code] [Range] [Outline] [Caution] [See Also] [Sample Program] Specifying the relative position <1B>H<5C>H<nL><nH> 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 47: Esc A N

    ESC a n [Function] [Code] [Range] [Outline] [Caution] [Default] [Sample Program] [Print Results] Aligning the characters <1B>H<61>H<n> 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: 0,48 Left end alignment...
  • Page 48: Esc C 3 N

    ESC c 3 n [Function] [Code] [Range] [Outline] [Caution] [Default] Selecting the Paper Sensor valid for a paper end signal output <1B>H<63>H<33>H<n> This command selects by which Paper Sensor a paper end signal should be output. Each bit for “n” has the following meaning: Position Paper Near-end Paper Near-end...
  • Page 49 Each bit for “n” has the following meaning: Position Paper Near-end Paper Near-end Undefined Undefined Undefined Undefined Undefined Undefined This printer can only select one kind of Paper Sensor, a Paper Near-end Sensor. n = 0 — 47 — Value Disabled Enabled Disabled Enabled...
  • Page 50: Esc C 5 N

    ESC c 5 n [Function] [Code] [Range] [Outline] [Caution] [Default] [Sample Program] LPRINT CHR$(&H1B) + “c5” + CHR$(0); LPRINT CHR$(&H1B) + “c5” + CHR$(1); Enabling/Disabling the panel switches <1B>H<63>H<35>H<n> Enabling/disabling the FEED switch. • “n” is valid only in the lowest bit. FEED switch valid FEED switch invalid When the panel switch is disabled with this command, the FEED...
  • Page 51: Esc D N

    ESC d n [Function] [Code] [Range] [Outline] [Caution] [Default] [Sample Program] [Print Results] Printing and feeding the paper by “n” lines <1B>H<64>H<n> Prints data in the print buffer and feeds paper by “n” lines. • Specified lines do not remain. •...
  • Page 52 • If a value lower than the preset value is set during PNE detection, the printer may stop printing. • The set value remains valid until the printer is restarted or the a new value is set. n=150 (150 cm) LPRINT CHR$ (&H1B);...
  • Page 53 ESC t n [Function] [Code] [Range] [Outline] [Default] [Sample Program] [Print Results] Selecting the character code table <1B>H<74>H<n> 9, n = 255 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) Codepage PC850 (Multilingual)
  • Page 54 ESC { n [Function] [Code] [Range] [Outline] [Caution] [Default] [Sample Program] [Print Results] Specifying/Canceling the inverted characters <1B>H<7B>H<n> Specifying/canceling inverted characters. • “n” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: Canceling inverted characters.
  • Page 55 GS ! n [Function] [Code] [Range] [Outline] Table 1 Horizontal Magnification Hex. Decimal Magnification 1 (Standard) 2 (Double width) [Caution] Specifying the character size <1D>H<21>H<n> 255, where: vertical magnification horizontal magnification Specifies the character size (Vertical and horizontal magnification). Function Vertical magnification specification Horizontal magnification...
  • Page 56 [Default] [See Also] • 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 57: Page Mode

    GS $ nL nH [Function] [Code] [Range] [Outline] [Caution] [See Also] Specifying the absolute vertical position of characters in PAGE MODE <1D>H<24>H<nL><nH> 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 58 n1 n2 [ d ] n1 n2 8 [Function] [Code] [Range] [Outline] [Caution] [See Also] Defining the download bit image <1D>H<2A>H<n1><n2> [< d >] n1 1536 Defines download bit images of the number of dots specified by n1 and n2. •...
  • Page 59 [Sample Program] [Print Results] 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 60 • During macro definition, if this command is processed, the macro definition is suspended, and the command starts being processed. • Printer will reset its hard disk after finishing test printing. Therefore, the printer makes download characters, bit map images and macros undefined, clears the reception buffer/print buffer, and returns the various settings to defaults.
  • Page 61 GS / m [Function] [Code] [Range] [Outline] [Caution] [See Also] Printing the downloaded bit image <1D>H<2F>H<m> Prints downloaded bit image in a mode specified by “m”. Modes that can be selected by “m” are shown below. Mode Name 0,48 NORMAL MODE 1,49 DOUBLE WIDTH MODE 2,50...
  • Page 62 Maximum content available for macro definition is 2048 bytes. A portion exceeding 2048 bytes is not defined. • Even with ESC @ (Initialization of the printer) having been executed, defined content is not cleared. Therefore, it is possible to include ESC @ into the content of macro definition.
  • Page 63 (FF, GS FF, GS A) or by the operation of the FEED switch, and just after setting the top of form at printer power • If you want to correct the top position in the forward direction, set the value in consideration of the print length as the printable area may change after setting the value.
  • Page 64: Gs B N

    GS B n [Function] [Code] [Range] [Outline] [Caution] [Default] Specifying/Canceling the black/white inverted printing <1D>H<42>H<n> 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: The black/white inverted printing is canceled.
  • Page 65 GS H n [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] [Sample Program] Selecting of printing position of HRI characters <1D>H<48>H<n> Selecting printing position of HRI characters in printing bar codes. • “n” means the followings. 0,48 1,49 2,50 3,51 Both above and below the bar code •...
  • Page 66 [Print Results] No HRI characters Printed above Printed below Printed above and below — 64 —...
  • Page 67 Type ID If n=2, 50 is specified: [Caution] • Under DTR/DSR control, the printer sends the printer ID after verifying that the host is ready to receive. If the host is not ready to receive, the printer waits for the host to become ready to receive.
  • Page 68: Gs L Nl Nh

    • When PAGE MODE is selected, this command only executes the internal flagging of the printer. • The setting of this command does not affect PAGE MODE. • The maximum settable left margin is equal to the horizontal printable area.
  • Page 69 [Default] [See Also] • 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 70: Gs P X Y

    GS P x y [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] Specifying the basic calculation pitch <1D>H<50>H<x><y> 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 71 GS R 0 n [Function] [Code] [Range] [Outline] [Caution] [See Also] Collecting receipts <1D>H<53>H<30>H<n>H • This command is valid only when the collection function of the DIP switch is enabled. • This command is ignored in any of the following cases. (1) There is no paper in the presenter.
  • Page 72 GS R 1 n [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] Setting receipt collection timer <1D>H<53>H<31>H<n> • This command is valid only when the collection function of the DIP switch is enabled. • This command sets the wait time till the receipts are collected automatically.
  • Page 73 • When a black mark is detected, the print paper is cut and ejected. • Also at the time of printer power on, a black mark is detected and the print paper is cut and ejected. (Settable with DIP switch) •...
  • Page 74 GS V m ... (1) GS V m n ... (2) [Function] [Code] [Range] [Outline] [Caution] Cutting the paper (1) <1D>H<56>H<m> (2) <1D>H<56>H<m><n> (1) m = 0, 1, 48, 49 (2) m = 65, 66 Performs the specified paper cutting. 0,1,48,49 Paper cut (full cut) (Leaving a bridge area uncut) Paper feed by “cut position + {n basic calculation...
  • Page 75: Gs W Nl Nh

    • When PAGE MODE is selected, this command only executes the internal flagging of the printer. • The setting of this command does not affect PAGE MODE. • If the value entered with this command exceeds the printable area for one line, the entire area except the left margin is set as the print area width.
  • Page 76 [Default] [See Also] (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 (2) The left margin Left Margin is trimmed (3) If a sufficient area cannot be provided as a result of step (2), the right spacing is trimmed.
  • Page 77 GS \ nL nH [Function] [Code] [Range] [Outline] [Caution] Specifying the relative vertical position of a character in PAGE MODE <1D>H<5C>H<nL><nH> 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 78 GS ^ n1 n2 n3 [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] [Sample Program] Executing the macro <1D>H<5E>H<n1><n2><n3> 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.
  • Page 79 • The printer sends 4 bytes of status shown in the tables below, without checking whether the host is ready to receive or busy. The 4 bytes of status is a continuous string except for XOFF code.
  • Page 80 (1) 1st byte (Printer information) Status Unused Unused Unused Online status Offline status Unused Unused Not in paper feed state triggered by FEED switch In paper feed state triggered by FEED switch Unused (2) 2nd byte (Error occurrence information) Status...
  • Page 81 [Default] [See Also] (3) 3rd byte (Paper Sensor information) Status Paper found by Paper Near-end Sensor 1 Paper not found by Paper Near-end Sensor 1 Paper found by Paper Near-end Sensor 2 Paper not found by Paper Near-end Sensor 2 Paper found by Paper-end Sensor Paper not found by Paper-end Sensor Paper found by Presenter Sensor...
  • Page 82 GS f n [Function] [Code] [Range] [Outline] [Caution] [Default] [See Also] [Sample Program] [Print Results] Selecting the font of HRI characters <1D>H<66>H<n> n = 0, 1 Selecting the font of HRI characters in printing bar code. The type of font can be selected with “n” as follows: 0, 48 1, 49 The HRI characters refer to the bar code-turned characters so...
  • Page 83 GS h n [Function] [Code] [Range] [Outline] [Default] [Sample Program] Specifying the height of the bar code <1D>H<68>H<n> Selecting bar code height. “n” denotes the number of dots in the vertical direction. n = 162 Refer to Sample Program and Print Results for GS w on page 93.
  • Page 84 GS k m [d1 ... dk] NUL GS k m n [d1 ... dn] [Function] [Code] [Range] [Outline] Printing the bar code (1) <1D>H<6B>H<m> [d1...dk] NUL (2) <1D>H<6B>H<m><n> [d1...dn] (1) 0 The definitions of “k” and “d” vary with the bar code system.
  • Page 85 [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 86 [Default] 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 87 8 columns with a check digit attached and then is printed. The 12th- column check digit is automatically calculated inside the printer. If it is and sent from the host, the entire bar code will be printed, compressed to 8 columns.
  • Page 88 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 89 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 •...
  • Page 90 C, send the following data string: GS k <73><10><7Bh 42h> “No.” <7Bh 43h><12><34><56> • If the printer finds a string of bar code data that does not begin with a code set select character, it immediately aborts the command processing and handles the subsequent data as normal data.
  • Page 91 [Description of Bar Codes] Type UPC-A UPC-E JAN-13 JAN-8 CODE39 CODABAR (NW-7) CODE93 CODE128 UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF, CODABAR, CODE93, CODE128 Print Sample Printing is done according to bar code type, number of print columns, bar code height, width (Magnification), availability of HRI character, and bar code data.
  • Page 92 • When the serial interface is used: For DTR/DSR control: The printer sends the status after verifying that the host is ready to receive. If the host is not ready to receive, the printer waits for the host to become ready to receive.
  • Page 93 GS v 0 m xL xH yL yH d1...dk [Function] [Code] [Range] [Outline] [Details] Printing of raster bit image <1D>H<76>H<30>H<m><xL><xH><yL><yH> [<d>] k 3, 48 51, 0 255, 0 k=(xL+xH 256) (yL+yH Prints raster bit images in mode “m”. Mode Name 0,48 NORMAL MODE 1,49...
  • Page 94 [Example] (xL+xH • 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”.
  • Page 95: Gs W N

    GS w n [Function] [Code] [Range] [Outline] [Default] [Sample Program] [Print Results] Specifying the horizontal size (Magnification) of bar code <1D>H<77>H<n> Selecting bar code width. “n” denotes the number of dots in fine element width. n = 3 LPRINT CHR$(&H1D) + “h” + CHR$(30); LPRINT CHR$(&H1D) + “w”...
  • Page 96 • Data in the user NV memory can be read by using the FS g4 command. • Data in the user NV memory is not initialized by using the ESC @ command, the FS q command or by resetting the printer or turning the power off. — 94 —...
  • Page 97 (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. When the printer becomes BUSY, it will stop receiving data.
  • Page 98 • When the preparation for sending data is completed, the following processes are executed. 1) The printer state will change from READY to BUSY. If the printer state is already set to BUSY, the printer will do nothing.
  • Page 99 ASB status will not be sent while data is in the process of being sent. Therefore, it is not possible to check the change in the printer state by checking its status. The user must pay attention to this.
  • Page 100 F S p n m [Function] [Code] [Range] [Outline] [Details] Printing the download NV bit images <1C>H<70>H<n><m> This command prints the download NV bit images (n) using a specified mode (m). Mode Name 0,48 NORMAL MODE 1,49 DOUBLE WIDTH MODE 2,50 DOUBLE HEIGHT MODE 3,51...
  • Page 101 [Related Commands] • 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 102 • From the execution of this command until the completion of the hardware reset, any mechanical operation such as opening the cover, initializing the printer head position, or using the paper-feed switch etc. • The NV bit image refers to a bit image that is defined by the FS q command in the non-volatile memory and printed by the FS p command.
  • Page 103 ([Data: (xL + xH [header: 4]) bytes of non-volatile memory is used to store it. • The maximum definition area of this printer is 2M bit (256K byte). Multiple NV bit images can be defined, but bit images of which total size (Bit image data + header) exceeds 2M bit(256K byte) can not be defined.
  • Page 104 Then the status of dip switches will be checked once more. • It may happen that the printer becomes BUSY during the process of writing data into the non-volatile memory in the execution of this command. When the printer becomes BUSY, it will stop receiving data.

Table of Contents

Save PDF