EN
Epson logo
Official user manual

Epson RP-U420

77 pages·1.1 MB·All in One Printer·PDF·ENDEFRITNLJA
Epson RP-U420
Table of Contents 4 sections Usable Application Programs and Tips · Definitions · Character Code Tables · Commands ShowHide
Page 1 of the Epson RP-U420 user manual — CLICK HERE for “Confidentiality Agreement”
Page 1 · click to enlarge
Page 1

ESC/POS

Epson RP-U420 — ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS diagram (page 1)
Fig. 1

EPSON EPSON

CONFIDENTIAL

RP-U420

Application Programming Guide

CLICK HERE for “Confidentiality Agreement”

CLICK HERE for “About This Manual”

EXIT EXIT EXIT

Page 2 of the Epson RP-U420 user manual — RP-U420 Application Programming Guide Version 1.0 Seiko Epson Corporation System Device Division
Page 2 · click to enlarge
Page 2

ESC/POS

CONFIDENTIAL EPSON EPSON

EPSON and ESC/POS are registered trademarks of Seiko Epson Corporation. Acrobat® Reader™copyright ©1997–1999 Adobe Systems Incorporated. All rights reserved. Adobe and Acrobat are trademarks of Adobe Systems Incorporated.

RP-U420 Application Programming Guide Version 1.0 Seiko Epson Corporation System Device Division

Page 3 of the Epson RP-U420 user manual
Page 3 · click to enlarge
Page 3
ESC/POS CONFID ESC/PEOPS ESC/POSConfidentiality ENTIAL ON Agreement BY USING THIS DOCUMENT, YOU AGREE TO ABIDE BY THE TERMS OF THIS AGREEMENT. PLEASE RETURN THIS DOCUMENT IMMEDIATELY IF YOU DO NOT AGREE TO THESE TERMS. This document contains confidential, proprietary information of Seiko Epson Corporation or its affiliates. You must keep such information confidential. If the user is a business entity or organization, you must limit disclosure to those of your employees, agents and contractors who have a need to know and who are also bound by obligations of confidentiality. On the earlier of (a) termination of your relationship with Seiko Epson, or (b) Seiko Epson's request, you must stop using the confidential information. You must then return or destroy the information, as directed by Seiko Epson. If a court, arbitrator, government agency or the like orders you to disclose any confidential information, you must immediately notify Seiko Epson. You agree to give Seiko Epson reasonable cooperation and assistance in resisting disclosure. You may use confidential information only for the purpose of facilitating authorized sales and service of, or developing software and similar products for authorized use with, EPSON products. Any other use requires the prior written consent of Seiko Epson. THE INFORMATION IN THIS DOCUMENT IS PROVIDED “AS IS,” WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY WARRANTY OF TITLE OR NONINFRINGEMENT. Seiko Epson has no liability for loss or damage arising from or relating to your use of or reliance on the information in the document. You may not reproduce, store or transmit the confidential information in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise) without the prior written permission of Seiko Epson. Your obligations under this Agreement are in addition to any other legal obligations. Seiko Epson does not waive any right under this Agreement by failing to exercise it. The laws of Japan apply to this Agreement. PEOPSSON
Epson RP-U420 diagram (page 3)
Fig. 2
Page 4 of the Epson RP-U420 user manual — 2-1 Journal and Receipt Combination Printing
Page 4 · click to enlarge
Page 4

This example illustrates ESC/POS command functions and printing results. Item 2-1 shows a combination of receipt and journal

printing. Item 2-2 shows processing to issue a Taiwan receipt. Tips include features of stamp printing and usage of the ESC o

command. Note: Print samples are images of the printing results of the program samples. They do not represent the actual

The example shows procedures and a program sample for printing part of data on a receipt and journal at the same time.

At first you need to set DIP Switch 1-8 (Printer mode selection) to Off (Standard mode); then turn on the power.

RP-U420 Usable application programs and tips Ver. 1.0 p. 4

USABLE APPLICATION PROGRAMS AND TIPS

2-1 Journal and Receipt Combination Printing

C O N F I D E N T I A L

System Processing

Usable application programs and tips

printing.

Page 5 of the Epson RP-U420 user manual — RP-U420 420
Page 5 · click to enlarge
Page 5

RP-U420 Usable application programs and tips Ver. 1.0 p. 5

July 6, 2000, 10:30 #12345

RP-U420 420

PS-170 170 TOTAL 590

July 6, 2000, 10:30 ← Date and Time

RP-U420 420

PS-170 170 TOTAL 590

PAID 600 CHANGE 10

Stamp

C O N F I D E N T I A L

Print Sample

Show 6 more labels / short text on this page
Item A · Receipt Journal · ← Cutting position · Item B · Item A · #12345
Page 6 of the Epson RP-U420 user manual — System Processing Procedures
Page 6 · click to enlarge
Page 6
ProcedureCommands usedDescription 1. InitializationESC @Executes initialization. 2. Print date and timeESC c 0, ESC z RS, LFPrints different data on receipt and journal. Jumps to the print position on journal (journal tab). 3. Print Item AESC z, LFPrints Item A. ESC z a parallel printing for the same data on both receipt and journal. 4. Execute a stamp for the next receiptESC c 0, ESC oExecutes a stamp for the next receipt. 5. Print Item BLFPrints Item B. 6. Issue a receiptESC p 0, GS V ESC c 0, LFPrints a slip number, operates a drawer, cuts a receipt, feeds journal paper.
1. Initialization ESC @ Executes initialization.
3. Print Item A ESC z , LF Prints Item A.

Procedure Commands used Description

5. Print Item B LF Prints Item B.

paper.

2. Print date and time ESC c 0 , ESC z
6. Issue a receipt ESC p 0 , GS V

C O N F I D E N T I A L

System Processing Procedures

Page 7 of the Epson RP-U420 user manual — END
Page 7 · click to enlarge
Page 7

RP-U420 Usable application programs and tips Ver. 1.0 p. 7

PRINT #1, CHR$(&H1B);"z";CHR$(0); ← Cancels parallel printing on receipt and journal

PRINT #1, CHR$(&H1B);"z";CHR$(1); ← Selects parallel printing on receipt and journal

PRINT #1, CHR$(&H1D);"V";CHR$(66);CHR$(0); ← Feeds paper to the cutting position

PRINT #1, CHR$(&H1B);"p";CHR$(0);CHR$(2);CHR$(20); ← drawer kick-out

PRINT #1, “July 6, 2000 10:30 #12345”;CHR$(&HA);CHR$(&HA);

PRINT #1, CHR$(&H1B);”o”;← Executes stamp for the next sheet

PRINT #1, "CHANGE 10";CHR$(&HA);CHR$(&HA);

PRINT #1, “ #12345”;CHR$(&HA);CHR$(&HA);

PRINT #1, CHR$(&H1B);"c0";CHR$(3); ← Selects a print sheet

PRINT #1, CHR$(&H1B);”c0”;CHR$(2); ← Selects receipt

PRINT #1, CHR$(&H1B);”c0”;CHR$(1); ← Selects journal

PRINT #1, CHR$(&H1B);"@"; ← Initializes the printer

PRINT #1, "RP-U420 420";CHR$(&HA);

PRINT #1, "PS-170 170";CHR$(&HA);

PRINT #1, "TOTAL 590";CHR$(&HA);

PRINT #1, "----------------------------";CHR$(&HA);

PRINT #1, "PAID 600";CHR$(&HA);

PRINT #1, “July 6, 2000 10:30”;CHR$(&H1E);

PRINT #1, CHR$(&HA);← Feeds journal

C O N F I D E N T I A L

Programming Example

END

Show 7 more labels / short text on this page
Prints date · and time · receipt · Item A · Stamp · Item B · Issues
Page 8 of the Epson RP-U420 user manual — Print Sample
Page 8 · click to enlarge
Page 8

C O N F I D E N T I A L

2-2 Issuing Taiwan Receipt

The example shows procedures and a program sample for issuing a Taiwan receipt, which has black marks. At first you need to set DIP Switch 1-8 (Printer mode selection) to On (Taiwan mode); then turn on the power.

Print Sample

ReceiptPredefined logo Stamp 01-01-01 #12345 RP-U420 420 PS-170 170 TOTAL 590 PAID 600 CHANGE 10 Advertisement← Date and Time Item A Item B Note: The relationship between the paper cut position and the mark sensor position may not be exact because the paper feed pitch for this printer is 4.23 mm. ← Cutting positon Usable application programs and tipsVer. 1.0 p.
Page 9 of the Epson RP-U420 user manual — System Processing Procedures
Page 9 · click to enlarge
Page 9
ProcedureCommands usedDescription 1. InitializationESC @Executes initialization. 2. Print detailsESC c 0, ESC z ESC d, LFPrints date, slip number, and details on both receipt and journal. ESC z executes parallel printing of the same data on both receipt and journal. 3. Execute a stamp for the next receiptESC d, ESC oExecutes a stamp for the next receipt. 4. Issue a receiptFFFeeds a receipt to the next black mark position and cuts the receipt.
3. Execute a stamp for the next receipt ESC d , ESC o Executes a stamp for the next receipt.
1. Initialization ESC @ Executes initialization.

Procedure Commands used Description

journal.

2. Print details ESC c 0 , ESC z

C O N F I D E N T I A L

System Processing Procedures

Page 10 of the Epson RP-U420 user manual — END
Page 10 · click to enlarge
Page 10

RP-U420 Usable application programs and tips Ver. 1.0 p. 10

PRINT #1, CHR$(&H1B);"z";CHR$(1); ← Selects parallel printing on receipt and journal

PRINT #1, CHR$(&H1B);”o”;← Executes stamp for the next sheet

PRINT #1, CHR$(&H1B);"c0";CHR$(3); ← Selects a print sheet

PRINT #1, CHR$(&H1B);"@"; ← Initializes the printer

PRINT #1, “01-01-01 #12345”;CHR$(&HA);

PRINT #1, "RP-U420 420";CHR$(&HA);

PRINT #1, "PS-170 170";CHR$(&HA);

PRINT #1, "TOTAL 590";CHR$(&HA);

PRINT #1, "----------------------------";CHR$(&HA);

PRINT #1, "PAID 600";CHR$(&HA);

PRINT #1, "CHANGE 10";CHR$(&HA);

PRINT #1, CHR$(&H1B);”d”;CHR$(23); ← Feeds 23-line

