ملخص المحتوى في الصفحة رقم 1
ESC/POS
RP-U420 Application Programming Guide
ESC/POS
ESC/POS
ESC/POS
CONFIDENTIAL
CLICK HERE for
“About This Manual”
ESC/POS
CLICK HERE for
EPSON
EPSON
“Confidentiality Agreement”
ESC/POS
ESC/POS
ESC/POS
ESC/POS
EXIT
EXIT
EXIT
ESC/POS
ملخص المحتوى في الصفحة رقم 2
ESC/POS ESC/POS RP-U420 Application Programming Guide Version 1.0 Seiko Epson Corporation ESC/POS System Device Division ESC/POS CONFIDENTIAL ESC/POS Notice: The contents of this manual are subject to change without notice EPSON EPSON ESC/POS ESC/POS EPSON and ESC/POS are registered trademarks of Seiko Epson Corporation. ® ™ Acrobat Reader copyright ©1997–1999 Adobe Systems Incorporated. All rights reserved. ESC/POS Adobe and Acrobat are trademarks of Adobe Systems Incorporated. ESC/POS ESC/
ملخص المحتوى في الصفحة رقم 3
ESC/POS CONFID CONFID CONFIDENTIAL Confidentiality EPSON EPSON Agreement ESC/POS BY USING THIS DOCUMENT, YOU AGREE TO ABIDE BY THE TERMS OF THIS AGREEMENT. PLEASE RETURN THIS DOCUMENT IMMEDIATELY IF YOU DO NOT ESC/POS 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 ESC/POS your emplo
ملخص المحتوى في الصفحة رقم 4
CONFIDENTIAL more more Usable application programs and tips USABLE APPLICATION PROGRAMS AND TIPS System Processing 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 actu
ملخص المحتوى في الصفحة رقم 5
CONFIDENTIAL more more Print Sample Receipt Journal Stamp July 6, 2000, 10:30 #12345 ← Date and Time July 6, 2000, 10:30 RP-U420 420 RP-U420 420 PS-170 170 PS-170 170 Item A Item A TOTAL 590 TOTAL 590 PAID 600 CHANGE 10 Item B #12345 ← Cutting position RP-U420 Usable application programs and tips Ver. 1.0 p. 5
ملخص المحتوى في الصفحة رقم 6
CONFIDENTIAL more more System Processing Procedures Procedure Commands used Description 1. Initialization ESC @ Executes initialization. 2. Print date and time ESC c 0, ESC z Prints different data on receipt and journal. RS, LF Jumps to the print position on journal (journal tab). 3. Print Item A ESC z, LF Prints Item A. ESC z a parallel printing for the same data on both receipt and journal. 4. Execute a stamp for ESC c 0, ESC o Executes a stamp for the next receipt. the next rec
ملخص المحتوى في الصفحة رقم 7
CONFIDENTIAL more more Programming Example PRINT #1, CHR$(&H1B);"@"; Initializes the printer ← PRINT #1, CHR$(&H1B);"c0";CHR$(3); Selects a print sheet ← PRINT #1, CHR$(&H1B);"z";CHR$(0); Cancels parallel printing on receipt and journal ← Prints date PRINT #1, “July 6, 2000 10:30”;CHR$(&H1E); and time PRINT #1, “July 6, 2000 10:30 #12345”;CHR$(&HA);CHR$(&HA); PRINT #1, CHR$(&H1B);"z";CHR$(1); Selects parallel printing on receipt and journal ← PRINT #1, "RP-U420 420";CHR$(&HA);
ملخص المحتوى في الصفحة رقم 8
CONFIDENTIAL more more 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 Receipt Predefined logo Stamp 01-01-01 #12345 ← Date and Time RP-U420 420 PS-170 170 Item A TOTAL 590 PAID 600 Item B CHANGE 10 Note: The relationship between the paper cut position and the mark Advertisem
ملخص المحتوى في الصفحة رقم 9
CONFIDENTIAL more more System Processing Procedures Procedure Commands used Description 1. Initialization ESC @ Executes initialization. 2. Print details ESC c 0, ESC z Prints date, slip number, and details on both receipt and journal. ESC d, LF ESC z executes parallel printing of the same data on both receipt and journal. 3. Execute a stamp for ESC d, ESC o Executes a stamp for the next receipt. the next receipt 4. Issue a receipt FF Feeds a receipt to the next black mark positio
ملخص المحتوى في الصفحة رقم 10
CONFIDENTIAL more more Programming Example PRINT #1, CHR$(&H1B);"@"; Initializes the printer ← PRINT #1, CHR$(&H1B);"c0";CHR$(3); Selects a print sheet ← PRINT #1, CHR$(&H1B);"z";CHR$(1); Selects parallel printing on receipt and journal ← PRINT #1, CHR$(&H1B);”d”;CHR$(6); Feeds 6-line ← PRINT #1, “01-01-01 #12345”;CHR$(&HA); Prints details PRINT #1, "RP-U420 420";CHR$(&HA); PRINT #1, "PS-170 170";CHR$(&HA); PRINT #1, "TOTAL 590";CHR$(&HA); PRINT #1, "---------------------------
ملخص المحتوى في الصفحة رقم 11
CONFIDENTIAL more more Tips RP-U420 has a stamp function. ESC o executes a stamp once. When printing a stamp, you need to set line spacing, depending on the position of each mechanism. Positions for print head, stamp, and cutter ← manual cutter ← autocutter 8-line 8-line ← print head ← print head 11-line 11-line stamp stamp (When DIP switch 1-7 is On) (When DIP switch 1-7 is Off) If you want to print characters just below the stamp after executing it, you need to feed 12 lines in
ملخص المحتوى في الصفحة رقم 12
CONFIDENTIAL However, if you do the procedures above at the beginning of a receipt issue transaction, there will be space of about 14 lines above the stamp. As the program examples in this section show, if printing of a stamp for the second receipt is executed during the receipt printing for the first receipt, you can print a receipt without unnecessary spaces. If you use the autocutter, follow the steps below. 1. Print data up to the line so that the rest of the lines to be printed are 5 lin
ملخص المحتوى في الصفحة رقم 13
CONFIDENTIAL more more Definitions DEFINITIONS (1) Normal commands Normal commands are all the commands except real-time commands. The normal commands are stored in the receive buffer temporarily and then processed sequentially. (2) Real-time commands Real-time commands are the commands that consist of a DLE extension (such as DLE EOT or DLE ENQ). The real- time commands execute processing when received. After executing, they are stored in the receive buffer and then discarded as
ملخص المحتوى في الصفحة رقم 14
CONFIDENTIAL (11) Horizontal/vertical direction Horizontal direction is the direction which is perpendicular to the paper feed direction. Vertical direction is the paper feed direction. (12) Baseline The baseline for character sets that are 9 dots high (for example, 7 × 9 and 9 × 9) is the invisible line marking the bottom of the character matrix (the bottom of the lowest dot possible), but for other character sets, the baseline is the bottom of all characters, except that descenders, such as
ملخص المحتوى في الصفحة رقم 15
CONFIDENTIAL more more Character code tables CHARACTER CODE TABLES SP in a table represents space. See Using the character code tables for information on how to read these tables. Page 0 (PC437: U.S.A., Standard Europe) (International character set: U.S.A.) RP-U420 Character code tables Ver. 1.0 p. 15
ملخص المحتوى في الصفحة رقم 16
CONFIDENTIAL more more Page 1 (Katakana) RP-U420 Character code tables Ver. 1.0 p. 16
ملخص المحتوى في الصفحة رقم 17
CONFIDENTIAL more more Page 2 (PC850: Multilingual) RP-U420 Character code tables Ver. 1.0 p. 17
ملخص المحتوى في الصفحة رقم 18
CONFIDENTIAL more more Page 3 (PC860: Portuguese) RP-U420 Character code tables Ver. 1.0 p. 18
ملخص المحتوى في الصفحة رقم 19
CONFIDENTIAL more more Page 4 (PC863: Canadian-French) RP-U420 Character code tables Ver. 1.0 p. 19
ملخص المحتوى في الصفحة رقم 20
CONFIDENTIAL more more Page 5 (PC865: Nordic) RP-U420 Character code tables Ver. 1.0 p. 20