Manopla para abertura da impressora

Similar documents
NEO-PLACA-PRINTER-PT486F24401

Command Manual SRP-350 Thermal Printer Rev. 1.01

Printer Control Command Set

PP8X Printer Command Manual

PP8X Printer Command Manual

TM-L60II/L60IIP. The words on the left side of this screen are bookmarks for all the topics in this guide.

MOBILE THERMAL PRINTER

PROGRAMMER S MANUAL 58mm Printer

WinPOS system. Co., ltd. WP-K837 series. Esc/POS Command specifications Ver.0.94

PP7X PRINTER COMMAND MANUAL

PP7X PRINTER COMMAND MANUAL

4 Pr P i r n i t n e t r e Co C m o m m a m n a d n s d Li L s i t N. C m o m m a m n a d

Tally Dascom DT-210/230 Programming Guide V1.1

PANDA Thermal Receipt Printer. Programmer Manual

1. Control Command List

MODEL : TRP-100-II Receipt Printer User s Manual

KM216H KPM216H WARNING! MOVING PARTS PUSH HERE TO CLOSE

COMMAND REFERENCE COMMAND REFERENCE PLUS II


Command Manual Metapace T-2. Thermal Printer Rev. 1.00

MODEL : PR-T25 Receipt Printer User s Manual

Control Command list (ESC/POS)

ODP 200. Thermal Receipt Printer Technical Manual

MODEL : SLK-TS400EB. Receipt Printer User s Manual. TS400EB Rev. B 07/16. All specifications are subject to change without notice

MODEL : TRP100-III Receipt Printer User s Manual

DIR-E58III Mobile Print

[Notes] Provides important information on setting and using the printer command, if necessary.

SRP-275III Command Manual Rev. 1.00

TRP-100 Receipt Printer User s Manual

MODEL : LK-TL200 Receipt Printer User s Manual

MODEL : AP-8220 U Receipt Printer User s Manual

MODEL : SLK-T12EB Receipt Printer User s Manual

STP-103II Thermal Printer Command Manual

WTP-100. Thermal Receipt printer Technical manual. SEWOO TECH CO., LTD.

DS-800. ::: Receipt Printer User s manual :::

MODEL : SLK-TL100 Receipt Printer User s Manual

SRP-330 Command Manual Rev. 1.01

FEC-80T Receipt Printer User s Manual

MODEL : SLK-TE20X Series Receipt Printer User s Manual

SRP-F310/312 Command Manual Rev. 1.00

MODEL : LK-T200 Receipt Printer User s Manual

Mobile POS Thermal printer

Mobile Printer. Command Manual Ver Models: SM series

Command Emulator ESC/POS Mode Command Specifications

POS Thermal Receipt Printer A11 Standard/Prime

MODEL : LK-T210 Receipt Printer User s Manual

SRP-QE300/302 Command Manual Rev

Command Manual.

Command Manual SPP-R200. Mobile Printer Rev

VKP80 VKP80II VKP80II-EE STATUS LINE FEED. RS232 ETHERNET USB Vin FORM FEED

MODEL 814M DIRECT THERMAL PRINTER PROGRAMMING MANUAL

628/638_ Specification

SPP-R300 Command Manual Rev. 1.01

Command Manual SPP-R200. Mobile Printer Rev

SRP RECEIPT PRINTER. Operator s Manual. All specifications are subjected to change without notice

SRP-275II Impact Printer Command Manual

TSP552 TSP552II TSP2000

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

KPM202 KPM203 KPM302 KPM303 TK202 TK203 TK302 TK303

SPRT. Portable Micro Printer

XR-200 MINI DOT IMPACT PRINTER PRODUCT SPECIFICATION DATE : MAY 3, 2004 MANUAL REVISION 2.0

Command Reference MOBILE LINE THERMAL PRINTER MODEL CMP-10. Rev Revised on Dec 13, 2006

SPP-R210 Command Manual Rev. 1.00

COMMANDS MANUAL TG2460H TG2480H TL60 TL80

REVISION RECORDS REV. DATE DESCRIPTION DRAWN CHECKED APPROVED

Reliance-ESC/POS Documentation

MODEL WSP-i350. (3inch Industrial Printer)

Thermal Bluetooth Printer

MOBILE THERMAL PRINTER

SPRT SP-POS88III Line Thermal Printer

MPP6800 series - PANEL MOUNT PRINTERS. Options

MTP-1500 Modular Thermal Printer. User Manual

Thermal printer for information kiosks and ATMs KPM 216 H. 210/216mm (8.5 ) User Manual. KPM216H

One station Impact Printer. Model: WP-300 Version : 1.03

PRINTER READY 28/04/08 11:03:50 TK300II KPM300 KUBE II KUBE-L

24V DRIVEN, RECEIPT PRINTER MINI UNIT 2 HIGH SPEED THERMAL PRINTER UNIT PRELIMINARY. Height 110 mm, width 81/86 mm, depth 150 mm

Dot Matrix Printer. SP2000 Series. Programmer s Manual

INTERFACE BOARDS FOR FTP-628DCL/ DSL45X SERIES

PRINTER PRESENTER UNIT Command Reference. Model: PPU-700/700II. Revision: /03/26

Addmaster Corporation

Command Reference CONTROL BOARD FOR MLT-288/MLT-289 CONTROL BOARD FOR MLT-388/MLT-389 MODEL BD2-2880/2890 MODEL BD2-3880/3890

Customer Pole Display. Model: WD-304 Version: 1.12

Command Reference LINE THERMAL PRINTER MODEL CT-S2000

24V DRIVE, HIGH SPEED LINE THERMAL PRINTER 4 MECHANISM, WITH OR WITHOUT CUTTER

The ICP 300 is an ultra-compact, lightweight portable thermal printer with an easy-load paper feature.

battery drive, 4" high speed thermal printer

ADDMASTER. Addmaster Corporation. IJ-3080 Journal/Validation Printer. Specification. IJ-3080 Specification

Advanced Printing Systems CP 205-MRS

24V drive, FTP-609 series

OM9500-II. Thermal Receipt printer Technical Manual. Revision: January 8, 2018

Dot Matrix Printer. SP300 Series. Programmer s Manual

User s Manual. PDF created with pdffactory Pro trial version

ESC/POS Printer EP-60 PROGRAMMER'S MANUAL Detailed Description of the Commands

Thermal printer for information kiosks and ATMs VKP80. User Manual. VKP80

CT-S300 Customization software

TM200 USER S MANUAL USER S MANUAL. for THERMAL RECEIPT PRINTER

COMBINATION PRINTER SCP700 SERIES

MP200 DOT MATRIX IMPACT PRINTER USER MANUAL

Impressora não fiscal Bematech MP-4200 TH

User Manual SRP-150 Thermal Printer Rev. 1.05

Transcription:

MANUAL ESCRIBA 80

CARACTERÍSTICAS Mecanismo de Impressão Térmica Alimentação 24V Comunicação USB e Serial (RS232) Duas posições para a bobina de papel Botão de tracionamento do papel Driver para Windows e Linux SDK para Android Diâmetro máximo da bobina de papel de 150mm Leds de sinalização de alimentação e erro 576 Pontos por linha 8 pontos por milímetro de resolução Velocidade de impressão de até 60mm/s Largura do Papel: 80mm Largura de impressão: 72mm Espessura do papel: 60~100μm Mais de 50km de impressão Guilhotina: 500 mil cortes Detecção de posição da guilhotina e fim do papel por foto interruptor

