This bulletin provides detailed explainations 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 n1Set Page Length in Defined Units
ESC(v m1 m2 n1 n2
ESC(V m1 m2 n1 n2
ESCtn
ESC ( t n1 n2 d1 d2 d3
ESC( A
Understanding and Using
Command Name
Select Pitch and Point Size
Set Relative Vertical Position
Set Absolute Vertical Position
Select Character Table
Assign Character Table
Line 10 -allows you to specify the point size desired.
Line 20
tine 21 -check to ensure that a valid point size was input
Line 30 - computes the value for
Line 40
Line 50
Line60-
NOTE: To hatt the program, hold down the
computes the value for
-
valid, the program jumps to line 30.
program prints a message on the screen and starts over again.
command.
sends the “Set
-
pitch is set for proportional spacing for
character spacing regardless of the point size.)
sends the “Set Relative Vertical Position” command to the printer. This
-
command advances the paper in preparation for printing the next line.
causes the program to start again at the beginning.
Pitch
“nl”
in the ESC X command.
“nl ”
for advancing paper using the ESC ( v
and Point
tf
the point size is not valid, the
Size”
command to the printer. (Note: The
ail
point sizes to ensure proper
“CM
key and press the
tf
the point size is
“c”
key.
These are 8 point characters
These are 10 point characters
These are 10.5 point characters
These are 12 point characters
These are 14 point characters
These are 16 point characters
PSB No: P-0082
Page: 4 of 14
These
These
are 18 point characters
are 20 point characters
These are 21 point characters
These are 22 point characters
These are 24 point characters
These are 26 point characters
These are 28 point characters
These are 30 point characters
These are 32 point characters
PSB No: P-0082
Page: 5 of 14
ESC ( C m1 m2 n1 n2 (Set Page Length in Defined Units
ESC( C ml m2 nl n2 is the command for setting the page length in units where ml,
m2,
nl and n2 are variables. The
othenwise
ml =2 and
To determine the values for n1 and n2 perform the following steps.
EXAMPLE
by the “ESC (
m2=0.
1.
Determine the desired page length in inches.
2
Multiply the page length by 380.
Divide the result by 256 using long division.
3.
4.
The remainder in the quotient from step 3 is the value for n1.
The whole number in the quotient from step 3 is the value for n2.
5.
1.
The page length is 8.5
2
8.5 x 380 = 3060
3.
4.
5.
3080
nl=244
n2=11
divided
l.Y
command. Currently, the values for ml and m2 MUST be
by 258 =11 with
“uniV’
is usually
inches.
l/380
of an inch unless defined
a
remainder of 244.
II
In the Basic programming language, the command would look like this.
This command, as listed in the line above, will set the page length to 8.5 inches.
NOTE: The current line becomes the top of form. This command cancels any
previously set top and bottom margin settings.
margins via software command, the commands must be issued
Length in Defined Units” command. The proper page length setting can be confirmed
by issuing a “Form Feed” command,
control panel while the printer is
chr$(l2),
“Cff Line”.
If
you wish to set the top and bottom
AFTER
or by pressing the “FF button on the
the
“Set
Page
Loading...
+ 11 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.