USING THE CHARACTER PLOT ( CP ) COMMAND
The Character Plot ( CP ) command specifies the number
of spaces and lines from the current pen location that
characters will be plotted. For more information see
the PCL 5 Printer Language Technical Reference Manual.
The syntax for this command is as follows:
CP spaces,lines; or CP;
PARAMETERS:
Spaces Specifies the number of
spaces the pen moves
relative to the current
pen location. The space
width is uniquely defined
for each font.
Lines Specifies the number of
lines the pen moves
relative to the current
pen location. The Line
Feed distance is uniquely
defined for each font.
PROGRAM:
LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT.
EcE Resets the printer.
Ec%0B Enters HP-GL/2 mode.
IN; Initializes HP-GL/2 mode.
SP1; Selects pen number 1,
(black). Even though
there is no physical pen,
the SP command must be
used to enable printing.
PA5000,2500;PD1500,2500;PU; Specifies absolute
plotting and moves to
(5000,2500); puts the pen
down to draw a line to
(1500,2500); puts the pen
up.
CP5,.35; Moves the pen 5 spaces to
the right and .35 lines
up so the label is placed
just above the line.
DT$,1; Defines the label
terminator ($) and
specifies that it does
not print with the "1"
parameter.
SD1,21,2,1,4,14,5,0,6,3,7,
4148;SS; Specifies a 14 point
Universe Bold font with
the Standard Font
Definition ( SD )
command; selects it for
printing with the Select
Standard font ( SS )
command.
LBABOVE THE LINE$; Prints the first line of
text.
PA2500,2500;WG20,0,360; Moves the pen to
(2500,2500) and draws a
dot marking the new
carriage return point
(360 degrees black-filled
wedge with a diameter of
20 plotter units (plu)).
CP0,-.95;LBBELOW THE
LINE CR-LF WITH A NEAT$; Prints the second line of
text. The CR-LF stands
for a Carriage Return-
Line Feed, and is
produced in DOS EDIT by
pressing the ENTER key.
CP;LBMARGIN$; Prints the fourth line.
Notice how the CP command
without parameters
functions as a CR-LF.
Ec%0A Enters the PCL mode.
EcE Sends a reset to end the
job and eject the page.
Copyright Hewlett-Packard Co. 1993
The information contained herein is subject to change
without notice.
Hewlett-Packard shall not be liable for incidental or
consequential damages in connection with the use of this
material.
file: /Techref/language/pcl/lj2014.asc, 4KB, , updated: 1993/11/15 17:22, local time: 2025/5/3 16:52,
|
| ©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.linistepper.com/Techref/language/pcl/lj2014.asc"> language pcl lj2014</A> |
Did you find what you needed?
|