LED s Indicativos Instruções básicas de uso Botão de tracionamento do papel Compatível com bobinas de 80x150mm Furo tipo pingo Facilita a instalação Manopla para abertura da impressora

Comunicação via USB tipo B Alimentação via conector Jack P4 Bobina montada por cima, economiza espaço vertical Comunicação serial RS232 via conector DB9 Bobina de papel na posição frontal, economiza espaço na horizontal

MECHANICAL DIMENSIONS Vista frontal

Vista lateral

PT723C24URMB Control Board Specifications

CONTENTS 1. Operation Precautions... 4 2. Dimension Chart... 5 3. Pin Assignments... 6 3.1 Power and RS232 Connector Pin Assignment... 6 3.2 Key and Indicator Interface Pin Assignment... 6 3.3 PT723C24URMB Mechanism/Cutter FPC PIN Assignment... 7 3.4 USB Pin Assignment... 8 4. Electrical Characteristics... 9 5. ESC/POS PRINTING COMMAND SET... 10 5.1 Command Detail... 10 Print Commands... 10 Line Spacing Commands... 13 Character Commands... 14 Print Position Commands... 24 Bit-Image Commands... 29 Status Commands... 33 Bar Code Commands... 37 Mechanism Control Commands... 43 Miscellaneous Function Commands... 45

1. Operation Precautions 1.1 When you install control board, please pay attention to static electricity control, do not touch parts and circuits, and take the edge of board by hand. 1.2 While plug and pull cable, please keep connecting finger of cable and socket are in a parallel position. 1.3 While plug and pull cable, please ensure the power is off. 1.4 Please notice that no foreign matters close to PCB, in order to avoid short circuit. Rev.1.2 4

2. Dimension Chart [Unit:mm] Rev.1.2 5

3. Pin Assignments 3.1 Power and RS232 Connector Pin Assignment J1: PH9/2.0MM/180/DIP Pin No. Signal Name Function 1 +24V +24V 2 +24V +24V 3 GND GND 4 GND GND 5 /UART2_RTS RS232---Request to send 6 +3.3V +3.3V 7 /UART2_TXD RS232---Transmit data 8 GND GND 9 /UART2_RXD RS232---Receive data 3.2 Key and Indicator Interface Pin Assignment J3: PH05/180/DIP Pin No. Signal Name Function 1 KEY-FEED Paper feed key 2 LED-POWER LED power indicator 3 GND GND 4 LED-ERROR LED error indicator 5 KEY-RESET Reset key Rev.1.2 6

3.3 PT723C24URMB Mechanism/Cutter FPC PIN Assignment 1) For thermal head, motor and sensor Connector on control circuit J5: FPC / 30PIN / 1.0MM / DR Aligh / 180 / SC / DIP / DrawerLock Pin Signal Pin Function Signal Name No. Name No. Cathode for photo 1 PHK 16 GND interrupter Function Ground power supply for thermal head 2 VSEN Paper sensor power 17 THERMISTOR Thermally sensitive resistor input terminal 3 PHE Emitter for photo interrupter 18 4 VH Head drive power 19 STROBE1 STROBE2 Thermal head energizing control signal Thermal head energizing control signal 5 VH Head drive power 20 Data latch LATCH 6 VH Head drive power 21 CLK Asynchronous clock for communication 7 DI Data in 22 VH Head drive power 8 9 STROBE 3 STROBE4 Thermal head energizing control signal Thermal head energizing control signal 23 VH Head drive power 24 VH Head drive power 10 VDD Logic power 25 SW1 Platen release switch 11 GND 12 GND 13 GND 14 GND 15 GND Ground power supply for thermal head Ground power supply for thermal head Ground power supply for thermal head Ground power supply for thermal head Ground power supply for thermal head 26 SW2 Platen release switch 27 A 28 A 29 B 30 B Stepping motor excitation signal Stepping motor excitation signal Stepping motor excitation signal Stepping motor excitation signal Rev.1.2 7

2) For cutter connector on control circuit J6: FPC / 8PIN / 1.0MM / DR Aligh / 180 / SC / DIP / DrawerLock Pin No. Signal Name Function 1 VSEN Paper sensor power 2 PHE Emitter for photo interrupter 3 PHK Cathode for photo interrupter 4 A Stepping motor excitation signal 5 Stepping motor excitation signal A 6 B Stepping motor excitation signal 7 Stepping motor excitation signal B 8 NC No connection 3.4 USB Pin Assignment Pin No. Signal Name 1 VBUS 2 D- 3 D+ 4 GND Rev.1.2 8

4. Electrical Characteristics 1) Supply voltage: + 24V 2) Current consumption (at 24V, maximum simultaneously activated dot is 96, 25 ( 77 ) PT723C24URMB ( For 79.5 mm { 3.13 } paper-width model) Mean : Approximately 1.6A Peak : Approximately 2.3A Standby :Approximately 0.03A Rev.1.2 9

5. ESC/POS PRINTING COMMAND SET 5.1 Command Detail Print Commands The TECHNICAL MANUAL supports the following commands for printing characters and advancing paper. When executing printing with the standard mode selected, the printer executes paper feed. When the page mode is selected, except for FF and ESC FF, only the data development position is moved and actual printing and paper feeding are not executed. Command LF ESC J ESC d Name Print and line feed Print and feed paper Print and feed n lines LF Print and line feed [Format] ASCII LF Hex 0A Decimal 10 LF prints the data in the print buffer and feeds one line. The amount of paper fed per line is based on the value set using the line spacing command. The default setting is 1/6 inch. Print Sample PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB";CHR$(&HA); AAAAA BBBBB Rev.1.2 10

ESC J n Print and feed paper [Format] ASCII ESC J n [Range] 0 n 255 Hex 1B 4A n Decimal 27 74 n ESC J n prints the data in the print buffer and feeds the paper n(vertical or horizontal motion unit). This command is used to temporarily feed a specific length without changing the line spacing set by other commands. The maximum paper feed amount is 40 inches. When standard mode is selected, the vertical motion unit set by GS P is used. When page mode is selected, the vertical or horizontal motion unit set by GS P is used for the print direction set by ESC T. Print Sample PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&H1B);"J";CHR$(100); PRINT #1, "CCCCC"; CHR$(&HA); PRINT #1, "DDDDD"; CHR$(&HA); AAAAA BBBBB CCCCC DDDDD ESC J used to print one line and advance the paper by 100/180 inch ESC d n Print and feed n lines [Format] ASCII ESC d n Hex 1B 64 n Decimal 27 100 n [Range] 0 n 255 Rev.1.2 11

ESC d n prints the data in the print buffer and feeds n lines. The amount of paper fed per line is based on the value set using the line spacing command. The maximum paper feed amount is 40 inches. The default setting of the paper feed amount is 1/6 inch. Print Sample PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB";CHR$(&H1B);"d";CHR$(6); PRINT #1, "CCCCC"; CHR$(&HA); AAAAA BBBBB ESC d used to print one line and advance the paper by six lines CCCCC Rev.1.2 12

