Download Print this page

Epson ActionPrinter 5500 - ActionPrinter-5500 Impact Printer Product Support Bulletin

Understanding and using escp/2 commands and syntax
Hide thumbs Also See for ActionPrinter 5500 - ActionPrinter-5500 Impact Printer:

Advertisement

Quick Links

EPSON AMERICA INC.
Product Support Bulletin
Subject:
Understanding and Using
Date: 12/4/91
Page(s): 1 of 14
This bulletin provides detailed explanations and illustrations for some of the more
commonly used printer commands used in ESC/P2 Listed below are the
commands discussed in this bulletin.
Command
ESC X m n1 n2
ESC ( C m1 m2 n1 n1
ESC(vm1 m2 n1 n2
ESC(Vm1 m2 n1 n2
ESCtn
ESC ( t n1 n2 d1 d2 d3
ESC( ^ n1 n2 d
ESCP/2
Command Name
Select Pitch and Point Size
Set Page Length in Defined Units
Set Relative Vertical Position
Set Absolute Vertical Position
Select Character Table
Assign Character Table
...d
Print Data as Characters
1
2
Commands and Syntax
PSB No: P-0082
Originator: JW
PSB Page
2
9
10
14
EPSON
5
6
8

Advertisement

loading

Summary of Contents for Epson ActionPrinter 5500 - ActionPrinter-5500 Impact Printer

  • Page 1 EPSON EPSON AMERICA INC. Product Support Bulletin ESCP/2 Subject: Understanding and Using Commands and Syntax PSB No: P-0082 Date: 12/4/91 Originator: JW Page(s): 1 of 14 This bulletin provides detailed explanations and illustrations for some of the more commonly used printer commands used in ESC/P2 Listed below are the commands discussed in this bulletin.
  • Page 2 PSB No: P-0082 Page: 2 of 14 ESC X m n1 n2 (Select Pitch and Point Size) C X m n1 n2 is the command for selecting pitch and point size where m, n1 and n2 are variables. The variable "m" is used to select the pitch which is the character spacing.
  • Page 3 PSB No: P-0082 Page: 3 of 14 10 INPUT “Point Size”;A$ 20 B=VAL(A$)*2 21 RESTORE 70 22 FOR X=1 TO 16 23 READY 24 IF B=Y THEN GOTO 30 25 NEXT X 26 CLS 27 PRINT A$ ” is not a valid point size choice.” 20 GOTO 10 30 C=VAL(A$) 40 LPRINT CHR$(27);“X”;CHR$(1);CHR$(B);CHR$(0);”These are “;A$;”...
  • Page 4 PSB No: P-0082 Page: 4 of 14 These point characters These are 10 point characters These are 10.5 point characters These are 12 point characters These are point characters These are 16 point characters These are 18 point characters These are 20 point characters These are 21 point characters These are 22 point characters These are 24 point characters...
  • Page 5 PSB No: P-0082 Page: 5 of 14 ESC ( C m1 m2 n1 n2 (Set Page Length in Defined Units ESC ( C m1 m2 n1 n2 is the command for setting the page length in units where ml, m2, n1 and n2 are variables. The “unit’ is usually 1/360 of an inch unless defined otherwise by the “ESC ( U"...
  • Page 6 PSB No: P-0082 Page: 6 of 14 1 ESC ( v m1 m2 n1 n2 (Set Relative Vertical Position ESC (v m1 m2 n1 n2 is the command for advancing the print position vertically in units where m1, m2, n1 and n2 are variables. The "unit" is usually 1/360 of an inch unless defined otherwise by the “ESC ( U"...
  • Page 7 PSB No: P-0082 Page: 7 of 14 EXAMPLE The desired distance is 1/4 inch. 1/4 x 360 = 90 90 divided by 256 = 0 with a remainder of 90. 256-90=166 n1=166 n2=255 In the Basic programming language, the command would look like this. LPRlNT CHR$(27);“(v”;CHR$(2);CHR$(0);CHR$(166);CHR$(255) This command, as listed in the line above, will feed the reverse feed the paper 1/4 inch from the current line.
  • Page 8 PSB No: P-0082 Page: 8 of 14 C (V m1 m2 n1 n2 is the command for changing the print position vertically (with respect to the Top of Form position) in units where m1, m2, n1 and n2 are variables. The "unit”...
  • Page 9 PSB No: P-0082 Page: 9 of ESC t n is the command for selecting a character table to be used for printing where n is a variable. The following table lists the values for n and the character table associated with the value. T a b l e I PC437 (US) Table 1...
  • Page 10 PSB No: P-0082 Page: ESC ( t n1 n2 d1 d2 d3 (Assign Character Table) ESC (t n1 n2 d1 d2 d3 is the command for assigning character tables where n1, n2, d1,d2, and d3 are variables. Currently, variables, n1, n2 and d3 MUST be n1=3, n2=0, and d3=0.
  • Page 11 PSB No: P-0082 11 of 14 Page: page contains a print sample of the Registered Tables available in printers sold in the U.S. In order to print the first 31 characters in Tables 1 through 9, the ESC ( ^ command must be sent.
  • Page 12 PSB No: P-0082 12 of 14 Page: 60 If the Registered Character Table number is not 0, print ASCII values 1 through 255 inclusive. Remember, line 70 allows the first 31 ASCII values to print as characters, not control codes. 90 If the Registered Character Table number is not 0, do not execute commands in lines 100 and 110.
  • Page 13 PSB No: P-0082 Page: 13 of 14 Table 0 I t a l i c ‘#$X& ()*+,- ./0123456789:;c=>?~ABCDEFGHIJKLMNOPQRSTU~YZ~\~n-fabcdefghijklm :}‘!“#$X&‘()*+,-./0123456789:; e=> ?BABCDEFGHI JKLMNOPQRSTUVRXYZ[ \ J ^, >pqrstuvwxyz( nbcdefghijklmnopqrstuvwxyz{,‘}- Table 8 PC863 (Canada-French) D~,+~*~o~~~pRU.4:!!~[g,~tl~t~oA !“#$%C’()*+,-./Or23456789 :;<=*?@ABCDEFGHIJKLMNOP XSTUWXYZ[\]--’ a b c d e f g h i j k l m n o ~rstuvwxyz{I)~~~b~Alt~EBbii~~E~E~~X~iiO~6U~fbOf~‘66”.3-f~~~~~a:.,~~~~~~~~~~)~JJJ~ kt-fttL+nLLrrt+l w raprxCalrr~BQG~B~nnfLIFJ9='..Jn2r Table 9...
  • Page 14 PSB No: P-0082 14 of 14 Page: C ( ^ n1 n2 d ,.. d is the command for printing control codes as data where n1 and n2 are variables and d ...d represent the data that is to be printed as ASCII characters.