Printronix P6000L User's Reference Manual page 78

Line printers
Table of Contents

Advertisement

The program statement is:
ESC K (180)(0)(DATA)
The number of data bytes and the n1, n2 definition must be equal. If too few data bytes are sent,
printing will not begin until sufficient data is received. Any characters following n1 and n2 will
be interpreted and plotted as data until the n1, n2 definition is satisfied.
If excess data is received, only the defined amount will be plotted. Excess data will be inter
preted as printable characters or control codes. The maximum number of data bytes (when us
ing 132 column paper) that can be included in the DATA portion of the program statement
varies according to the operating mode. At 60 dpi, Single Density = 792 bytes; Double Density
= 1584 bytes.
A detailed description of the individual Bit Image control codes with examples is provided in
the Programming chapter.
NOTE: Depending on the host computer system, it may be necessary to include a width
statement within the BASIC program.
The following sample program written in BASIC produces Single Density Bit Image graphics
of the pattern shown in Figure 4-4. The 7 data bit pattern is repeated 40 times. The printed
result of running the program is shown in Figure 4-5.
10 LPRINT "Single Density Bit Image Graphics"
20 LPRINT CHR$(27);"K";CHR$(24);CHR$(1);
30 FOR N=1 TO 40
40 RESTORE
50 FOR I=1 TO 7
60 READ R
70 LPRINT CHR$(R);
80 NEXT I
90 NEXT N
100 DATA 73, 146, 36, 255, 36, 146, 73
110 LPRINT
4-6
Figure 4-5. Sample Single Density Bit Image Graphics
Graphics

Advertisement

Table of Contents
loading

This manual is also suitable for:

P6200l

Table of Contents