Line Spacing Commands The TECHNICAL MANUAL supports the following commands for setting line spacing. These commands only set the line spacing; they do not actually advance the paper. The line spacing can be set independently in standard mode and in page mode. The line spacing set using these commands affects the results of LF and ESC d and paper feeding by using the FEED button. Command ESC 2 ESC 3 Name Select default line spacing Set line spacing ESC 2 Select default line spacing [Format] ASCII ESC 2 Hex 1B 32 Decimal 27 50 ESC 3 n Set line spacing [Format] ASCII ESC 3 n [Range] 0 n 255 Hex 1B 33 n Decimal 27 51 n ESC 2 sets the line spacing to 1/6 inch. This is equivalent to 30 dots. ESC 3 n sets the line spacing to n (vertical or horizontal motion unit). The default setting of the paper feed amount is 1/6 inch (n=60). The maximum line spacing amount is 40 inches. When standard mode is selected, the vertical motion unit set by GS P is used. When page mode is selected, the vertical or horizontal motion unit set by GS P is used for the print direction set by ESC T. The line spacing can be set independently in standard mode and in page mode. PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); FOR n=25 TO 50 STEP 5 PRINT #1, CHR$(&H1B);"3";CHR$(n); NEXT n PRINT #1, CHR$(&H1B);"2"; Set the default PRINT #1, "BBBBB";CHR$(&HA); PRINT #1, "CCCCC"; CHR$(&HA); Set line spacing Print Sample AAAAA AAAAA 25/180-inch line spacing AAAAA AAAAA AAAAA AAAAA BBBBB CCCCC 30/180-inch line spacing 35/180-inch line spacing 40/180-inch line spacing 45/180-inch line spacing 50/180-inch line spacing 1/6-inch line spacing Rev.1.2 13

Character Commands The TECHNICAL MANUAL supports the following commands for setting character font and size: Command ESC SP ESC % ESC & ESC? ESC! ESC ESC E Name Set right-side character spacing Select/cancel user-defined character set Define user-defined characters Cancel user-defined characters Select print mode(s) Turn underline mode on/off Turn emphasized mode on/off ESC G ESC { ESC V GS! GS B GS b Turn double-strike mode on/off Turn upside-down printing mode on/off Turn 90 clockwise rotation mode on/off Select character size Turn white/black reverse printing mode on/off Turn smoothing mode on/off ESC SP n Set right-side character spacing [Format] ASCII ESC SP n [Range] 0 n 255 Hex 1B 20 n Decimal 27 32 n ESC SP n sets the right-side character spacing to n (horizontal or vertical motion unit). It is used to change the spacing between characters. The default setting is n=0. When standard mode is selected, the horizontal motion unit set by GS P is used. When page mode is selected, the vertical or horizontal motion unit set by GS P is used for the print direction set by ESC T. This command is effective for all characters (except for HRI characters). Rev.1.2 14

The right-side character spacing can be set independently in standard mode and in page mode. Print Sample PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"";CHR$(0); Characterspacingsetto0 AAAAA 0-inchright-sidecharacterspacing PRINT #1, "AAAAA"; CHR$(&HA); BBB BB 6/180-inchright-sidecharacterspacing PRINT #1, CHR$(&H1B);"";CHR$(6); Characterspacingsetto6 C C C C C 12/180-inchright-sidecharacterspacing PRINT #1, "BBBBB";CHR$(&HA); PRINT #1, CHR$(&H1B);"";CHR$(12); Characterspacingsetto12 PRINT #1, "CCCCC"; CHR$(&HA); ESC % n Select/cancel user-defined character set [Format] ASCII ESC % n Hex 1B 25 n Decimal 27 37 n [Range] 0 n 255 ESC & y c1 c2 [x1 d1... d(y x1)]... [xk d1... d(y xk)] Define user-defined characters [Format] ASCII ESC & y c1 c2 [x1 d1... d(y x1)]... [xk d1... d(y xk)] Hex 1B 26 y c1 c2 [x1 d1... d(y x1)]... [xk d1... d(y xk)] Decimal 27 38 y c1 c2 [x1 d1... d(y x1)]... [xk d1... d(y xk)] [Range] y = 3 32 c1 c2 126 0 x 12 (Font A (12 24)) 0 x 9 (Font B (9 24)) 0 d1... d(y xk) 255 k = c2-c1+1 Rev.1.2 15

ESC? n Cancel user-defined characters [Format] ASCII ESC? n [Range] Hex 1B 3F n Decimal 27 63 n 32 n 126 ESC % n selects or cancels the user-defined character set. When the LSB (least significant bit) of n is 1, the user-defined character set is selected. When it is 0, the internal character set is selected; this is the default setting. Rev.1.2 16

ESC & y c1 c2 [x1 d1... d(y x1)]... [xk d1... d(y xk)] defines user-defined characters from character code c1 to c2. y and x are the configuration of a user-defined character. y specifies the number of bytes in the vertical direction. x specifies the number of dots in the horizontal direction. Character codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) can be defined by c1 and c2. Data (d) specifies a bit printed to 1 and not printed to 0. As the default, user-defined characters are not defined and the internal character set is printed. Once the user-defined characters have been defined, they are available until ESC?, ESC @, or GS is executed; the user-defined characters are redefined; the power is turned off; or the printer is reset. When this command is executed, the downloaded bit image is canceled. ESC? n cancels the user-defined characters defined for the character code n. After the userdefined characters are canceled, the internal character set is printed. (continued) y=3 PRINT #1, CHR$(&H1B);"&";CHR$(y);"AC"; x=9: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i x=11: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i x=12: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i PRINT #1, CHR$(&H1B);"%";CHR$(0); PRINT #1, "A B C D E"; CHR$(&HA); PRINT #1, CHR$(&H1B);"%";CHR$(1); PRINT #1, "A B C D E"; CHR$(&HA): Defines the userdefined characters as Selecttheinternalcharacterset Select the user-defined character set "A", "B", and "C" DATA &H00,&H30,&H00,&H00,&HF0,&H00,&H03,&HF0 DATA &H00,&H0F,&H3F,&HF8,&H3C,&H3F,&HF8,&HF0 DATA &H00,&H00,&HF0,&H00,&H00,&H3C,&H3F,&HF8 DATA &H0F,&H3F,&HF8,&H03,&HF0,&H00,&H00,&HF0 DATA &H00,&H00,&H30,&H00 Print Sample A BC D A Charactersfrominternalcharacterset Charactersfromuser-definedcharacterset Charactersfromuser-definedcharacterset (cancelonecharacter) PRINT #1, CHR$(&H1B);"?";"A"; PRINT #1, "A B C D E"; CHR$(&HA); Cancel theuser-definedcharacter DATA &H00,&H20,&H00,&H00,&HF8,&H00,&H03,&HFE DATA &H00,&H0F,&HFF,&H80,&H3F,&HFF,&HE0,&H0F DATA &HFF,&H80,&H03,&HFE,&H00,&H00,&Hf8,&H00 DATA &H00,&H20,&H00 DATA &H00,&H20,&H00,&H00,$HF8,&H00,&H03,&H8E DATA &H00,&H0E,&H03,&H80,&H38,&H00,&HE0,&HE0 DATA &H00,&H38,&H38,&H00,&HE0,&H0E,&H03,&H80 DATA &H03,&H8E,&H00,&H00,&HF8,&H00,&H00,&H20 DATA &H00 Rev.1.2 17

