Resumo do conteúdo contido na página número 1
Command Reference
LINE THERMAL PRINTER
MODEL
PPU-231II
Rev. 1.01 Newly issued on December 19, 2002
Resumo do conteúdo contido na página número 2
REVISION Rev.No. Date Comment Rev. 1.00 Jun. 10, 2002 Newly issued Rev. 1.01 Dec. 19, 2002 Revised P. 12, P. 78, P. 79, P. 90
Resumo do conteúdo contido na página número 3
1. PRINT CONTROL FUNCTIONS 1.1 Command List No. Command Function Mode Code Page 1 HT Horizontal tab S.P. <09>H 5 2 LF Printing and paper feed S.P. <0A>H 6 3 CR Back to printing S.P. <0D>H 7 Printing in PAGE MODE and returning to P STANDARD MODE 4FF <0C>H 8 Printing and paper feeding to the top of S the Black mark position 5 CAN Canceling print data in PAGE MODE P <18>H 9 6 DLE EOT Sending status in real-time S.P. <10>H<04>H 10 7 DLE ENQ Real-time request to printer S
Resumo do conteúdo contido na página número 4
No. Command Function Mode Code Page Specifying/Canceling 90°-right-turned 31 ESC V S <1B>H<56>H 41 characters <1B>H<57>H 32 ESC W Defining the print area in PAGE MODE P* 42 33 ESC \ Specifying the relative position S.P.* <1B>H<5C>H 44 34 ESC a Aligning the characters S.P. <1B>H<61>H 45 Selecting the Paper Sensor valid for <1B>H<63>H<33>H 35 ESC c3 S.P. 46 paper end signal output Selecting the Paper Near-end Sensor valid <1B>H<63>H<34>H 36
Resumo do conteúdo contido na página número 5
No. Command Function Mode Code Page <1D>H<57>H 58 GS W Setting the print area width S.P.* 73 Specifying the relative vertical position <1D>H<5C>H 59 GS \ S.P.* 75 of a character in PAGE MODE <1D>H<5E>H 60 GS ^ Executing the macro S.P. 76 Enabling/Disabling ASB (Automatic 61 GS a S.P. <1D>H<61>H 77 Status Back) 62 GS f Selecting the font of HRI characters S.P. <1D>H<66>H 80 63 GS h Specifying the height of the bar code S.P. <1D>H<68>H 81 (1)<1D>H<6B>H [d
Resumo do conteúdo contido na página número 6
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” times. [Range] Indicates the values (setting range) of argumeuts of the command. Note: If values outside the defined domain specified with control codes are used, malfunctions could possibly occur, so be sure t
Resumo do conteúdo contido na página número 7
1.2.2 Command Details HT [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. • The initial setting of horizontal tab positions is at intervals of 8 characters for font A at 9th, 17th, 25th, 33rd, columns. [See Also] ESC D [Sample Program] LPRINT “0123456789012345678901”; LPRINT CHR$(&HA); LPRINT CHR$(&H9) + “AAA”
Resumo do conteúdo contido na página número 8
LF [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” + CHR$(&HA) ; LPRINT “BBB” + CHR$(&HA) ; LPRINT CHR$(&HA) ; LPRINT “CCC” + CHR$(&HA) ; END [Print Results] AAA ← Print and line feed BBB ← Print and line feed ← Line feed only CCC ← Print and line feed — 6
Resumo do conteúdo contido na página número 9
CR [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. [See Also] LF [Sample Program] LPRINT “AAA” + CHR$(&HD) ; LPRINT “BBB” + CHR$(&HD) ; LPRINT CHR$(&HD) ; LPRINT “CCC” + CHR$(&HD) ; END [Print Results] AAA ← Print and line feed BBB ← Print and line fe
Resumo do conteúdo contido na página número 10
FF (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. • The print area set up by ESC W is initialized. • This command does not execute a paper cut. • After this command is executed, the beginning of the line is taken as the start position for the next print. • This command is only effective
Resumo do conteúdo contido na página número 11
CAN [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. [See Also] ESC L, ESC W — 9 —
Resumo do conteúdo contido na página número 12
DLE EOT n [Function] Sending status in real-time [Code] <10>H<04>H [Range] 1 n 4 [Outline] Sends in real-time the status specified by “n”. n Status 1 Printer status 2 Status caused by an offline condition 3 Status caused by an error 4 Continuous paper detector status [Caution] • Each status represents the current status. It is 1 byte data. • The status is transferred without checking whether the host is ready to receive or busy. • This comma
Resumo do conteúdo contido na página número 13
(1) Printer status (When n = 1 is specified) Bit Status Hex. Decimal 0 Unused 00 0 1 Unused 02 2 2 Undefined — — Online status 00 0 3 Offline status 08 8 4 Unused 10 16 5 Undefined — — 6 Undefined — — 7 Unused 00 0 (2) Status caused by an offline condition (When n = 2 is specified) Bit Status Hex. Decimal 0 Unused 00 0 1 Unused 02 2 2 Unused 00 0 Not in paper feed state triggered by 00 0 FEED switch 3 In paper feed state triggered by FEED 08 8 switch 4 Unused 10 16 Printing is not stopped becaus
Resumo do conteúdo contido na página número 14
(3) Status caused by an error (when n = 3 is specified) Bit Status Hex. Decimal 0 Unused 00 0 1 Unused 02 2 No Black mark detection error occurred 00 0 (only when “Black mark” is selected). 2 A Black mark detection error occurred 04 4 (only when “Black mark” is selected). Auto cutter error not occurred 00 0 3 Auto cutter error occurred 08 8 4 Unused 10 16 Unrecoverable error not occurred 00 0 5 Unrecoverable error occurred 20 32 Auto recovery error not occurred 00 0 6 Auto recovery error occur
Resumo do conteúdo contido na página número 15
DLE ENQ n [Function] Real-time request to printer [Code] <10>H<05>H [Range] 1 n 2 [Outline] The printer responds in real-time to the request that the host specifies with number “n”. n Function After recovering from an error, the printer resumes 1 printing from the beginning of the line where the error occurred. The printer clears the receive buffer and the print buffer, 2 and then recovers from the error. [Caution] • This command is only effective if an a
Resumo do conteúdo contido na página número 16
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. [See Also] FF, ESC L, ESC S — 14 —
Resumo do conteúdo contido na página número 17
ESC SP n [Function] Setting the right spacing of the character [Code] <1B>H<20>H [Range] 0 n 255 [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. • The right spacing can be set separately for the STANDARD and PAGE MODES. • The basic calculation pitch is set by GS P. Once defined, the right spacing is not changed if the basic calcu
Resumo do conteúdo contido na página número 18
[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) ; END [Print Results] AAAAA ← 0-dot space AA AA A ← 1-dot space AAAAA ← 12-dots space — 16 —
Resumo do conteúdo contido na página número 19
ESC ! n [Function] Collectively specifying the printing mode [Code] <1B>H<21>H [Range] 0 n 255 [Outline] Printing mode is assigned. Value Bit Function 01 0 Character Font Font A Font B 1 Undefined 2 Undefined 3 Emphasis Canceled Specified 4 Double height Canceled Specified 5 Double width Canceled Specified 6 Undefined 7 Underline Canceled Specified [Caution] • With double height and double width being specified simultaneously, quadruple characters are created. • An underline is attached t
Resumo do conteúdo contido na página número 20
[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) + “!” + CHR$(&HB9) + “H” ; LPRINT CHR$(&HA) ; END [Print Results] Font A Font B Font A + Emphasis ∨∨ ∨ Font B + Emphasis + Quadruple + Underline Font A + Underline Font A + Double Width Font A + Double Height — 18 — ∨∨ ∨ ∨