PRINT #1, CHR$(&H1B);”d”;CHR$(6); ← Feeds 6-line

PRINT #1, CHR$(&HC); ← Issues a receipt

C O N F I D E N T I A L

Programming Example

END

Prints details · Stamp

Page 11 of the Epson RP-U420 user manual — Tips
Page 11 · click to enlarge
Page 11

RP-U420 has a stamp function. ESC o executes a stamp once. When printing a stamp, you need to set line spacing, depending

RP-U420 Usable application programs and tips Ver. 1.0 p. 11

If you want to print characters just below the stamp after executing it, you need to feed 12 lines in advance.

(When DIP switch 1-7 is On)

Positions for print head, stamp, and cutter

(When DIP switch 1-7 is Off)

C O N F I D E N T I A L

on the position of each mechanism.

1. Execute a stamp ( ESC o ). 2. Feed 12 lines ( ESC d 12 ). 3. Print data (pint data + LF ).

Tips

Show 10 more labels / short text on this page
← manual cutter · ← print head · 11-line · 8-line · stamp · ← autocutter · ← print head · 8-line · 11-line · stamp
Page 12 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 12 · click to enlarge
Page 12

However, if you do the procedures above at the beginning of a receipt issue transaction, there will be space of about 14 lines

during the receipt printing for the first receipt, you can print a receipt without unnecessary spaces. If you use the autocutter,

above the stamp. As the program examples in this section show, if printing of a stamp for the second receipt is executed

the paper cut position and the

1 to 6 mm (*) (*) The relationship between

mark sensor position may not

When issuing a black mark receipt, follow the same procedures as when you print a stamp for the second receipt during

be exact because the paper

feed pitch for this printer is

When deciding the stamp position in the Taiwan mode, you need to take the current position of the black mark into

RP-U420 Usable application programs and tips Ver. 1.0 p. 12

1. Print data up to the line so that the rest of the lines to be printed are 5 lines from the edge of the receipt. 2. Execute a stamp ( ESC o ). 3. Print data for the last 5 lines (print data + LF ). 4. Feed paper to the cutting position and execute a paper cut ( GS V ). Note: 5 lines used in the procedures are a reference value.

4.23 mm.

← autocutter or manual cutter position

consideration. In Taiwan mode, feed paper to the black by FF and execute a paper cut.

receipt printing for the first receipt. Refer to 2-2, Issuing Taiwan Receipt, for details.

Paper position after FF is executed

C O N F I D E N T I A L

follow the steps below.

Page 13 of the Epson RP-U420 user manual — DEFINITIONS
Page 13 · click to enlarge
Page 13

Real-time commands are the commands that consist of a DLE extension (such as DLE EOT or DLE ENQ). The real-

If new print data (such as characters or bit images) or horizontal tabs are processed in standard mode when the print

buffer is full, the image data already stored in the print buffer is printed and a line feed is executed. This is the same

time commands execute processing when received. After executing, they are stored in the receive buffer and then

The beginning of the line means that no data exists in the print buffer, and the beginning of the line is the left

Normal commands are all the commands except real-time commands. The normal commands are stored in the

operation as LF. The data (print data or horizontal tab) that causes the print buffer full is processed from the

The receive buffer is used to store data from the host computer. All received data is stored in this buffer and

This is the printer state in which the printer does nothing after receiving all codes, including parameters.

RP-U420 Definitions Ver. 1.0 p. 13

processed in the order received. Buffer capacity depends on the printer model used.

discarded as undefined codes when the normal commands are processed.

This is the maximum printable area specified for each printer model.

This is the state which occurs when the print buffer becomes full.

receive buffer temporarily and then processed sequentially.

The print buffer is used to store image data for printing.

C O N F I D E N T I A L

beginning of the next line.

(6) Print buffer-full printing

(7) Beginning of the line

(10) Ignoring a command

DEFINITIONS

margin.

Show 7 more labels / short text on this page
(2) Real-time commands · (1) Normal commands · (5) Print buffer-full · (3) Receive buffer · (8) Printable area · (4) Print buffer · Definitions
Page 14 of the Epson RP-U420 user manual — (15) MSB
Page 14 · click to enlarge
Page 14

bottom of the character matrix (the bottom of the lowest dot possible), but for other character sets, the baseline is

The commands that change printer status by processing a command and affect printer operation and print results

thereafter. The commands that can specify enhanced characters, set paper feed amount, and select a character are

following printer operation. Functions of printing, paper cutting, and status transmission are executing commands

The baseline for character sets that are 9 dots high (for example, 7 × 9 and 9 × 9) is the invisible line marking the

Horizontal direction is the direction which is perpendicular to the paper feed direction. Vertical direction is the

the bottom of all characters, except that descenders, such as the bottom parts of “g” and “y,” are below the

The commands that affect printer operation and change the printer status temporarily but do not affect the

  • Bit which has a function in the ESC/POS specification; however, the printer does not support the function.

RP-U420 Definitions Ver. 1.0 p. 14

and the real-time commands and some of the normal commands are executing commands.

setting commands and some of the normal commands are setting commands.

  • Bit which will be used for an extended function in the future.

Use a bit only with a value indicated in a table.

Use a bit with a value indicated in a table.

“Reserved” bits are as follows:

C O N F I D E N T I A L

paper feed direction.

baseline.

(15) MSB

(16) LSB

Show 8 more labels / short text on this page
(11) Horizontal/vertical direction · (14) Executing commands · Most Significant Bit · Least Significant Bit · (13) Setting commands · (18) “Reserved“ bit · (19) “Fixed” bit · (12) Baseline
Page 15 of the Epson RP-U420 user manual — CHARACTER CODE TABLES
Page 15 · click to enlarge
Page 15

SP in a table represents space. See Using the character code tables for information on how to read these tables.

RP-U420 Character code tables Ver. 1.0 p. 15

Epson RP-U420 — Character Code Tables diagram (page 15)
Fig. 3 · Character Code Tables
Page 0 (PC437U.S.A., Standard Europe) (International character set: U.S.A.)

CHARACTER CODE TABLES

C O N F I D E N T I A L

Character code tables

Page 16 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 16 · click to enlarge
Page 16

RP-U420 Character code tables Ver. 1.0 p. 16

Epson RP-U420 — Character Code Tables diagram (page 16)
Fig. 4 · Character Code Tables

C O N F I D E N T I A L

Page 1 (Katakana)

Page 17 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 17 · click to enlarge
Page 17

RP-U420 Character code tables Ver. 1.0 p. 17

Epson RP-U420 — Character Code Tables diagram (page 17)
Fig. 5 · Character Code Tables

C O N F I D E N T I A L

Page 2 (PC850Multilingual)
Page 18 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 18 · click to enlarge
Page 18

RP-U420 Character code tables Ver. 1.0 p. 18

Epson RP-U420 — Character Code Tables diagram (page 18)
Fig. 6 · Character Code Tables

C O N F I D E N T I A L

Page 3 (PC860Portuguese)
Page 19 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 19 · click to enlarge
Page 19

RP-U420 Character code tables Ver. 1.0 p. 19

Epson RP-U420 — Character Code Tables diagram (page 19)
Fig. 7 · Character Code Tables

C O N F I D E N T I A L

Page 4 (PC863Canadian-French)
Page 20 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 20 · click to enlarge
Page 20

RP-U420 Character code tables Ver. 1.0 p. 20

Epson RP-U420 — Character Code Tables diagram (page 20)
Fig. 8 · Character Code Tables

C O N F I D E N T I A L

Page 5 (PC865Nordic)
Page 21 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 21 · click to enlarge
Page 21

RP-U420 Character code tables Ver. 1.0 p. 21

Epson RP-U420 — Character Code Tables diagram (page 21)
Fig. 9 · Character Code Tables

C O N F I D E N T I A L

Page 16 (WPC1252)

Page 22 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 22 · click to enlarge
Page 22

RP-U420 Character code tables Ver. 1.0 p. 22

Epson RP-U420 — Character Code Tables diagram (page 22)
Fig. 10 · Character Code Tables

C O N F I D E N T I A L

