Printronix P5000LJ Manuale Di Riferimento
64
Chapter
2
Configuring the PCL-II Emulation with Control Codes
ESC*rA or ESC*r#A
Prepare for raster graphics
(PCL Level III)
(PCL Level III)
ESC*b[
# of bytes] W[binary data]
Raster data transfer (PCL Level I)
ESC*b[
# of raster lines]Y
Move paper # number of raster lines
ESC*rB
Raster graphics complete (PCL Level I)
The ESC*rA or ESC*r#A sequence informs the printer that a raster graphics
dump is to follow the sequence. If value of # is 0 and the printer has received
a partial line of ASCII data before this sequence is received, then the ASCII
data prints with a carriage return and line feed following. If the value of # is 1,
then the graphics will start at the current horizontal position. If no value is
entered for #, then 0 is assumed.
dump is to follow the sequence. If value of # is 0 and the printer has received
a partial line of ASCII data before this sequence is received, then the ASCII
data prints with a carriage return and line feed following. If the value of # is 1,
then the graphics will start at the current horizontal position. If no value is
entered for #, then 0 is assumed.
The ESC*b#W[
binary data] sequence actually sends the raster data to the
printer. This escape sequence must be sent for each raster line to be printed.
The # of bytes parameter is the decimal number of bytes of binary graphics
data to be sent to the printer. The binary data consists of a 1 for every dot to
be printed and a 0 for every blank space.
The # of bytes parameter is the decimal number of bytes of binary graphics
data to be sent to the printer. The binary data consists of a 1 for every dot to
be printed and a 0 for every blank space.
The ESC*b#Y escape sequence allows you to skip multiple adjacent blank
lines. The # of raster lines parameter is the decimal number of blank raster
lines to skip. The size of the blank raster line to be skipped is equivalent to the
currently set vertical raster graphics resolution. The advantage of using this
escape sequence over sending multiple raster data transfer escape
sequences containing blank raster lines is the escape sequence is processed
faster and the paper is moved faster.
lines. The # of raster lines parameter is the decimal number of blank raster
lines to skip. The size of the blank raster line to be skipped is equivalent to the
currently set vertical raster graphics resolution. The advantage of using this
escape sequence over sending multiple raster data transfer escape
sequences containing blank raster lines is the escape sequence is processed
faster and the paper is moved faster.
The ESC*rB sequence informs the printer that all the raster data has been
transferred.
transferred.
The following example illustrates how to send three lines of raster graphics to
the printer.
the printer.
ESC*rAESC*b2WDc
ESC*rA
Prepares printer for raster graphics
ESC*b2W Indicates two bytes of data to follow
D
D
First byte of graphics data
c
Second byte of graphics data
ESC*b2WL@
ESC*b2W Indicates two bytes of data to follow
L
L
First byte of graphics data
@
Second byte of graphics data
ESC*b2W$+ESC*rB
ESC*b2W Indicates two bytes of data to follow
$
$
First byte of graphics data
+
Second byte of graphics data
ESC*rB
Raster graphics complete
Many systems perform an automatic line feed after each line of data. The
system’s automatic line feed must be suppressed or else the raster lines will
not be adjacent to each other. A file equation which specifies the line length
(for example, RESC=-219) may be used to suppress the automatic line feed
along with carriage control directives, such as “+”.
system’s automatic line feed must be suppressed or else the raster lines will
not be adjacent to each other. A file equation which specifies the line length
(for example, RESC=-219) may be used to suppress the automatic line feed
along with carriage control directives, such as “+”.