ESC!n Select mode(s) [Format] ASCII ESC! n [Range] Hex 1B 21 n Decimal 27 33 n 0 n 255 ESC! n selects print modes using n as follows. The default setting is n=0. This command is effective for all characters (except for HRI characters). When underline mode is turned on, 90 clockwiserotated characters and white/black reverse characters cannot be underlined. Bit Off/On Hex Decimal Function Off 00 0 Character font A (12 x 24) selected. 0 On 01 1 Character font B (9 x 24) selected. 1, 2 Undefined. Off 00 0 Emphasized mode not selected. 3 On 08 8 Emphasized mode selected. Off 00 0 Double-height mode not selected. 4 On 10 16 Double-height mode selected. Off 00 0 Double-width mode selected. 5 On 20 32 Double-width mode not selected. 6 Undefined. Off 00 0 Underline mode not selected. 7 On 80 128 Underline mode selected. PRINT #1, CHR$(&H1B);"!";CHR$(0);"AA"; PRINT #1, CHR$(&H1B);"!";CHR$(8);"BB"; PRINT #1, CHR$(&H1B);"!";CHR$(16); "CC"; PRINT #1, CHR$(&H1B);"!";CHR$(24); "DD"; PRINT #1, CHR$(&H1B);"!";CHR$(32); "EE"; PRINT #1, CHR$(&H1B);"!";CHR$(40); "FF"; PRINT #1, CHR$(&H1B);"!";CHR$(48); "GG"; PRINT #1, CHR$(&H1B);"!";CHR$(56); "HH"; CHR$(&HA); CHR$(&H1B);"!";CHR$(129); "AA"; #1, CHR$(&H1B);"!";CHR$(137); "BB"; PRINT #1, CHR$(&H1B);"!";CHR$(145); "CC"; PRINT #1, CHR$(&H1B);"!";CHR$(153); "DD"; PRINT #1, CHR$(&H1B);"!";CHR$(161); "EE"; PRINT #1, CHR$(&H1B);"!";CHR$(169);"FF"; PRINT #1, CHR$(&H1B);"!";CHR$(177);"GG"; PRINT #1, CHR$(&H1B);"!";CHR$(185);"HH"; CHR$(&HA); Print Sample AA: Normal PRINT #1, BB: Emphasized PRINT CC: Double-height DD: Emphasized + Double-height EE: Double-width FF: Emphasized + Double-width GG: Double-height + Double-width HH: Emphasized + Double-height + Double-width Font A (12x24) Font B (9x24) Rev.1.2 18