Page 17 (PC866Cyrillic #2)
Page 23 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 23 · click to enlarge
Page 23

RP-U420 Character code tables Ver. 1.0 p. 23

Epson RP-U420 — Character Code Tables diagram (page 23)
Fig. 11 · Character Code Tables

C O N F I D E N T I A L

Page 18 (PC862Latin2)
Page 24 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 24 · click to enlarge
Page 24

RP-U420 Character code tables Ver. 1.0 p. 24

Epson RP-U420 — Character Code Tables diagram (page 24)
Fig. 12 · Character Code Tables

C O N F I D E N T I A L

Page 19 (PC858Euro)
Page 25 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 25 · click to enlarge
Page 25

RP-U420 Using the character code tables Ver. 1.0 p. 25

The example below uses Page 0 (PC437) to illustrate the use of the character code tables.

The combination of the numbers above is the ASCII code for character "A".

USING THE CHARACTER CODE TABLES

Hexadecimal 4 Binary 0100 These numbers are the most significant bits of the ASCII code.

Hexadecimal 1 Binary 0001 These numbers are the least significant bits of the ASCII code.

You can find the character "A" in Page 0 as follows:

Follow its column straight up to find the digits.

The decimal value for the character "A" is 65.

Follow its row to the left to find the digits.

Decimal 65 Hexadecimal 41 Binary 01000001

C O N F I D E N T I A L

Using the character code tables

Page 26 of the Epson RP-U420 user manual — ESC @ E XECUTING COMMAND
Page 26 · click to enlarge
Page 26

Command Classification Name Function type Page

LF EXECUTING COMMAND Print and line feed PRINT COMMANDS 28

FF EXECUTING COMMAND Print and feed paper to print starting position PRINT COMMANDS 29

CR EXECUTING COMMAND Print and carriage return PRINT COMMANDS 30

RS EXECUTING COMMAND Journal tab PRINT POSITION COMMANDS 31

ESC ! SETTING COMMAND Select print mode(s) CHARACTER COMMANDS 32

ESC % SETTING COMMAND Select/cancel user-defined character set CHARACTER COMMANDS 34

ESC & SETTING COMMAND Define user-defined characters CHARACTER COMMANDS 36

ESC ✻ EXECUTING COMMAND Select bit-image mode BIT-IMAGE COMMANDS 38

ESC < EXECUTING COMMAND Return home MECHANISM CONTROL COMMANDS 41

ESC = SETTING COMMAND Select device MISCELLANEOUS COMMANDS 42

ESC ? SETTING COMMAND Cancel user-defined characters CHARACTER COMMANDS 43

SETTING COMMAND Initialize printer MISCELLANEOUS COMMANDS 44

ESC R SETTING COMMAND Select an international character set CHARACTER COMMANDS 45

SETTING COMMAND Select paper type(s) for printing PRINTING PAPER COMMANDS 47

ESC c 3 SETTING COMMAND Select paper sensor(s) to output paper-end signals PAPER SENSOR COMMANDS 49

RP-U420 RP-U420 supported commands Ver. 1.0 p. 26

RP-U420 SUPPORTED COMMANDS

C O N F I D E N T I A L

ESC @ E XECUTING COMMAND

ESC c 0 EXECUTING COMMAND

RP-U420 supported commands

Page 27 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 27 · click to enlarge
Page 27

Command Classification Name Function type Page

ESC c 4 SETTING COMMAND Select paper sensor(s) to stop printing PAPER SENSOR COMMANDS 50

ESC c 5 SETTING COMMAND Enable/disable panel buttons PANEL BUTTON COMMAND 51

ESC d EXECUTING COMMAND Print and feed n lines PRINT COMMANDS 52

ESC f SETTING COMMAND Set validation paper waiting time PRINTING PAPER COMMANDS 53

ESC o EXECUTING COMMAND Stamp MECHANISM CONTROL COMMANDS 54

ESC p EXECUTING COMMAND Generate pulse MISCELLANEOUS COMMANDS 55

ESC t SETTING COMMAND Select character code table CHARACTER COMMANDS 56

journal CHARACTER COMMANDS 58

FS & SETTING COMMAND Select Kanji character mode KANJI COMMANDS 60

FS . SETTING COMMAND Cancel Kanji character mode KANJI COMMANDS 61

GS I EXECUTING COMMAND Transmit printer ID MISCELLANEOUS COMMANDS 62

GS V EXECUTING COMMAND Feed paper to the cutting position and cut it MECHANISM CONTROL COMMANDS 64

GS r EXECUTING COMMAND Transmit status STATUS COMMANDS 67

DLE EOT EXECUTING COMMAND Real-time status transmission STATUS COMMANDS 69

DLE ENQ EXECUTING COMMAND Real-time request to printer MISCELLANEOUS COMMANDS 74

DLE DC4 EXECUTING COMMAND Generate pulse at real-time MISCELLANEOUS COMMANDS 76

RP-U420 RP-U420 supported commands Ver. 1.0 p. 27

ESC z SETTING COMMAND Turn parallel printing mode on/off for receipt and

C O N F I D E N T I A L

Page 28 of the Epson RP-U420 user manual — LF
Page 28 · click to enlarge
Page 28

E XECUTING COMMAND

RP-U420 Print commands LF Ver. 1.0 p. 28

Program Example Print Sample

[Description] Prints the data in the print buffer and feeds one line, using 4.2 mm {1/6"}.

[Notes] This command sets the print position to the beginning of the line.

PRINT #1, "AAAAA"; CHR$(&HA); AAAAA

PRINT #1, "BBBBB"; CHR$(&HA); BBBBB

C O N F I D E N T I A L

[Name] Print and line feed

Hex 0A Decimal 10

LF

Show 4 more labels / short text on this page
Print commands · [Format] ASCII LF · [Range] None · [Default] None
Page 29 of the Epson RP-U420 user manual — PRINT #1, "BBBBB"; CHR$(&HC);
Page 29 · click to enlarge
Page 29

E XECUTING COMMAND

detects the marked portion. The paper is fed when the paper is not present at the print starting position or

When receipt is selected as the print sheet, prints the data in the print buffer and feeds to the next print

When journal is selected as the print sheet, prints the data in the print buffer and feeds to the next print

When receipt or journal is selected as the print sheet, prints the data in the print buffer and feeds to the

[Notes] I This command is effective only in the Taiwan mode (when DIP switch 1-8 is ON). This mode can be set to

I The paper is not fed when the paper is present at the print starting position or when the mark sensor

RP-U420 Print commands FF Ver. 1.0 p. 29

I After the operation, the printer sets the print starting position to the beginning of a line.

I This command is effective only when receipt or journal is selected as the print sheet.

Program Example for all printers Print Sample

the printer which is equipped with the Taiwan black mark sensor.

when the mark sensor does not detect the marked portion.

When DIP switch 1-7 is ON (manual cutter installed):

PRINT #1, CHR$(&H1B);"c0";CHR$(2); ← Select paper type AAAAA

PRINT #1, "AAAAA"; CHR$(&HA); BBBBB

starting position and cut (one point left uncut).

[Description] When DIP switch 1-7 is OFF (autocutter installed):

[Name] Print and feed paper to print starting position

next print starting position.

C O N F I D E N T I A L

starting position.

Hex 0C Decimal 12

PRINT #1, "BBBBB"; CHR$(&HC);

FF

Show 5 more labels / short text on this page
Cut receipt · Print commands · [Format] ASCII FF · [Range] None · [Default] None
Page 30 of the Epson RP-U420 user manual — CR
Page 30 · click to enlarge
Page 30

E XECUTING COMMAND

RP-U420 Print commands CR Ver. 1.0 p. 30

PRINT #1, " BBBBB";CHR$(&HA); AAAAABBBBB ← Auto line feed disabled

Program Example Print Sample

PRINT #1, "AAAAA";CHR$(&HD); BBBBB ← Auto line feed enabled

[Description] Prints the data in the print buffer and does not feed the paper.

[Notes] Sets the print starting position to the beginning of the line.

AAAAA

[Name] Print and carriage return

C O N F I D E N T I A L

Hex 0D Decimal 13

CR

Show 4 more labels / short text on this page
Print commands · [Format] ASCII CR · [Range] None · [Default] None
Page 31 of the Epson RP-U420 user manual — RS
Page 31 · click to enlarge
Page 31

E XECUTING COMMAND

RP-U420 Print position commands RS Ver. 1.0 p. 31

[Notes] This command is effective when all the following conditions are satisfied simultaneously:

Print Sample <Receipt> Print Sample <Journal>

[Description] Moves the print starting position to the beginning of the print area for the journal.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

I The parallel printing mode for receipt and journal is turned off.

CCCCCCCCCCCCCCCCCCCC journal tab DDDDDDDDDDDDDDDDDDDD

I The print area is set within a printable area on the receipt.

I Both receipt and journal are selected for the print sheet.

PRINT #1, CHR$(&H1B);"c0";CHR$(3); ←Select paper type (receipt and journal)

PRINT #1, CHR$(&H1B);"z";CHR$(0); ←Cancel parallel printing mode

PRINT #1, "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB";CHR$(&HA);

PRINT #1, "CCCCCCCCCCCCCCCCCCCC";CHR$(&H1E);

PRINT #1, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";

PRINT #1, "DDDDDDDDDDDDDDDDDDDD";CHR$(&HA);

C O N F I D E N T I A L

Hex 1E Decimal 30

RS

Show 6 more labels / short text on this page
Program Example · Print position commands · [Format] ASCII RS · [Name] Journal tab · [Range] None · [Default] None
Page 32 of the Epson RP-U420 user manual — ESC !
Page 32 · click to enlarge
Page 32

S ETTING COMMAND

underline; therefore, this may cause difficulty in reading. Keep this in mind when the underline is added.

[Notes] If the underline is added to the characters to be printed, the lowest bit of the characters overlaps the

RP-U420 Character commands ESC ! Ver. 1.0 p. 32

5 Off 00 0 Double-width mode not selected

On 20 32 Double-width mode selected

7 Off 00 0 Underline mode not selected

On 80 128 Underline mode selected

Bit Off/On Hex Decimal Function

0 Off 00 0 Reserved

1 Off 00 0 Reserved

2 Off 00 0 Reserved

3 Off 00 0 Reserved

4 Off 00 0 Reserved

6 Off 00 0 Reserved

[Description] Selects print mode(s) using n as follows:

[Format] ASCII ESC ! n

Hex 1B 21 n

Decimal 27 33 n

C O N F I D E N T I A L

[Name] Select print mode(s)

[Range] 0 ≤ n ≤ 255

[Default] n = 0

ESC !

Character commands

Page 33 of the Epson RP-U420 user manual — PRINT #1, CHR$(&H1B);"!";CHR$(160); "BB"; CHR$(&HA);
Page 33 · click to enlarge
Page 33

RP-U420 Character commands ESC ! Ver. 1.0 p. 33

Program Example Print Sample

AANormal

PRINT #1, CHR$(&H1B);"!";CHR$(160); "BB"; CHR$(&HA);

PRINT #1, CHR$(&H1B);"!";CHR$(32); "BB"; CHR$(&HA);

PRINT #1, CHR$(&H1B);"!";CHR$(128); "AA";

PRINT #1, CHR$(&H1B);"!";CHR$(0); "AA";

C O N F I D E N T I A L

← with underline · BB, Double-width

Page 34 of the Epson RP-U420 user manual — ESC %
Page 34 · click to enlarge
Page 34

S ETTING COMMAND

When the Least Significant Bit (LSB) is 0, the user-defined character set is canceled and the internal character

I When the user-defined character set has been released, the internal character set is specified

RP-U420 Character commands ESC % Ver. 1.0 p. 34

When the LSB is 1, the user-defined character set is selected.

[Description] Selects or cancels the user-defined character set.

[Name] Select/cancel user-defined character set

[Format] ASCII ESC % n

Hex 1B 25 n

Decimal 27 37 n

[Notes] I Only the LSB of n is valid.

C O N F I D E N T I A L

automatically.

set is enabled.

[Range] 0 ≤ n ≤ 255

[Default] n = 0

ESC %

Character commands

Page 35 of the Epson RP-U420 user manual — PRINT #1, CHR$(10);
Page 35 · click to enlarge
Page 35

A ◊× D E ← Characters from user-defined character set (cancel one character)

RP-U420 Character commands ESC % Ver. 1.0 p. 35

Program Example Program Example (continued)

o◊× D E ← Characters from user-defined character set

A B C D E ← Characters from resident character set

DATA &H18,&H00,&H00,&H00,&H3C,&H00,&H00,&H00

DATA &H7E,&H00,&H00,&H00,&H3C,&H00,&H00,&H00

DATA &H18,&H00,&H00,&H00,&H24,&H00,&H00,&H00

DATA &H42,&H00,&H00,&H00,&H24,&H00,&H00,&H00

DATA &H00,&H00,&H10,&H00,&H20,&H00,&H5F,&H00

DATA &H00,&H00,&H81,&H00,&H00,&H00,&H5F,&H00

DATA &H20,&H00,&H10,&H00

DATA &H18,&H00

DATA &H18,&H00

PRINT #1, CHR$(&H1B);"%";CHR$(1); ← Select user-defined character

PRINT #1, CHR$(&H1B);"?";"A"; ← Cancel the user-defined character

PRINT #1, CHR$(&H1B);"%";CHR$(0); ← Select resident character

C O N F I D E N T I A L

PRINT #1, CHR$(&H1B);"&";CHR$(2);"AC";

PRINT #1, "A B C D E"; CHR$(&HA);

PRINT #1, "A B C D E"; CHR$(&HA):

PRINT #1, "A B C D E"; CHR$(&HA);

READ dPRINT #1, CHR$(d);
READ dPRINT #1, CHR$(d);
READ dPRINT #1, CHR$(d);

PRINT #1, CHR$(10);

PRINT #1, CHR$(9);

PRINT #1, CHR$(9);

FOR i=1 TO 2*10

FOR i=1 TO 2*9

FOR i=1 TO 2*9

Show 4 more labels / short text on this page
Print Sample · NEXT i · NEXT i · NEXT i
Page 36 of the Epson RP-U420 user manual — ESC &
Page 36 · click to enlarge
Page 36

S ETTING COMMAND

I "d" is definition data that indicates the pattern for "x" dots in the horizontal direction, starting from the

I In the definition data, a "1" represents a dot that is to be printed, and a "0" represents a dot that is not to

left edge. If "x" does not satisfy dots in the character configuration pattern (9 dots), the remaining dots

I Independent user-defined character definitions are possible for the fonts if the character pattern is

I Only the most significant bit of the second data byte in the vertical direction can be printed.

RP-U420 Character commands ESC & Ver. 1.0 p. 36

  • c1 specifies the beginning character code for the definition, and c2 specifies the final code

[Notes] I Consecutive character codes for multiple characters can be defined in one definition.

[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)]

  • x specifies the number of dots in the horizontal direction
  • y specifies the number of bytes in the vertical direction
  • d specifies the defined character data pattern

different in the international character sets.

[Description] Defines user-defined characters.

[Name] Define user-defined characters

on the right are spaces.

C O N F I D E N T I A L

32 ≤ c1 ≤ c2 ≤ 126 0 ≤ x ≤ 9 0 ≤ d ≤ 255 k = c2 – c1 + 1

be printed.

[Range] y = 2

ESC &

Character commands · [Default] None

Page 37 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 37 · click to enlarge
Page 37

I If ESC R n is executed, the user-defined characters that have been already defined are canceled.

ESC & y c1 c2 X p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14

Code 1B 26 02 20 20 07 1F 80 20 00 44 00 80 00 44 00 20 00 1F 80 The corresponding bit is 1 when printing and 0 when not printing.

I If any user-defined characters are not defined, the internal character set (built-in) is selected.

RP-U420 Character commands ESC & Ver. 1.0 p. 37

I The defined downloaded characters are cleared in the following circumstances:

Epson RP-U420 — Commands diagram (page 37)
Fig. 13 · Commands

MSB

LSB

MSB

LSB

  • When a hardware reset is executed or the power is turned off

When the dot pattern for code 20H is defined as shown above:

I No user-defined characters are defined in the initial state.

[Example] 7 × 9 font with 2-dot character space

  • When ESC @ is executed
  • When deleted by ESC ?

See program and print example for ESC % ESC % ESC % ESC %.

C O N F I D E N T I A L

Page 38 of the Epson RP-U420 user manual — ESC ✻
Page 38 · click to enlarge
Page 38

E XECUTING COMMAND

I If bit-image data input exceeds the number of dots to be printed on a line, the excess data and the number

of dots of the bit image in the horizontal direction which is specified by nL and nH, are discarded. Then the

  • n L and n H specify the number of dots of the bit image in the horizontal direction as ( n L + n H × 256) dots

I If bit-image data and character data are printed on a line, the bottom of the bit image is aligned to the

Vertical Direction Max. Number of Dots Min. number of dots

[Notes] I d indicates the bit-image data. Set a corresponding bit to 1 to print a dot or to 0 not to print a dot.

RP-U420 Bit-image commands ESC ✻ Ver. 1.0 p. 38

in horizontal Number of Dots Receipt Journal Validation

[Description] Selects a bit-image mode using m for the number of dots specified by nL and nH, as follows:

16 9-dot single-density 9 108 108 248 2 half dots

17 9-dot double-density 9 216 216 495 1 half dot

baseline (the second dot from the bottom) of the built-in internal character.

printer performs the buffer-full process when the next data is input.

[Format] ASCII ESC ✻ m nL nH d1 ... dk

Hex 1B 2A m nL nH d1 ... dk

Decimal 27 42 m nL nH d1 ... dk

  • m specifies the print mode of the bit image
  • k specifies the number of bit-image data
  • d indicates the bit-image data

C O N F I D E N T I A L

[Name] Select bit-image mode

0 ≤ nL ≤ 255 0 ≤ nH ≤ 3 0 ≤ d ≤ 255 k = (nL + nH × 256) × 2

[Range] m = 16, 17

ESC ✻

Bit-image commands · m Mode · [Default] None

Page 39 of the Epson RP-U420 user manual — TOP HEAD1 {
Page 39 · click to enlarge
Page 39

the printer performs buffer full printing for the current print line; then the remaining data is printed from

I "Dot density in the vertical direction" indicates the dot density in the paper feeding direction, and "Dot

I If the width set for the printing area is less than the minimum width of the bit-image data to be printed,

density in the horizontal direction" indicates the direction perpendicular to the paper feeding direction.

I After finishing processing the bit image, the printer returns to normal data processing mode. The next

I If an adjacent dot is specified for the bit image in double-density mode (m = 17), the right side of the

RP-U420 Bit-image commands ESC ✻ Ver. 1.0 p. 39

[Example] The relationship between the image data and the dots to be printed is as follows:

6 7 4 5 2 3 0 1 6 7 4 5 2 3 0 1

I This command is not affected by print modes (double width or underline).

print starting position is located at the next dot of the last bit-image data.

I The bit-image data is developed based on the current print position.

the beginning of the next line.

adjacent dot is not printed.

C O N F I D E N T I A L

TOP HEAD1 {

HEAD3 { HEAD2 {

HEAD5 { HEAD4 {

HEAD7 { HEAD6 {

HEAD8 {

Bit image data · Print data · Bottom HEAD9{

Page 40 of the Epson RP-U420 user manual — RETURN
Page 40 · click to enlarge
Page 40

RP-U420 Bit-image commands ESC ✻ Ver. 1.0 p. 40

Program Example Print Sample

m=16GOSUB bitimage9 ← 9-dot single-density

MSB

LSB

MSB

LSB

d5 d3 d1 d11 d9 d7 d17 d15 d13

d6 d4 d2 d12 d10 d8 d18 d16 d14

PRINT #1, CHR$(128);CHR$(0);CHR$(64);CHR$(0);CHR$(32);CHR$(0);CHR$(16);CHR$(0);

PRINT #1, CHR$(0);CHR$(128);CHR$(1);CHR$(0);CHR$(2);CHR$(0);CHR$(4);CHR$(0);

PRINT #1, CHR$(8);CHR$(0);CHR$(16);CHR$(0);CHR$(32);CHR$(0);CHR$(64);CHR$(0);

PRINT #1, CHR$(8);CHR$(0);CHR$(4);CHR$(0);CHR$(2);CHR$(0);CHR$(1);CHR$(0);

C O N F I D E N T I A L

m=17GOSUB bitimage9 ← 9-dot double-density

PRINT #1, CHR$(&HA);

FOR i=1 TO 5

bitimage9:

RETURN

END

Show 4 more labels / short text on this page
m=16 · m=17 · PRINT #1, CHR$(&H1B);"[";CHR$(m);CHR$(70);CHR$(0); · NEXT i
Page 41 of the Epson RP-U420 user manual — ESC <
Page 41 · click to enlarge
Page 41

E XECUTING COMMAND

RP-U420 Mechanism control commands ESC < Ver. 1.0 p. 41

[Description] Detects the home position again; then moves the print head to the standby position.

Hex 1B 3C Decimal 27 60

PRINT #1, CHR$(&H1B);"<";

C O N F I D E N T I A L

[Format] ASCII ESC

ESC <

Show 5 more labels / short text on this page
Program Example · Mechanism control commands · [Name] Return home · [Range] None · [Default] None
Page 42 of the Epson RP-U420 user manual — PRINT #1, "BBBBB";
Page 42 · click to enlarge
Page 42

S ETTING COMMAND

[Notes] I When the printer is disabled, it ignores all data except for real-time commands until it is enabled by this

RP-U420 Miscellaneous commands ESC = Ver. 1.0 p. 42

Program Example Print Sample

[Description] Selects the device to which the host computer sends data, using n as follows:

BBBBB CCCCC

AAAAA CCCCC

BBBBB

PRINT #1, CHR$(&H1B);"=";CHR$(3);← Both printer and customer display selected

3 Enables printer and customer display

PRINT #1, CHR$(&H1B);"=";CHR$(2); ← Only customer display selected

PRINT #1, CHR$(&H1B);"=";CHR$(1); ← Only printer selected

[Format] ASCII ESC = n

Hex 1B 3D n

Decimal 27 61 n

2 Enables customer display

C O N F I D E N T I A L

command.

PRINT #1, " CCCCC"; CHR$(&HA);

[Range] 1 ≤ n ≤ 3

[Default] n = 1

PRINT #1, "BBBBB";

PRINT #1, "AAAAA";

ESC =

Show 5 more labels / short text on this page
Customer Display Sample · Miscellaneous commands · 1 Enables printer · n Function · [Name] Select device
Page 43 of the Epson RP-U420 user manual — ESC ?
Page 43 · click to enlarge
Page 43

S ETTING COMMAND

[Notes] I If a user-defined character has not been defined for the specified character code, the printer ignores this

I After the user-defined character is canceled, the corresponding pattern for the internal character is

  • n specifies the character code corresponding to the user-defined character to be canceled

RP-U420 Character commands ESC ? Ver. 1.0 p. 43

[Description] Deletes the user-defined character pattern that corresponds to the specified character code.

[Format] ASCII ESC ? n

Hex 1B 3F n

Decimal 27 63 n

[Name] Cancel user-defined characters

See program and print example for ESC % ESC % ESC % ESC %.

C O N F I D E N T I A L

command.

[Range] 32 ≤ n ≤ 126

printed.

ESC ?

Character commands · [Default] None

Page 44 of the Epson RP-U420 user manual — PRINT #1, "BBBBB"; CHR$(&HA);
Page 44 · click to enlarge
Page 44

E XECUTING COMMAND

S ETTING COMMAND

[Description] Clears the data in the print buffer and resets the printer mode to the mode that was in effect when the power

BBBBB ← All settings are canceled after ESC @ is executed PRINT #1, "AAAAA"; CHR$(&HA);

RP-U420 Miscellaneous commands ESC @ Ver. 1.0 p. 44

Program Example Print Sample

I After this command is executed; the printer goes to the following state:

  • The parallel printing mode is canceled if this command is executed
  • The print starting position is set to the beginning of a line
  • Both receipt and journal are selected for the print sheet

PRINT #1, CHR$(&H1B);"!";CHR$(32); AAAAA

[Notes] I The data in the receive buffer is not cleared.

PRINT #1, CHR$(&H1B);"@"; ← Initialize printer

[Format] ASCII ESC @

Hex 1B 40 Decimal 27 64

C O N F I D E N T I A L

was turned on.

PRINT #1, "BBBBB"; CHR$(&HA);

ESC @

Show 4 more labels / short text on this page
Miscellaneous commands · [Name] Initialize printer · [Range] None · [Default] None
Page 45 of the Epson RP-U420 user manual — ESC R
Page 45 · click to enlarge
Page 45

S ETTING COMMAND

Hex 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E

Dec 35 36 64 91 92 93 94 96 123 124 125 126

0 U.S.A. # $ @ [ \ ] ^ ` { ¦ } ~

2 Germany # $ § Ä Ö Ü ^ ` ä ö ü ß

3 U.K. £ $ @ [ \ ] ^ ` { ¦ } ~

4 Denmark I # $ @ Æ Ø Å ^ ` æ ø å ~

5 Sweden # ¤ É Ä Ö Å Ü é ä ö å ü

7 Spain I Pt $ @ ¡ Ñ ¿ ^ ` ¨ ñ } ~

8 Japan # $ @ [ ¥ ] ^ ` { ¦ } ~

9 Norway # ¤ É Æ Ø Å Ü é æ ø å ü

10 Denmark II # $ É Æ Ø Å Ü é æ ø å ü

11 Spain II # $ á ¡ Ñ ¿ é ` í ñ ó ú

12 Latin America # $ á ¡ Ñ ¿ é ü í ñ ó ú

13 Korea # $ @ [ W ] ^ ` { ¦ } ~

1 France # $ à ° ç § ^ ` é ù è ¨

6 Italy # $ @ ° \ é ^ ù à ò è ì

RP-U420 Character commands ESC R Ver. 1.0 p. 45

[Description] Selects an international character set n from the following table:

[Name] Select an international character set

[Format] ASCII ESC R n

Hex 1B 52 n

Decimal 27 82 n

C O N F I D E N T I A L

[Range] 0 ≤ n ≤ 13

[Default] n = 0

ESC R

Character commands · ASCII code · n Country

Page 46 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 46 · click to enlarge
Page 46

[Notes] I If ESC R n is executed, the user-defined characters that are defined with ESC & are canceled.

RP-U420 Character commands ESC R Ver. 1.0 p. 46

# $ @ [ \ ] ^ ` { ¦ } ~ ← n=0 (Default setting)

Program Example Print Sample

# $ à ° ç § ^ ` é ù è ¨ ← n=1

# $ § Ä Ö Ü ^ ` ä ö ü ß ← n=2

£ $ @ [ \ ] ^ ` { ¦ } ~ ← n=3

# $ @ Æ Ø Å ^ ` æ ø å ~ ← n=4

# ¤ É Ä Ö Å Ü é ä ö å ü ← n=5

# $ @ ° \ é ^ ù à ò è ì ← n=6

Pt $ @ ¡ Ñ ¿ ^ ` ¨ ñ } ~ ← n=7

# $ @ [ ¥ ] ^ ` { ¦ } ~ ← n=8

# ¤ É Æ Ø Å Ü é æ ø å ü ← n=9

# $ É Æ Ø Å Ü é æ ø å ü ← n=10

PRINT #1, "# $ @ [ \ ] ^ ` { ¦ } ~"; CHR$(&HA);

C O N F I D E N T I A L

FOR n=0 TO 10

PRINT #1, CHR$(&H1B);"R";CHR$(n); · NEXT n

Page 47 of the Epson RP-U420 user manual — ESC c 0
Page 47 · click to enlarge
Page 47

E XECUTING COMMAND

S ETTING COMMAND

RP-U420 Printing paper commands ESC c 0 Ver. 1.0 p. 47

I When validation is selected, the printer waits for insertion of a validation sheet.

[Notes] I This command is effective only when processed at the beginning of a line.

I The validation waiting state does not cause an offline or busy state.

0 Off 00 0 Journal paper roll disabled

On 01 1 Journal paper roll enabled

1 Off 00 0 Receipt paper roll disabled

On 02 2 Receipt paper roll enabled

[Description] Selects the type of paper for printing, using n as follows:

3 Off 00 0 Validation disabled

On 08 8 Validation enabled

Bit Off/On Hex Decimal Function

2 Off 00 0 Reserved

4-7 Off 00 0 Reserved

I For the validation wait time, use ESC f.

[Format] ASCII ESC c 0 n

Hex 1B 63 30 n

Decimal 27 99 48 n

[Name] Select paper type(s) for printing

C O N F I D E N T I A L

[Range] 1 ≤ n ≤ 3, n = 8

[Default] n = 3

ESC c 0

Printing paper commands

Page 48 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 48 · click to enlarge
Page 48

I When the printer receives DLE ENQ 3 during the validation waiting state, the printing sheet will return

I When validation is set from enabled to disabled, the printer waits for removal of the validation sheet.

RP-U420 Printing paper commands ESC c 0 Ver. 1.0 p. 48

Print Sample <receipt> Print Sample <journal>

I The printer waits for validation insertion until one of the following events occur:

BBBBB AAAAA

PRINT #1, CHR$(&H1B);"c0";CHR$(2); ← Select paper type (receipt)

PRINT #1, CHR$(&H1B);"c0";CHR$(1); ← Select paper type (journal)

  • The wait time set by ESC f has passed
  • When DLE ENQ 3 is executed
  • A validation sheet is inserted
  • Hardware reset or power off

PRINT #1, "AAAAA"; CHR$(&HA); ← Print on journal

PRINT #1, "BBBBB"; CHR$(&HA); ← Print on receipt

C O N F I D E N T I A L

to default (n = 3).

Program Example

Page 49 of the Epson RP-U420 user manual — ESC c 3
Page 49 · click to enlarge
Page 49

S ETTING COMMAND

I When all the sensors are disabled, the paper-end signal always outputs a paper present status.

[Notes] I The command is available only with a parallel interface and is ignored with a serial interface.

RP-U420 Paper sensor commands ESC c 3 Ver. 1.0 p. 49

0 Off 00 0 Journal near-end sensor disabled

On 01 1 Journal near-end sensor enabled

1 Off 00 0 Receipt near-end sensor disabled

On 02 2 Receipt near-end sensor enabled

PRINT #1, CHR$(&H1B);"c3";CHR$(1); ← Journal near-end sensor enabled

[Description] Selects the paper sensor(s) to output paper-end signals

[Name] Select paper sensor(s) to output paper-end signals

Bit Off/On Hex Decimal Function

2-7 Off 00 0 Reserved

[Format] ASCII ESC c 3 n

Hex 1B 63 33 n

Decimal 27 99 51 n

  • Each bit of n is used as follows:

C O N F I D E N T I A L

[Range] 0 ≤ n ≤ 255

[Default] n = 0

ESC c 3

Program Example · Paper sensor commands

Page 50 of the Epson RP-U420 user manual — ESC c 4
Page 50 · click to enlarge
Page 50

S ETTING COMMAND

I If the paper near-end sensor for the print sheet to be disabled detects a paper end, the printer executes

[Description] Selects the paper sensor(s) to use to stop printing when a paper end is detected, using n as follows:

RP-U420 Paper sensor commands ESC c 4 Ver. 1.0 p. 50

[Notes] I When all of the following conditions are satisfied, the printer stops printing:

0 Off 00 0 Journal near-end sensor disabled

On 01 1 Journal near-end sensor enabled

1 Off 00 0 Receipt near-end sensor disabled

On 02 2 Receipt near-end sensor enabled

  • The print sheet(s) for the applicable sensor(s) is selected

PRINT #1, CHR$(&H1B);"c4";CHR$(1); ← Journal near-end sensor enabled

  • The applicable sensor(s) detects a paper end

Bit Off/On Hex Decimal Function

2-7 Off 00 0 Reserved

  • Paper near-end sensor(s) is enabled

[Format] ASCII ESC c 4 n

Hex 1B 63 34 n

Decimal 27 99 52 n

[Name] Select paper sensor(s) to stop printing

paper LED light processing only.

C O N F I D E N T I A L

[Range] 0 ≤ n ≤ 255

[Default] n = 0

ESC c 4

Program Example · Paper sensor commands

Page 51 of the Epson RP-U420 user manual — ESC c 5
Page 51 · click to enlarge
Page 51

S ETTING COMMAND

I When the receipt/journal feed buttons are disabled, no buttons on the receipt/journal feed are usable,

RP-U420 Panel button command ESC c 5 Ver. 1.0 p. 51

  • When the Least Significant Bit (LSB) of n is 0, the receipt/journal feed buttons are enabled
  • Receipt/journal feed buttons are enabled when the cover is opened
  • When the LSB of n is 1, the receipt/journal feed buttons are disabled

PRINT #1, CHR$(&H1B);"c5";CHR$(1); ← Disable panel buttons

[Description] Enables or disables the receipt/journal feed buttons.

[Format] ASCII ESC c 5 n

Hex 1B 63 35 n

Decimal 27 99 53 n

except in the following case:

[Name] Enable/disable panel buttons

[Notes] I Only the LSB of n is valid.

C O N F I D E N T I A L

[Range] 0 ≤ n ≤ 255

[Default] n = 0

ESC c 5

Program Example · Panel button command

Page 52 of the Epson RP-U420 user manual — ESC d
Page 52 · click to enlarge
Page 52

E XECUTING COMMAND

ESC d used to print one line and advance the

RP-U420 Print commands ESC d Ver. 1.0 p. 52

Program Example Print Sample

[Notes] I This command sets the print starting position to the beginning of the line.

paper by six lines

[Description] Prints the data in the print buffer and feeds n × 4.23 mm {1/6"}.

BBBBB

AAAAA

[Format] ASCII ESC d n

Hex 1B 64 n

Decimal 27 100 n

PRINT #1, "BBBBB"; CHR$(&H1B);"d";CHR$(6);

C O N F I D E N T I A L

[Name] Print and feed n lines

PRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, "CCCCC"; CHR$(&HA);

[Range] 0 ≤ n ≤ 255

ESC d

Print commands · [Default] None

Page 53 of the Epson RP-U420 user manual — ESC f
Page 53 · click to enlarge
Page 53

S ETTING COMMAND

sources—journal and receipt—for printing. If data is in the print buffer, the print data is printed on both

[Description] Sets the time that the printer waits for validation paper to be inserted and the time from insertion of the

  • t2 specifies time from insertion of the validation paper to the start of printing as [ t2 × 0.1] seconds.

I When the waiting time t1 set by this command has passed, even though the validation paper is not

detected, the printer ends the validation paper waiting state. Then the printer selects both paper

RP-U420 Printing paper commands ESC f Ver. 1.0 p. 53

I Waits for a validation paper to be inserted when the printer recovers from an error.

  • t1 specifies the wait time for validation paper to be inserted as [ t1 × 1] minutes.

[Notes] I The setting values for this command are used for validation paper insertion.

  • When t1 is set to 0, the printer waits until validation paper is inserted.

PRINT #1, CHR$(&H1B);"c0";CHR$(4); ← Select paper type

validation paper to the start of printing.

[Format] ASCII ESC f t1 t2

Hex 1B 66 t1 t2

Decimal 27 102 t1 t2

[Name] Set validation paper waiting time

journal and receipt paper.

C O N F I D E N T I A L

[Default] t1 = 0, t2 = 10

[Range] 0 ≤ t1 ≤ 15 0 ≤ t2 ≤ 64

ESC f

Program Example · PRINT #1, CHR$(&H1B);"f";CHR$(15);CHR$(20); · Printing paper commands

Page 54 of the Epson RP-U420 user manual — ESC o
Page 54 · click to enlarge
Page 54

E XECUTING COMMAND

RP-U420 Mechanism control commands ESC o Ver. 1.0 p. 54

Program Example Print Sample

PRINT #1," AAAAA";CHR$(&HA); YOUR RECEIPT

[Notes] I This command is enabled only when processed at the beginning of a line.

I If a receipt is not selected as the paper source, this command is ignored.

AAAAA

[Description] Executes a stamp operation on the receipt.

PRINT #1,CHR$(&H1B);"c0";CHR$(2); ← Select paper type

Hex 1B 6F Decimal 27 111

C O N F I D E N T I A L

[Format] ASCII ESC o

PRINT #1,CHR$(&H1B);"o"; ← Stamp

ESC o

Show 7 more labels / short text on this page
Thank you · Call again · Mechanism control commands · PRINT #1,CHR$(&H1B);"d";CHR$(13); · [Name] Stamp · [Range] None · [Default] None
Page 55 of the Epson RP-U420 user manual — ESC p
Page 55 · click to enlarge
Page 55

E XECUTING COMMAND

RP-U420 Miscellaneous commands ESC p Ver. 1.0 p. 55

[Description] Outputs the pulse specified by t1 and t2 to connector pin m as follows:

[Notes] I The pulse ON time is [t1 × 2] ms, and the OFF time is [t2 × 2] ms.

I When t2 < t1, the printer processes t1 × 2 ms as the OFF time.

[Format] ASCII ESC p m t1 t2

Hex 1B 70 m t1 t2

Decimal 27 112 m t1 t2

0, 48 Drawer kick-out connector pin 2

1, 49 Drawer kick-out connector pin 5

C O N F I D E N T I A L

[Range] m = 0, 1, 48, 49

0 ≤ t1 ≤ 255 0 ≤ t2 ≤ 255

ESC p

Show 6 more labels / short text on this page
Program Example · PRINT #1, CHR$(&H1B);"p";CHR$(0);CHR$(25);CHR$(250); · Miscellaneous commands · m Function · [Name] Generate pulse · [Default] None
Page 56 of the Epson RP-U420 user manual — ESC t
Page 56 · click to enlarge
Page 56

S ETTING COMMAND

RP-U420 Character commands ESC t Ver. 1.0 p. 56

[Description] Selects a page n from the character code table.

0 PC437 (U.S.A., Standard Europe)

[Range] 0 ≤ n ≤ 5, 16 ≤ n ≤ 19, 254 ≤ n ≤ 255

[Format] ASCII ESC t n

Hex 1B 74 n

Decimal 27 116 n

n Character Code Table

See character code tables.

[Name] Select character code table

C O N F I D E N T I A L

18 PC852 (Latin 2)

254 PC857 (Latin 5)

16 WPC1252

[Default] n = 0

ESC t

Show 9 more labels / short text on this page
Character commands · 4 PC863 (Canadian-French) · 2 PC850 (Multilingual) · 3 PC860 (Portuguese) · 17 PC866 (Cyrillic2) · 5 PC865 (Nordic) · 19 PC858 (Euro) · 255 Space page · 1 Katakana
Page 57 of the Epson RP-U420 user manual — RETURN
Page 57 · click to enlarge
Page 57

RP-U420 Character commands ESC t Ver. 1.0 p. 57

Program Example Print Sample

Epson RP-U420 — Commands diagram (page 57)
Fig. 14 · Commands

PRINT #1, CHR$(&H1B);"t";CHR$(0); ← Select page 0

PRINT #1, CHR$(&H1B);"t";CHR$(1); ← Select page 1

C O N F I D E N T I A L

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&HA);

FOR i=&H20 TO &H7F

FOR i=&H80 TO &HFF

printing:

RETURN

END

Show 8 more labels / short text on this page
Page 0 · Page 1 · PRINT #1, CHR$(i); · PRINT #1, CHR$(i); · GOSUB printing · GOSUB printing · NEXT i · NEXT i
Page 58 of the Epson RP-U420 user manual — ESC z
Page 58 · click to enlarge
Page 58

S ETTING COMMAND

[Description] Turns parallel printing mode for receipt and journal on or off. When parallel printing mode is turned on, the

I When the parallel printing mode is turned off, the printing area can be developed for receipt and journal.

The first column in the print buffer is printed on the receipt. The print starting position moves to the first

I This command affects printing only when both print sources—journal and receipt—are selected for

RP-U420 Character commands ESC z Ver. 1.0 p. 58

(The data that causes the buffer full is printed on the first column of the journal)

  • When the Least Significant Bit (LSB) of n is 0, turns off parallel printing mode
  • When buffer full is processed at the end of the printing area on the receipt

I This command is enabled only when input at the beginning of a line.

printer prints the same data on both receipt and journal paper.

  • When the LSB of n is 1, turns on parallel printing mode

[Name] Turn parallel printing mode on/off for receipt and journal

n = 0 (when DIP switch 1-8 is OFF: standard mode)

[Default] n = 1 (when DIP switch 1-8 is ON: Taiwan mode)

column of the journal in the following case.

[Notes] I Only the lowest bit of n is enabled.

[Format] ASCII ESC z n

Hex 1B 7A n

Decimal 27 122 n

  • When RS is executed

C O N F I D E N T I A L

printing.

[Range] 0 ≤ n ≤ 255

ESC z

Character commands

Page 59 of the Epson RP-U420 user manual — PRINT #1, "BBBBBBBBBBBBBBBBBBBB";CHR$(&HA);
Page 59 · click to enlarge
Page 59

RP-U420 Character commands ESC z Ver. 1.0 p. 59

Print Sample <Receipt> Print Sample <Journal>

CCCCCCCCCCCCCCCCCCCCDDDDDDDDDD CCCCCCCCCCCCCCCCCCCCDDDDDDDDDD

PRINT #1, CHR$(&H1B);"c0";CHR$(3); ←Select paper types (receipt and journal)

AAAAAAAAAAAAAAAAAAAABBBBBBBBBB BBBBBBBBBB

DDDDDDDDDD DDDDDDDDDD

PRINT #1, CHR$(&H1B);"z";CHR$(1); ←Turn on parallel printing mode

PRINT #1, "BBBBBBBBBBBBBBBBBBBB";CHR$(&HA);

PRINT #1, "DDDDDDDDDDDDDDDDDDDD";CHR$(&HA);

C O N F I D E N T I A L

PRINT #1, "AAAAAAAAAAAAAAAAAAAA";

PRINT #1, "CCCCCCCCCCCCCCCCCCCC";

Program Example

Page 60 of the Epson RP-U420 user manual — FS &
Page 60 · click to enlarge
Page 60

S ETTING COMMAND

processes 1-byte character, which has the same code as the first byte and the second byte if the code is for

[Notes] I When the Kanji character mode is selected, the printer checks whether the code is for Kanji or not, then

character printing. If the printer processes a Kanji code that is not supported, the printer prints a space

I The printer supports the subset of the Big5 code system (Chinese font: 13053 characters) for Kanji

RP-U420 Kanji commands FS & Ver. 1.0 p. 60

Program Example Print Sample

  • Kanji character mode is canceled when DIP switch 1-8 is OFF (standard mode).
  • Kanji character mode is selected when DIP switch 1-8 is ON (Taiwan mode).

I Kanji character mode should be selected when the power is turned on.

PRINT #1, CHR$(&H1C);”C”;CHR$(0); ←Select JIS code system

PRINT #1, CHR$(&H1C);”&”; ←Specify Kanji mode

[Description] Selects Kanji character mode.

[Name] Select Kanji character mode

PRINT #1, CHR$(&H3B);CHR$(&H7A); CHR$(&HA);

Hex 1C 26 Decimal 28 38

C O N F I D E N T I A L

[Format] ASCII FS &

PRINT #1, CHR$(&H34);CHR$(&H41);

character.

Kanji.

FS &

Kanji commands

Page 61 of the Epson RP-U420 user manual — PRINT #1, CHR$(&H34);CHR$(&H41);
Page 61 · click to enlarge
Page 61

S ETTING COMMAND

[Notes] I When the Kanji character mode is not selected, all character codes are processed one byte at a time as

I Kanji character mode is initialized to default when the power is turned on, when ESC @ is executed.

RP-U420 Kanji commands FS . Ver. 1.0 p. 61

Program Example Print Sample

  • Kanji character mode is canceled when DIP switch 1-8 is OFF (standard mode).
  • Kanji character mode is selected when DIP switch 1-8 is ON (Taiwan mode).

PRINT #1, CHR$(&H1C);”C”;CHR$(0); ←Select JIS code system

PRINT #1, CHR$(&H1C);”&”; ←Specify Kanji mode

PRINT #1, CHR$(&H1C);”.”; ←Cancel Kanji mode

[Description] Cancels Kanji character mode.

[Name] Cancel Kanji character mode

Hex 1C 2E Decimal 28 46

C O N F I D E N T I A L

[Format] ASCII FS .

PRINT #1, CHR$(&H3B);CHR$(&H7A); CHR$(&HA);

ASCII code.

PRINT #1, CHR$(&H34);CHR$(&H41);

PRINT #1, “kanji”; CHR$(&HA);

FS .

Kanji commands

Page 62 of the Epson RP-U420 user manual — GS I
Page 62 · click to enlarge
Page 62

E XECUTING COMMAND

RP-U420 Miscellaneous commands GS I Ver. 1.0 p. 62

69 Supporting Kanji type H, “TAIWAN BIG5 ”, H

2, 50 Type ID See the table on the next page.

Example<5F>H, “2.00”, <00>H

3, 51 Firmware version ID Depends on firmware version.

65 Firmware version Depends on firmware version.

67 Model name H, “RP-U420”, H

66 Manufacturer H, “EPSON”, H

[Description] Transmits the printer ID specified by n as follows:

Example<02>H

n Printer ID Contents

[Range] 1 ≤ n ≤ 3, 49 ≤ n ≤ 51, 65 ≤ n ≤ 67, n = 69

1, 49 Model ID H

[Format] ASCII GS I n

Hex 1D 49 n

Decimal 29 73 n

C O N F I D E N T I A L

[Name] Transmit printer ID

GS I

Miscellaneous commands · [Default] None

Page 63 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 63 · click to enlarge
Page 63

[Notes] I The printer transmits the status after confirming the host is ready to receive data. If the host computer is

I When the parameter (65 ≤ n ≤ 67) or (n = 69) is specified, the printer transmits following data string.

I When the parameter (1 ≤ n ≤ 3) or (49 ≤ n ≤ 51) is specified, the printer transmits one byte code.

RP-U420 Miscellaneous commands GS I Ver. 1.0 p. 63

not ready to receive data, the printer waits until the host becomes ready.

0 On 01 1 Two-byte character code supported.

1 Off 00 0 Manual cutter installed.

4 Off 00 0 Not used. Fixed to Off

7 Off 00 0 Not used. Fixed to Off

On 02 2 Autocutter installed.

PRINT #1, CHR$(&H1D);"I";CHR$(1);← Transmits printer ID

(2) Printer information (multiple bytes)

Bit Off/On Hex Decimal Function

2 Off 00 0 Reserved

3 Off 00 0 Reserved

5 Off 00 0 Reserved

6 Off 00 0 Reserved

C O N F I D E N T I A L

n = 2Type ID

Program Example · (3) Terminator (H) · (1) Header (H)

Page 64 of the Epson RP-U420 user manual — GS V
Page 64 · click to enlarge
Page 64

E XECUTING COMMAND

receipt paper to the preprint black mark position, then

If both receipt and journal are selected as the printing

receipt paper to the preprint black mark position, then

If both receipt and journal are selected as the printing

sheets, journal paper is also fed to the preprint black

sheets, journal paper is also fed to the preprint black

then cut (one point left uncut). If only receipt is selected as the printing sheet, feed

then cut (three points left uncut). If on ly receipt is selected as the printing sheet, feed

  • When DIP switch 1-7 is OFF (autocutter installed), m specifies the paper cutting operation as follows:

RP-U420 Mechanism control commands GS V Ver. 1.0 p. 64

cut (three points left uncut).

2, 50 Cut (three points left uncut) Cut (three points left uncut)

0, 48, 1, 49 Cut (one point left uncut) Cut (one point left uncut)

cut (one point left uncut).

Standard Mode Taiwan Mode

mark position.

mark position.

➁ ASCII GS V m n

Hex 1D 56 m n

Decimal 29 86 m n

65, 66 Feed receipt paper ((8 + n) × 4.23 mm),

67 Feed receipt paper ((8 + n) × 4.23 mm),

[Format] ➀ ASCII GS V m

Hex 1D 56 m

Decimal 29 86 m

[Name] Feed paper to the cutting position and cut it

➁65 ≤ m ≤ 67, 0 ≤ n ≤ 255

[Range] ➀0 ≤ m ≤ 2, 48 ≤ m ≤ 50

C O N F I D E N T I A L

[Description] Cuts a receipt.

GS V

Show 4 more labels / short text on this page
Printer Operation Mode · Mechanism control commands · [Default] None · m
Page 65 of the Epson RP-U420 user manual — PRINT #1, " AAAAA"; CHR$(&HA);
Page 65 · click to enlarge
Page 65

I For autocutter installed model, (8 × 4.23) mm is the optimal paper feed amount for cutting just under the

I For manual cutter installed model, (10 × 4.23) mm is the optimal paper feed amount for cutting just under

If both receipt and journal are selected as the printing sheets, journal

If both receipt and journal are selected as the printing sheets, journal

  • When DIP switch 1-7 is ON (manual cutter installed), m specifies the paper cutting operation as follows:

((10 + n) × 4.23 mm). Only feed receipt paper to the preprint black mark position.

((10 + n) × 4.23 mm). Only feed receipt paper to the preprint black mark position.

RP-U420 Mechanism control commands GS V Ver. 1.0 p. 65

PRINT #1, CHR$(&H1D);"V";CHR$(66);CHR$(0); ← Feed paper and cut Paper fed to the cutting position and

paper is also fed to the preprint black mark position.

paper is also fed to the preprint black mark position.

I This command is ignored when receipt is not selected as the printing sheet by ESC c 0.

partial cut (one point left uncut) performed

Program Example Print Sample

[Notes] I This command is effective only when processed at the beginning of a line.

AAAAA

  • n specifies the paper feeding amount before cutting a paper.

Standard Mode Taiwan Mode

0, 48, 1, 49 No operation No operation

2, 50 No operation No operation

[Notes for ➁] I In Taiwan mode, parameter n has no meaning.

65, 66 Only feed receipt paper

67 Only feed receipt paper

PRINT #1, CHR$(&H1B);"c0";CHR$(2); ← Select paper type

C O N F I D E N T I A L

the last printed line.

last printed line.

PRINT #1, " AAAAA"; CHR$(&HA);

Printer Operation Mode · m

Page 66 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 66 · click to enlarge
Page 66

RP-U420 Mechanism control commands GS V Ver. 1.0 p. 66

C O N F I D E N T I A L

Page 67 of the Epson RP-U420 user manual — GS r
Page 67 · click to enlarge
Page 67

E XECUTING COMMAND

[Notes] I The printer transmits the status after confirming the host is ready to receive data. If the host computer is

RP-U420 Status commands GS r Ver. 1.0 p. 67

On 01 1 Journal paper near-end sensor: paper near end

On 02 2 Receipt paper near-end sensor: paper near end

0 Off 00 0 Journal paper near-end sensor: paper present

1 Off 00 0 Receipt paper near-end sensor: paper present

not ready to receive data, the printer waits until the host becomes ready.

I The status types to be transmitted are shown below:

2, 50 Transmits drawer kick-out connector status

Bit Off/On Hex Decimal Function

2, 3 Off 00 0 Reserved

[Description] Transmits the status specified by n, as follows:

4 Off 00 0 Fixed

1, 49 Transmits paper sensor status

Paper sensor status (n = 1, 49)

[Format] ASCII GS r n

Hex 1D 72 n

Decimal 29 114 n

C O N F I D E N T I A L

[Range] n = 1, 2, 49, 50

GS r

Show 4 more labels / short text on this page
Status commands · n Function · [Name] Transmit status · [Default] None
Page 68 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 68 · click to enlarge
Page 68

RP-U420 Status commands GS r Ver. 1.0 p. 68

On 01 1 Drawer kick-out connector pin 3 is HIGH

0 Off 00 0 Drawer kick-out connector pin 3 is LOW

On 20 32 Validation sensorpaper not present

5 Off 00 0 Validation sensor: paper present

Program Example for all printers

PRINT #1, CHR$(&H1D);"r";CHR$(1); ← Transmits paper sensor status

Bit Off/On Hex Decimal Function

Bit Off/On Hex Decimal Function

6 Off 00 0 Reserved

Drawer kick-out connector status (n = 2, 50)

1,2,3 Off 00 0 Reserved

5,6 Off 00 0 Reserved

7 Off 00 0 Fixed

4 Off 00 0 Fixed

7 Off 00 0 Fixed

C O N F I D E N T I A L

Page 69 of the Epson RP-U420 user manual — DLE EOT
Page 69 · click to enlarge
Page 69

E XECUTING COMMAND

Bit 6: Even if panel switch is disabled by ESC c 5, bit6 becomes “On” during one of panel switch is pressed.

[Description] Transmits the selected printer status specified by n in real-time, according to the following parameters:

RP-U420 Status commands DLE EOT Ver. 1.0 p. 69

2 Off 00 0 Drawer open/close signal is LOW (connector pin 3).

On 04 4 Drawer open/close signal is HIGH (connector pin 3).

On 40 64 One of panel switch is pressed.

6 Off 00 0 No panel switch is pressed.

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

4 On 10 16 Not used. Fixed to On.

5 Off 00 0 Reserved. Fixed to Off.

7 Off 00 0 Not used. Fixed to Off.

n = 4Transmit paper roll sensor status

Bit Off/On Hex Decimal Function

3 Off 00 0 Online.

On 08 8 Offline.

n = 6Transmit validation status
n = 1Transmit printer status
n = 2Transmit offline status

[Format] ASCII DLE EOT n

Hex 10 04 n

Decimal 16 4 n

n = 3Transmit error status

[Name] Real-time status transmission

C O N F I D E N T I A L

  • n = 1: Printer status

[Range] 1 ≤ n ≤ 4, 6

DLE EOT

Status commands · [Default] None

Page 70 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 70 · click to enlarge
Page 70

RP-U420 Status commands DLE EOT Ver. 1.0 p. 70

3 Off 00 0 Paper is not being fed by using the FEED button.

On 20 32 Printing is being stopped due to paper end.

On 08 8 Paper is being fed by the FEED button.

On 40 64 Print head temperature error occurs.

6 Off 00 0 No print head temperature error.

On 20 32 Unrecoverable error occurs.

On 80 128 Mark sensor error occurs.

On 04 4 Mechanical error occurs.

On 08 8 Autocutter error occurs.

5 Off 00 0 No unrecoverable error.

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

4 On 10 16 Not used. Fixed to On.

7 Off 00 0 Not used. Fixed to Off.

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

4 On 10 16 Not used. Fixed to On.

7 Off 00 0 No mark sensor error.

2 Off 00 0 No mechanical error.

3 Off 00 0 No autocutter error.

5 Off 00 0 No paper end stop.

2 Off 00 0 Cover is closed.

On 04 4 Cover is open.

On 40 64 Error occurs.

Bit Off/On Hex Decimal Function

6 Off 00 0 No error.

Bit Off/On Hex Decimal Function

C O N F I D E N T I A L

  • n = 2: Offline status
  • n = 3: Error status
Page 71 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 71 · click to enlarge
Page 71

Bit 7: When serial interface model and 7 bit data word length selected, this bit can not be transferred to

Bit 2: This bit becomes “On” when home position detecting error or main motor lock-up error is occurs.

RP-U420 Status commands DLE EOT Ver. 1.0 p. 71

5 Off 00 0 Journal mark sensor does not detect black mark.

6 Off 00 0 Receipt mark sensor does not detect black mark.

On 20 32 Journal mark sensor is detecting black mark.

On 40 64 Receipt mark sensor is detecting black mark.

On 04 4 Journal paper roll near end is detected.

On 08 8 Receipt paper roll near end is detected.

2 Off 00 0 Journal paper roll is not near end.

3 Off 00 0 Receipt paper roll is not near end.

the host. Bit 7 is different from the ESC/POS Specification.

Bits 5 and 6 are different from the ESC/POS Specification.

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

4 On 10 16 Not used. Fixed to On.

7 Off 00 0 Not used. Fixed to Off.

Bit Off/On Hex Decimal Function

  • n = 4: Paper roll sensor status

C O N F I D E N T I A L

Page 72 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 72 · click to enlarge
Page 72

I Even though the printer is not selected using ESC = (select peripheral device), this command is effective.

I This command should not be used within the data sequence of another command that consists of 2 or

If you attempt to transmit ESC ! n to the printer, but DTR (DSR for the host computer) goes to MARK

before n is transmitted and then DLE EOT 3 interrupts before n is received, the code H for

I The printer transmits the status without confirming whether the host computer can receive data.

RP-U420 Status commands DLE EOT Ver. 1.0 p. 72

I The printer transmits the current status. Each status is represented by one-byte data.

[Notes] I The status is transmitted whenever the data sequence of H H

On 08 8 Within validation insertion waiting state.

5 Off 00 0 Validation sensor does not detect paper.

3 Off 00 0 Not validation insertion waiting state.

On 20 32 Validation sensor is detecting paper.

In ESC * m nL nH d1...dk, d1=H, d2=H, d3=H

DLE EOT 3 is processed as the code for ESC ! H.

2 Off 00 0 Validation is not selected.

I The printer executes this command upon receiving it.

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

On 04 4 Validation is selected.

4 On 10 16 Not used. Fixed to On.

6 Off 00 0 Reserved. Fixed to Off.

7 Off 00 0 Not used. Fixed to Off.

Bit Off/On Hex Decimal Function

(1 ≤ n ≤ 4 or 6) is received.

  • n = 6: Validation status

C O N F I D E N T I A L

more bytes.

Example:

Example:

Page 73 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 73 · click to enlarge
Page 73

I With a serial interface model, this command is executed even when the printer is offline, the receive buffer

I With a parallel interface model, the printer cannot receive data when it is busy; therefore this command

RP-U420 Status commands DLE EOT Ver. 1.0 p. 73

  • When DIP Switch 1-6 is Off: receive buffer-full, offline, error status.

PRINT #1, CHR$(&H10);CHR$(&H4);CHR$(2); ← Transmits offline status

  • When DIP Switch 1-6 is On: receive buffer-full.

cannot be used under the following conditions.

is full, or there is an error status.

C O N F I D E N T I A L

Program Example

Page 74 of the Epson RP-U420 user manual — DLE ENQ
Page 74 · click to enlarge
Page 74

E XECUTING COMMAND

If you attempt to transmit ESC ! n to the printer, but DLE ENQ 3 interrupts before n is received, the

[Description] Responds to a request from the host specified by n. The operations performed depend on the value of n, as

I With a parallel interface model, the printer cannot receive data when it is busy; therefore this command

I This command should not be used within the data sequence of another command that consists of two or

I This command is executed any time the data sequence HH (1 ≤ n ≤ 3) is received, even if it

I With a serial interface model, this command is executed even in the offline, receive buffer-full, or error

n = 1: Recover from an error and restart printing from the line where the error occurred.

RP-U420 Miscellaneous commands DLE ENQ Ver. 1.0 p. 74

code H for DLE ENQ 3 is processed as the code for ESC ! H.

n = 2: Clear the receive and print buffers and recover from an error.

  • When DIP Switch 1-6 is Off: receive buffer-full, offline, error states.

[Notes] I The printer executes this command upon receiving this command.

In ESC * m nL nH d1 ... dk, d1=H, d2=H, d3=

  • When DIP Switch 1-6 is On: receive buffer-full.

cannot be used under the following conditions.

n = 3: Cancel waiting for validation.

appears as part of another command.

[Format] ASCII DLE ENQ n

Hex 10 05 n

Decimal 16 5 n

[Name] Real-time request to printer

C O N F I D E N T I A L

more bytes.

states.

[Range] 1 ≤ n ≤ 3

follows:

DLE ENQ

Show 4 more labels / short text on this page
Miscellaneous commands · <Example> · <Example> · [Default] None
Page 75 of the Epson RP-U420 user manual — PRINT #1, CHR$(&H10);CHR$(&H5);CHR$(2);
Page 75 · click to enlarge
Page 75

I The printer selects both receipt and journal as the print sheet after recovering from an error by using DLE

I DLE ENQ 2 enables the printer to recover from an error after clearing the data in the receive and print

I When the cut sheet waiting state is canceled by DEL ENQ 3, the data in the receive and print buffers is

error occurred. Using DLE ENQ 2 and ESC @, the printer can be completely initialized. DLE ENQ 2 is

buffers. The printer retains the settings (from ESC!, ESC R, for example) that were in effect when the

ignored in other states. After the printer is released from the cut sheet waiting state, both receipt and

I DLE ENQ 3 is available only when the printer is waiting for the insertion of validation paper and is

This command is available only for recoverable errors other than a print head temperature error.

RP-U420 Miscellaneous commands DLE ENQ Ver. 1.0 p. 75

I DLE ENQ 1 and DLE ENQ 2 are enabled, even if the printer is canceled by ESC =.

available only for recoverable errors other than a print head temperature error.

I DLE ENQ 1 restarts printing from the line where the error occurred.

journal are selected as the print sheet.

PRINT #1, CHR$(&H10);CHR$(&H5);CHR$(2);

C O N F I D E N T I A L

ENQ 2.

cleared.

Program Example

Page 76 of the Epson RP-U420 user manual — DLE DC4
Page 76 · click to enlarge
Page 76

E XECUTING COMMAND

I With a serial interface model, this command is executed even when the printer is offline, the receive buffer

I With a parallel interface model, the printer cannot receive data when it is busy; therefore this command

I This command is executed any time the data sequence HH is received, even if it

RP-U420 Miscellaneous commands DLE DC4 Ver. 1.0 p. 76

In ESC * m nL nH d1 ... dk, d1=H, d2=H, d3=,d4=, d5=

  • When DIP Switch 1-6 is Off: receive buffer-full, offline, error status.

I This comand cannot be executed when the unrecoverable error occurs.

  • The pulse ON time is [ t × 100] ms, and the OFF time is [ t × 100] ms.

[Notes] I The printer executes this command upon receiving this command.

[Description] Outputs the pulse specified by t to connector pin m as follows:

  • When DIP Switch 1-6 is On: receive buffer-full.

cannot be used under the following conditions.

[Format] ASCII DLE DC4 n m t

Hex 10 14 n m t

Decimal 16 20 n m t

appears as part of another command.

0 Drawer kick-out connector pin 2

1 Drawer kick-out connector pin 5

is full, or there is an error status.

[Name] Generate pulse at real-time

C O N F I D E N T I A L

0 ≤ m ≤ 1 1 ≤ t ≤ 8

[Range] n = 1

DLE DC4

Show 4 more labels / short text on this page
Miscellaneous commands · <Example> · m Function · [Default] None
Page 77 of the Epson RP-U420 user manual — C O N F I D E N T I A L
Page 77 · click to enlarge
Page 77

I If the printer receives this command during outputting pulse required by ESC p or DLE DC4 to the same

I This command should not be used within the data sequence of another command that consists of two or

If you attempt to transmit ESC ! n to the printer, but DLE DC4 105 interrupts before n is received, the

I If the printer receives this command during outputting pulse required by ESC p or DLE DC4 to another

RP-U420 Miscellaneous commands DLE DC4 Ver. 1.0 p. 77

I This command is enabled even when the printer is not selected by ESC =.

connector pin, this command will be queued and executed afterward.

code H for DLE DC4 is processed as the code for ESC ! H.

connector pin, this command will be ignored.

C O N F I D E N T I A L

more bytes.

Program Example · PRINT #1, CHR$(&H10);CHR$(&H14);CHR$(1)l;CHR$(0);CHR$(5); ·

Ask about the Epson RP-U420

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the Epson RP-U420

Be the first to ask — other owners or our team will answer.

Original document

Epson RP-U420 manual PDF

77 pages·1.1 MB·All in One Printer·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…