ESC n Turn underline modeon/off [Format ASCII ESC n [Range] 0 n 2 Hex 1B 2D n Decimal 27 45 n 48 n 50 ESC n turns underline mode on or off. When n=1 or 49, underline mode (one-dot width) is turned on; when n=2 or 50, underline mode (two-dot width) is turned on; and when n=0 or 48, underline mode is turned off. This command is effective for all characters (except for HRI characters). When underline mode is on, 90 clockwise rotated characters and white/black reverse characters cannot be underlined. The default setting is n=0. Print Sample PRINT #1, CHR$(&H1B);"-";CHR$(1); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"-";CHR$(0); PRINT #1, "BBBBB"; CHR$(&HA); Select AAAAA Underline (one-dot width) turned on Cancel BBBBB Underline turned off ESC E n Turn emphasized mode on/off [Format] ASCII ESC E n [Range] 0 n 255 Hex 1B 45 n Decimal 27 69 n ESC E n turns emphasized mode on or off. When the LSB (least significant bit) of n is 1, emphasized mode is turned on; when it is 0, emphasized mode is turned off. The default setting is n=0. Emphasized and double-strike printing appear the same. This command is effective for all characters (except for HRI characters). Print Sample PRINT #1, CHR$(&H1B);"E";CHR$(1); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"E";CHR$(0); PRINT #1, "BBBBB";CHR$(&HA); Select AAAAA Emphasized Cancel BBBBB Normal Rev.1.2 19

ESC G n Turn double-strike mode on/off [Format] ASCII ESC G n [Range] 0 n 255 Hex 1B 47 n Decimal 27 71 n PT723C24URMB Control board specifications ESC G n turns double-strike mode on or off. When the LSB (least significant bit) of n is 1, doublestrike mode is turned on; when it is 0, double-strike mode is turned off. The default setting is n=0. Double-strike and emphasized printing appear the same. This command is effective for all characters (except for HRI characters). Print Sample PRINT #1, CHR$(&H1B);"G";CHR$(1); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"G";CHR$(0); PRINT #1, "BBBBB"; CHR$(&HA); ESC { n Select Cancel AAAAA Double-strike BBBBB Normal Turn upside-down printing mode on/off [Format] ASCII ESC { n [Range] 0 n 5 Hex 1B 7B n Decimal 27 123 n ESC { n turns upside-down printing mode on or off. When the LSB (least significant bit) of n is 1, upside-down printing mode is turned on; when it is 0, upside-down printing mode is turned off. The default setting is n=0. When upside-down mode is turned on, the printer prints 180 -rotated characters from right to left. The line printing order is not reversed; therefore, be careful of the order of the data transmitted. In standard mode, this command is enabled only when processed at the beginning of a line. In page mode, an internal flag is activated and this command is enabled when the printer returns to standard mode. Print Sample PRINT #1, CHR$(&H1B);"{";CHR$(0); GOSUB printing PRINT #1, CHR$(&H1B);"{";CHR$(1); GOSUB printing END printing: PRINT #1, "ABCDE"; CHR$(&HA); PRINT #1, "BCDEF"; CHR$(&HA); RETURN Cancel Select Normal printing ABCDE BCDEF Upside-down printing Rev.1.2 20

ESC V n Turn 90 clockwise rotation mode on/off [Format] ASCII ESC V n Hex 1B 56 n Decimal 27 86 n PT723C24URMB Control board specifications [Range] n 0, 1, 48, 49 ESC V n turns 90 clockwise rotation mode on or off. When n=1 or 49, 90 clockwise rotation mode is turned on; when n=0 or 48, this mode is turned off. The default setting is n=0. In standard mode, this command is enabled only when processed at the beginning of a line. In page mode, an internal flag is activated and this command is enabled when the printer returns to standard mode. This command is effective for all characters (except for HRI characters). GS! n Select character size [Format] ASCII GS! n Hex 1D 21 n Decimal 29 33 n [Range] 0 n 255 (1 vertical number of times normal font size 8, 1 horizontal number of times normal font size 8) GS! n selects the character height (vertical number of times normal font size) using bits 0 to 3 and selects the character width (horizontal number of times normal font size) using bits 4 to 7, as follows. The default setting is n=0. This command is effective for all characters (except for HRI characters). If n is outside of the defined range, this command is ignored. Rev.1.2 21

. Character Width Selection Hex Decimal Width 00 0 1 (normal) 10 16 2 (double width) 20 32 3 30 48 4 40 64 5 50 80 6 60 96 7 70 112 8 Character Height Selection Hex Decimal Height 00 0 1 (normal) 01 1 2 (double height) 02 2 3 03 3 4 04 4 5 05 5 6 06 6 7 07 7 8 Print Sample PRINT #1, CHR$(&H1D);"!";CHR$(68); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1D);"!";CHR$(0); PRINT #1, "AAAAA"; CHR$(&HA); BBBBB AAAAA Normal Select five-times normal font height and fivetimes normal font width GS B n Turn white/black reverse printing mode on/off [Format] ASCII GS B n [Range] 0 n 255 Hex 1D 42 n Decimal 29 66 n GS B n turns white/black reverse printing mode on or off. When the LSB (least significant bit) of n is 1, white/black reverse printing mode is turned on; when it is 0, this mode is turned off. The default setting is n=0. In white/black reverse printing mode, characters are printed in white on a black background. This command is effective for all characters (except for HRI characters). Print Sample PRINT #1, CHR$(&H1D);"B";CHR$(1); Select PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1D);"B";CHR$(0); Cancel PRINT #1, "BBBBB";CHR$(&HA); AAAAA BBBBB White/black reverse printing Normal printing Rev.1.2 22

PT723C24URMB Control board specification GS b n Turn smoothing mode on/off [Format] ASCII GS b n Hex 1D 62 n Decimal 29 98 n [Range] 0 n 255 GS b n turns smoothing mode on or off. When the LSB (least significant bit) of n is 1, smoothing mode is turned on; when it is 0, smoothing mode is turned off. The default setting is n=0. Smoothing is available for quadruple-size or larger characters. CHR$(&HA); PRINT #1, CHR$(&H1D);"!";CHR$(68); Select font size PRINT #1, CHR$(&H1D);"b";CHR$(1); Select smoothing PRINT #1, "AAAAA"; AAAAA Print Sample Rev.1.2 23

Print Position Commands The TECHNICAL MANUAL supports the following commands for setting the print position: Command ESC $ ESC \ ESC a HT ESC D GS L GS W Name Set absolute print position Set relative print position Select justification Horizontal tab Set horizontal tab positions Set left margin Set printing area width ESC $ nl nh Set absolute print position [Format] ASCII ESC $ nl nh [Range] 0 nl 255 0 nh 255 Hex 1B 24 nl nh Decimal 27 36 nl nh Rev.1.2 24

ESC \ nl nh Set relative print position [Format} ASCII ESC \ nl nh [Range] 0 nl 255 0 nh 255 Hex 1B 5C nl nh Decimal 27 92 nl nh ESC $ nl nh sets the print starting position to (nl + nh 256) (horizontal or vertical motion unit) from the beginning of the line. When a left margin is set in standard mode, the position of the left margin is the beginning of the line. ESC \ nl nh moves the print starting position to (nl + nh 256) (horizontal or vertical motion unit) from the current position. Use the complement of N for setting N pitch movement to the left: -N pitch = 65536 N, where (nl + nh 256) = 65536 - N. When standard mode is selected, the horizontal motion unit set by GS P is used. When page mode is selected, the horizontal or vertical motion unit set by GS P is used for the print direction set by ESC T. If the excessive printing area is selected, it is ignored. Print Sample PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, "ABCD"; PRINT #1, CHR$(&H1B);"$";CHR$(90);CHR$(0); PRINT #1, "EFGH"; CHR$(&HA); PRINT #1, "ABCD"; PRINT #1, CHR$(&H1B);"\";CHR$(90);CHR$(0); PRINT #1, "EFGH"; CHR$(&HA); 90/180 inch ABCD EFGH ABCD EFGH 90/180 inch ESC a n Select justification [Format] ASCII ESC a n Hex 1B 61 n Decimal 27 97 n [Range] 0 n 2 48 n 50 Rev.1.2 25

ESC a n aligns all the data in one line to a specified position. Left justification is selected when n=0 or 48, centering is selected when n=1 or 49, and right justification is selected when n=2 or 50. The default setting is left justification (n=0). In standard mode, this command is enabled only when processed at the beginning of a line. In page mode, an internal flag is activated and this command is enabled when the printer returns to standard mode. Print Sample FOR n=0 TO 2 PRINT #1, CHR$(&H1B);"a";CHR$(n); PRINT #1, "ABC"; CHR$(&HA); PRINT #1, "ABCD"; CHR$(&HA); PRINT #1, "ABCDE";CHR$(&HA); NEXT n ABC ABCD ESC a 0 ABCDE ABC ABCD ESC a 1 ABCDE ESC a 2 ABC ABCD ABCDE HT Horizontal tab [Format] ASCII HT Hex 09 Decimal 9 ESC D n1... nk NUL Set horizontal tab positions [Format] ASCII ESC D n1... NUL [Range] 1 n 255 Hex 1B 44 n1... 00 Decimal 27 68 n1... 0 0 k 32 HT moves the print start position to the next horizontal tab. This command is ignored unless the next horizontal tab position has been set. ESC D n1... nk NUL sets a horizontal tab position to n columns from the beginning of a line, with k indicating the total number of horizontal tab positions to be set. When a left margin is set in standard mode, the position of the left margin is the beginning of the line. A maximum of 32 tab positions can be set. This command cancels any previous horizontal tab settings. The default tab positions are every eight characters for the font A (12 24). Rev.1.2 26

Print Sample PRINT #1, "0123456789012345678901234567890123456"; PRINT #1, CHR$(&HA); GOSUB ht PRINT #1, CHR$(&H1B);"D";CHR$(10);CHR$(20); PRINT #1, CHR$(30);CHR$(0); GOSUB ht END 0123456789012345678901234567890123456 H H H H H H HH Tab Tab Tab position position position 10 20 30 Default 8 16 24 32 ht: FOR i=1 TO 4 PRINT #1, CHR$(&H9);"H"; NEXT i PRINT #1, CHR$(&HA); RETURN GS L nl nh Set left margin [Format] ASCII GS L nl nh Hex 1D 4C nl nh Decimal 29 76 nl nh [Range] 0 nl 255 GS W nl nh 0 nh 255 Set printing area width [Format] ASCII GS W nl nh [Range] 0 nl 255 0 nh 255 Hex 1D 57 nl nh Decimal 29 87 nl nh GS L nl nh sets the left margin to (nl + nh 256) (horizontal motion unit) from the beginning of a line. The default setting is nl=0, nh=0. In standard mode, this command is enabled only when processed at the beginning of a line. In page mode, an internal flag is activated and this command is enabled when the printer returns to standard mode. GS W nl nh sets the printing area width to (nl + nh 256) (horizontal motion unit). The default setting is nl=0, nh=2. In standard mode, this command is enabled only when processed at the beginning of a line. In page mode, an internal flag is activated and this command is enabled when the printer returns to standard mode. Rev.1.2 27

If the above commands set the printing area width to less than the width of one character, the printing area width is extended to accommodate one character for the line. The horizontal motion unit uses the horizontal value set by the GS P command. The default setting of the horizontal motion unit is 1/180 inch. Print Sample PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, "01234567890123456789"; CHR$(&HA); PRINT #1, CHR$(&H1D);"L";CHR$(60);CHR$(0); PRINT #1, CHR$(&H1D);"W";CHR$(120);CHR$(0); PRINT #1, "01234567890123456789"; CHR$(&HA); 01234567890123456789 0123456789 0123456789 Left Printing area margin width Rev.1.2 28

Bit-Image Commands Command ESC GS GS / Name Select bit-image mode Define downloaded bit image Print downloaded bit image ESC m nl nh d1... dk Select bit-image mode [Format] ASCII ESC m nl nh d1... [Range] m = 0, 1, 32, 0 nl 255 0 nh 3 Hex 1B 2A m nl nh d1... Decimal 27 42 m nl nh d1... 0 d 255 Rev.1.2 29

ESC m nl nh d1... dk selects a bit-image mode using m for the number of dots specified by (nl + nh 256). Set a bit to 1 to print a dot, or set a bit to 0 to not print a dot. d indicates the bit image data. The modes selectable by m are as follows: m Mode Vertical Direction Horizontal Direction Number of Bits Dot Density Dot Density Amount of for vertical data (DPI) (DPI) Data (k) 0 8-dot single-density 8 60 90 nl + nh x 256 1 8-dot double-density 8 60 180 nl + nh x 256 32 24-dot single-density 24 180 90 (nl +nh x 256) x 3 33 24-dot double-density 24 180 180 (nl + nh x 256) x 3 Print Sample m=0: GOSUB bitimage8 m=1: GOSUB bitimage8 END m=0 m=1 bitimage8: PRINT #1, CHR$(&H1B);"*";CHR$(m);CHR$(180);CHR$(0); FOR i=1 TO 180 : PRINT #1, CHR$(i); : NEXT i PRINT #1, CHR$(&HA); RETURN GS x y d1... d(x y 8) Define downloaded bit image [Format] ASCII GS x y d1... d(x y 8) Hex 1D 2A x y d1... d(x y 8) Decimal 29 42 x y d1... d(x y 8) [Range] 1 x 255 1 y 48 x y 1536 0 d 255 Rev.1.2 30

GS / m Print downloaded bit image [Format] ASCII GS / m [Range] 0 m 3 Hex 1D 2F m Decimal 29 47 m 48 m 51 GS x y d1... d(x y 8) defines a downloaded bit image using x 8 dots in the horizontal direction and y 8 dots in the vertical direction. Once a downloaded bit image has been defined, it is available until another definition is made; ESC & or ESC @ is executed; the printer is reset; or the power is turned off. When this command is executed, the user-defined characters are cleared. The default setting is no downloaded bit image defined. GS / m prints a downloaded bit image using the mode specified by m, as follows. In standard mode, this command is effective only when there is no data in the print buffer. This command is ignored if a downloaded bit image has not been defined. m Mode Vertical Dot Density (DPI) Horizontal Dot Density (DPI) 0, 48 Normal 180 180 1, 49 Double-width 180 90 2, 50 Double-height 90 180 3, 51 Quadruple 90 90 Rev.1.2 31

(continued) x=16:y=5 PRINT#1,CHR$(&H1D);"*";CHR$(x);CHR$(y);FORi=1TOx*y*8 READa$:d=VAL("&H"+a$)PRINT#1, CHR$(d); NEXTi END Define downloaded bit image PRINT#1,CHR$(&H1D);"/";CHR$(0);CHR$(&HA); Normal PRINT#1,CHR$(&H1D);"/";CHR$(1);CHR$(&HA); Doublewidth DATAFF,FF,FF,FF,FF,FF,FF,FF,FF,FF,C0,00,00,00,03,C0 DATA 00,00,00,03,CF,FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,FF DATA FF,FF,F3,CF,FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,C0,FC DATA 03,F3,CF,C0,FC,03,F3,CF,C0,FC,03,F3,CF,C0,FC,03 DATAF3,CF,C0,FC,03,F3,CF,C0,FC,03,F3,CF,C0,FC,03,F3 DATACF,C0,FC,03,F3,CF,C0,FC,03,F3,CF,C0,00,03,F3,C0 DATA 00,00,00,03,C0,FF,00,03,F3,C3,FF,C0,03,F3,C7,FF DATA E0,03,F3,C7,FF,F0,03,F3,CF,FF,F8,03,F3,CF,FF,FC DATA 03,F3,CF,E3,FE,03,F3,CF,C1,FF,03,F3,CF,C0,FF,83 DATAF3,CF,C0,7F,C7,F3,CF,C0,3F,FF,F3,CF,C0,1F,FF,F3 DATACF,C0,0F,FF,E3,CF,C0,07,FF,E3,CF,C0,03,FF,C3,C0 DATA 00,00,FF,03,C0,00,00,00,03,C0,3F,FF,FC,03,C0,FF DATA FF,FF,03,C3,FF,FF,FF,C3,C7,FF,FF,FF,E3,C7,FF,FF DATA FF,E3,CF,FF,FF,FF,F3,CF,F0,00,0F,F3,CF,C0,00,03 DATAF3,CF,C0,00,03,F3,CF,C0,00,03,F3,CF,C0,00,03,F3 DATA CF,C0,00,03,F3,CF,C0,00,03,F3,CF,C0,00,03,F3,CF DATA C0,00,03,F3,CF,C0,00,03,F3,C0,00,00,00,03,C0,00 DATA00,00,73,C0,00,00,03,C3,C0,00,00,1E,03,C0,00,00 DATA70,03,C0,00,03,C0,03,C0,00,1E,00,03,C0,00,78,00 DATA03,C0,03,C0,00,03,C0,0E,00,00,03,C0,78,00,00,03 DATAC3,C0,00,00,03,CE,00,00,00,03,C0,00,00,00,03,CF DATA FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,FF DATA FF,FF,F3,CF,FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,C0,0F DATA C0,03,CF,C0,0F,C0,03,CF,C0,0F,C0,03,CF,C0,0F,C0 DATA03,CF,C0,0F,C0,03,CF,E0,1F,C0,03,CF,FF,FF,C0,03 DATACF,FF,FF,CO,03,C7,FF,FF,80,03,C7,FF,FF,80,03,C1 DATA FF,FE,00,03,C0,3F,F0,00,03,C0,00,00,00,03,C0,0F DATA FF,F0,03,C0,FF,FF,FF,03,C3,FF,FF,FF,C3,C7,FF,FF DATA FF,E3,C7,FF,FF,FF,E3,CF,FF,FF,FF,F3,CF,F0,00,0F DATA F3,CF,C0,00,03,F3,CF,C0,00,03,F3,CF,C0,00,03,F3 DATA CF,C0,00,03,F3,CF,C0,00,03,F3,CF,C0,00,03,F3,CF DATA C0,00,03,F3,CF,F0,00,0F,F3,CF,FF,FF,FF,F3,C7,FF FF,FF,E3,C7,FF,FF,FF,E3,C3,FF,FF,FF,C3,C0,FF,FF DATA FF,03,C0,0F,FF,F0,03,C0,00,00,00,03,C0,FF,00,03 DATAF3,C3,FF,C0,03,F3,C7,FF,E0,03,F3,C7,FF,F0,03,F3 DATA CF,FF,F8,03,F3,CF,FF,FC,03,F3,CF,E3,FE,03,F3,CF DATA C1,FF,03,F3,CF,C0,FF,83,F3,CF,C0,7F,C7,F3,CF,C0 DATA3F,FF,F3,CF,C0,1F,FF,F3,CF,C0,0F,FF,E3,CF,C0,07 DATAFF,E3,CF,C0,03,FF,C3,C0,00,00,FF,C3,C0,00,00,00 DATA03,C0,00,00,00,03,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF DATA Rev.1.2 32

Status Commands The TECHNICAL MANUAL supports the following status transmission commands. These commands can be used to determine the status of the printer, paper sensors, and peripheral devices connected to the printer. Command GS r DLE EOT ESC v Name Transmit status Real-time status transmission Transmit paper sensor status GS r n Transmit status [Format] ASCII GS r n Hex 1D 72 n Decimal 29 114 n [Range] n= 1, 2, 49, 50 GS r n transmits 1 byte of status data specified by n as follows: paper sensor status when n=1 or 49 and drawer kick-out connector status when n=2 or 50. When the paper roll end sensor detects a paper-end, the printer goes off-line and does not execute this command. Therefore, bits 2 and 3 do not transmit paper-end status. PRINT #1, CHR$(&H1D);"r";CHR$(1); Transmits paper sensor status Paper sensor status (n=1, 49) Bit Off/On Hex Decimal Status Off 00 0 Paper roll near-end sensor: paper adequate. 0, 1 On 03 3 Paper roll near-end sensor: paper near end. Rev.1.2 33

Bit Off/On Hex Decimal Status Off 00 0 Paper roll end sensor: paper present. *2, 3 On (0C) (12) Paper roll end sensor: paper not present. 4 Off 00 0 Not used. Fixed to Off. 5, 6 Undefined. 7 Off 00 0 Not used. Fixed to Off. * For TECHNICAL MANUAL, when the cover is open, paper detection may be incorrect. Drawer kick-out connector status (n=2, 50). Bit Off/On Hex Decimal Status Off 00 0 Drawer kick-out connector pin 3 is LOW. 0 On 01 1 Drawer kick-out connector pin 3 is HIGH. 1-3 Undefined. 4 Off 00 0 Not used. Fixed to Off. 5, 6 Undefined. 7 Off 00 0 Not used. Fixed to Off. DLE EOT n Real-time status transmission [Format] ASCII DLE EOT n [Range] 1 n 4 Hex 10 04 n Decimal 16 4 n DLE EOT n transmits the specified status in real time. With a serial interface model, this command is executed even when the printer is off-line, the receive buffer is full, or an error occurs. With a parallel interface model, this command is not executed in the following status because the printer is busy and unable to receive data from the host computer. Receive buffer is full when DIP switch 2-1 is set to On. Printer is off-line, an error occurs, or receive buffer is full when DIP switch 2-1 is set to Off. Rev.1.2 34

n indicates the status function as follows: PT723C24URMB Control board specifications n Function 1 Transmit printer status 2 Transmit off-line status 3 Transmit error status 4 Transmit paper roll sensor status PRINT #1, CHR$(&H10);CHR$(&H4);CHR$(2); Transmits off-line status Printer status (n=1) Bit Off/On Hex Decimal Status 0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On. Off 00 0 Drawer kick-out connector pin 3 is LOW. 2 On 04 4 Drawer kick-out connector pin 3 is HIGH. Off 00 0 On-line. 3 On 08 8 Off-line. 4 On 10 16 Not used. Fixed to On. 5, 6 Undefined. 7 Off 00 0 Not used. Fixed to Off. Off-line status (n=2) Bit Off/On Hex Decimal Status 0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On. Off 00 0 Cover is closed. 2 On 04 4 Cover is open. Off 00 0 Paper is not being fed by the paper feed button. 3 On 08 8 Paper is being fed by the paper feed button. 4 On 10 16 Not used. Fixed to On. Off 00 0 No paper-end stop. 5 On 20 32 Printing stops due to paper-end. Off 00 0 No error. 6 On 40 64 Error occurred. 7 Off 00 0 Not used. Fixed to Off. Rev.1.2 35

Error status (n=3) Bit Off/On Hex Decimal Status 0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On. 2 Undefined. Off 00 0 No auto-cutter error. 3 On 08 8 Auto-cutter error occurred. 4 On 10 16 Not used. Fixed to On. Off 00 0 No unrecoverable error. 5 On 20 32 Unrecoverable error occurred. Off 00 0 No auto-recoverable error. *6 On 40 64 Auto-recoverable error occurred. 7 Off 00 0 Not used. Fixed to Off. * For TECHNICAL MANUAL, bit 6 is on when a head temperature error occurs and the cover is open during printing. Paper roll sensor status (n=4) Bit Off/On Hex Decimal Status 0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On. Off 00 0 Paper roll near-end sensor: paper adequate. 2, 3 On 0C 12 Paper roll near-end sensor: paper near end. 4 On 10 16 Not used. Fixed to On. Off 00 0 Paper roll end sensor: paper present. *5, 6 On 60 96 Paper roll end sensor: paper not present. 7 Off 00 0 Not used. Fixed to Off. * For TECHNICAL MANUAL, when the cover is open, paper detection may be incorrect. Rev.1.2 36

ESC v Transmit paper sensor status [Format] ASCII ESC v Hex 1B 76 Decimal 27 11 ESC v transmits the status of a paper sensor as 1 byte of data. GS r is preferred for checking the status because ESC v is not a recommended command. When the paper roll end sensor detects a paper-end, the printer goes off-line and does not execute this command. Therefore, bits 2 and 3 do not transmit paper-end status. The status to be transmitted is shown in the table below. This command is supported only by TECHNICAL MANUAL. PRINT #1, CHR$(&H1B);"v"; Paper sensor status Bit Off/On Hex Decimal Status Off 00 0 Paper roll near-end sensor: paper adequate. 0, 1 On 03 3 Paper roll near-end sensor: paper near end. Off 00 0 Paper roll end sensor: paper present. 2, 3 On (0C) (12) Paper roll end sensor: paper not present. 4 Off 00 0 Not used. Fixed to Off. 5, 6 Undefined. 7 Off 00 0 Not used. Fixed to Off. Bar Code Commands The TECHNICAL MANUAL supports the following bar code commands: Command GS h GS w GS k GS H GS f Name Set bar code height Set bar code width Print bar code Select printing position of Human Readable Interpretation (HRI) characters Select font for HRI characters Rev.1.2 37

GS h n Set bar code height [Format] ASCI GS h n [Range] 1 n 255 Hex 1D 68 n Decimal 29 104 n GS h n selects the height of a bar code. n specifies the number of dots in the vertical direction. One dot corresponds to 1/180 inch. The default setting is n=162. Print Sample PRINT #1, CHR$(&H1D);"h";CHR$(50); PRINT #1, CHR$(&H1D);"k";CHR$(2); Print bar PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1D);"h";CHR$(100); Set height to 100 PRINT #1, CHR$(&H1D);"k";CHR$(2); Set height to 50 code Height: 50 dots Height: 100 dots PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); Print bar code GS w n Set bar code width [Format] ASCII GS w n [Range] 2 n 6 Hex 1D 77 n Decimal 29 119 n GS w n selects the horizontal size of a bar code. n specifies the bar code width as shown below. The multilevel bar codes are UPC-A, UPC-E, JAN13 (EAN13), JAN8 (EAN8), CODE93, and CODE128. The binary level bar codes are CODE39, ITF, and CODABAR. The default setting is n=3. n Module Width (mm) for Binary Level Bar Code Multilevel Bar Code Thin Element Width Thick Element Width (mm) (mm) 2 0.282 0.282 0.706 3 0.423 0.423 1.129 4 0.564 0.564 1.411 5 0.706 0.706 1.834 6 0.847 0.847 2.258 Rev.1.2 38

Program Example PRINT #1, CHR$(&H1D);"w";CHR$(3); Set width size to 3 PRINT #1, CHR$(&H1D);"k";CHR$(2); Print bar code PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1D);"w";CHR$(4); Set width size to 4 PRINT #1, CHR$(&H1D);"k";CHR$(2); Print bar code PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1D);"w";CHR$(5); Set width size to 5 PRINT #1, CHR$(&H1D);"k";CHR$(2); Print bar code PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); Rev.1.2 39

➀ GS k m d1... dk NUL ➁ GS k m n d1... dn Print bar [Format code GS k m d1... NUL [Range] Hex 1D 6B m d1... 00 Decimal 29 107 m d1... 0 ➁ ASCII GS k m n d1... dn Hex 1D 6B m n d1... dn Decimal 29 107 m n d1... dn ➀ 0 m 6 (k and d depend on the bar code system used) ➁ 65 m 73 (n and d depend on the bar code system used) ➀ GS k m d1... dk NUL and ➁ GS k m n d1... dn select a bar code system and print the bar code. m specifies a bar code system as follows: m Bar Code System Number of Characters Remark 0 UPC-A 11 k 12 48 d 57 1 UPC-E 11 k 12 48 d 57 2 JAN13(EAN13) 12 k 13 48 d 57 ➀ 3 JAN8 (EAN8) 7 k 8 48 d 57 4 CODE39 1 k 48 d 57, 65 d 90, d = 32, 36, 37, 43, 45, 46, 47 5 ITF 1 k (even number) 48 d 57 6 CODABAR 1 k 48 d 57, 65 d 68, d = 36, 43, 45, 46, 47, 58 65 UPC-A 11 n 12 48 d 57 66 UPC-E 11 n 12 48 d 57 67 JAN13 (EAN13) 12 n 13 48 d 57 68 JAN8 (EAN8) 7 n 8 48 d 57 ➁ 69 CODE39 1 n 255 48 d 57, 65 d 90, d = 32, 36, 37, 43, 45, 46, 47 70 ITF 1 n 255 (even number) 48 d 57 71 CODABAR 1 n 255 48 d 57, 65 d 68, d = 36, 43, 45, 46, 47, 58 72 CODE93 1 n 255 0 d 127 73 CODE128 2 n 255 0 d 127 In GS k m d1... dk NUL, d indicates the character code to be printed and k indicates the number of characters to be printed. In GS k m n d1... dn, n indicates the number of the bar code data; the printer processes n bytes from the next character data as bar code data. d indicates the character code to be printed. If n is outside of the specified range, the printer stops command processing and processes the following data as normal data. If the bar code width exceeds the printing area, the printer does not print the bar code. In standard mode, these commands are enabled only when no data exists in the print buffer. Rev.1.2 40

PRINT #1, CHR$(&H1D);"k";CHR$(2); Print bar code PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1D);"k";CHR$(67);CHR$(12); PRINT #1, "496595707379"; Print bar code GS H n Select printing position of HRI characters [Format] ASCII GS H n [Range] 0 n 3 GS f n Hex 1D 48 n Decimal 29 72 n 48 n 51 Select font for HRI characters [Format] ASCII GS f n [Range] n 0, 1, 48, 49 Hex 1D 66 n Decimal 29 102 n GS H n selects the printing position for HRI characters when printing a bar code. n selects the printing position as follows: n Printing Position 0, 48 Not printed 1, 49 Above the bar code 2, 50 Below the bar code 3, 51 Both above and below the bar code The default setting is n=0. HRI characters are printed using the font specified by GS f. Rev.1.2 41

GS f n selects a font for the HRI characters used when printing a bar code. When n=0 or 48, the font A (12 24) is selected. When n=1 or 49, the font B (9 24) is selected. The default setting is n=0. HRI characters are printed at the position specified by GS H. PRINT #1, CHR$(&H1D);"h";CHR$(80); Set height to 80 dots PRINT #1, CHR$(&H1D);"f";CHR$(0); Select font FOR n=0 to 3 PRINT #1, CHR$(&H1D);"H";CHR$(n); Select print position PRINT #1, CHR$(&H1D);"k";CHR$(2); Print bar code PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); NEXT n PRINT #1, CHR$(&H1D);"f";CHR$(1); PRINT #1, CHR$(&H1D);"H";CHR$(2); PRINT #1, CHR$(&H1D);"k";CHR$(2); PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); Select font Select print position Print bar code Rev.1.2 42

Mechanism Control Commands The Technical Manual supports the following mechanism control commands. A full cut of GS V and ESC i are supported only by TECHNICAL MANUAL. Command GS V ESC i ESC j Name Select cut mode and cut paper Partial cut (one point left uncut) Full cut GS V m Select cut mode and cut paper [Format] ASCII GS V m Hex 1D 56 m Decimal 29 86 m [Range] m=0,48 cut the paper without leaving a point cut m=1,49 completely cuts the paper ESC i Partial cut (one point left uncut) [Format] ASCII ESC i Hex 1B 69 Decimal 27 105 ESC j Full cut(cuts the paper completely) [Format] ASCII ESC j Hex 1B 6A Decimal 27 106 When m=1 or 49 in GS V m, the printer executes a partial cut (one point left uncut). For TECHNICAL MANUAL, when m=0 or 48, the printer executes a full cut. When using this command, there is a gap between the auto-cutter position and the print position. Rev.1.2 43

When m=66 in GS V m n, the printer feeds the paper to (cutting position + n vertical motion unit) and executes a partial cut (one point left uncut). For TECHNICAL MANUAL, when m=65, the printer feeds the paper to (cutting position + n vertical motion unit) and executes a full cut. The vertical motion unit is specified by GS P. The default setting of the vertical motion unit is 1/360 inch. The value of m selects the mode for GS V m and GS V m n as follows: m Print Mode 0, 48 Full cut (cuts the paper completely) 1, 49 Partial cut (one point left uncut) ESC i executes a partial cut of the paper with one point left uncut. ESC i operates in the same way as GS V when m=1 or 49. GS V is preferred for cutting paper because ESC i is not a recommended command. ESC i is supported only by TECHNICAL MANUAL. Print Sample PRINT #1, " AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"J";CHR$(250); PRINT #1, CHR$(&H1D);"V";CHR$(1); Cut paper PRINT #1, " BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1D);"V";CHR$(66);CHR$(0); Feed paper and cut AAAAA Partial cut (one point left uncut) BBBBB Paper fed to the cutting position and partial cut (one point left uncut) performed Rev.1.2 44

Miscellaneous Function Commands The TECHNICAL MANUAL supports the following miscellaneous function commands: Command GS P ESC @ ESC p Name Set horizontal and vertical motion units Initialize printer Generate pulse GS P x y Set horizontal and vertical motion units [Format] ASCII GS P x y [Range] 0 x 255 Hex 1D 50 x y Decimal 29 80 x y 0 y 255 GS P x y sets the horizontal and vertical motion units to 1/x and 1/y inches, respectively. The horizontal and vertical motion units indicate the minimum pitch used for calculating the values of related commands (shown below). The default values are x=180 and y=360. These values equal a normal dot pitch in horizontal and half dot pitch in vertical. When x and y are set to 0, the default setting of each value is used. Commands used with the horizontal motion unit (1/x) in standard mode: ESC SP, ESC $, ESC \, GS L, and GS W. Commands used with the vertical motion unit (1/y ) in standard mode: ESC 3, ESC J, and GS V. Commands used with the horizontal and vertical motion units (1/x and 1/y) in page mode (either x or y can be used, depending on the print direction set with ESC T): ESC SP, ESC $, ESC \, ESC 3, ESC J, ESC W, GS $, GS \, and GS V. Rev.1.2 45

ESC @ Initialize printer [Format] ASCII ESC @ Hex 1B 40 Decimal 27 64 ESC @ initializes the printer. All settings, including character font and line spacing settings, are canceled. The data in the print buffer is cleared and the printer mode is reset to the mode that was in effect when the power was turned on. The DIP switch settings are not checked again, the data in the receive buffer is not cleared, and any macro definitions are not cleared. PRINT #1, CHR$(&H1D);"!";CHR$(17); PRINT #1, CHR$(&H1B);"E";CHR$(1); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"@"; PRINT #1, "BBBBB";CHR$(&HA); Initialize printer AAAAA BBBBB Print Sample All settings are canceled after ESC @ is executed Rev.1.2 46

ESC p m t1 t2 Generate pulse [Format] ASCII ESC p m t1 t2 Hex 1B 70 m t1 t2 Decimal 27 112 m t1 t2 [Range] m = 0, 1, 48, 49 0 t1 255 0 t2 255 ESC p m t1 t2 sends a pulse (on time= t1 2 msec / off time= t2 2 msec) to the specified connector pin. When m=0 or 48, the pulse is sent to drawer kick-out connector pin 2; when m=1 or 49, the pulse is sent to drawer kick-out connector pin 5. PRINT #1, CHR$(&H1B);"p";CHR$(0);CHR$(25);CHR$(250); Rev.1.2 47