USER DEFINED PATTERNS
In addition to the eight shading patterns and six cross
hatch patterns, users can design their own patterns
(area fill). These user-defined patterns are
downloaded to the printer.
USER DEFINED PATTERN PROGRAM EXAMPLE
WIDTH "LPT1:",255 Prevents Basic from
inserting an unwanted
carriage return after 80
characters are printed.
LPRINT CHR$(27);"E"; Resets the printer.
LPRINT CHR$(27);"*c32G"; Defines a pattern area
fill ID number.
LPRINT CHR$(27);"*c76W"; Gives the number of bytes
used in the pattern.
FOR I = 1 TO 76 Starts a loop of 76
counts.
READ A Reads a data point.
LPRINT CHR$(A); Tells Basic to print the
current byte value.
NEXT I Advances loop one step.
DATA 20,0,1,0,0,16,0,32,,2,88,2,88 This is the header
information for printer.
See the Updated PCL 5
Technical Reference
Manual for further
definition.
DATA 255,255,255,255 Triangles are used for
this example of a
pattern. The numbers are
the decimal equivalents
of information necessary
to create image.
DATA 127,255,255,126 For this example a
pattern of triangles is
used. The numbers are
the decimal equivalents
of information necessary
to create image.
DATA 63,255,255,252 Same as above.
DATA 31,255,255,248 Same as above.
DATA 15,255,255,240 Same as above.
DATA 7,255,255,224 Same as above.
DATA 3,255,255,192 Same as above.
DATA 1,255,255,128 Same as above.
DATA 0,255,255,0 Same as above.
DATA 0,127,254,0 Same as above.
DATA 0,63,252,0 Same as above.
DATA 0,31,248,0 Same as above.
DATA 0,15,240,0 Same as above.
DATA 0,7,224,0 Same as above.
DATA 0,3,192,0 Same as above.
DATA 0,1,128.0 Same as above.
LPRINT CHR$(27);"*c5Q; Makes pattern permanent.
LPRINT CHR$(27);"*c600a600B"; Specifies a 2-Inch high
rectangle.
LPRINT CHR$(27);"*c32G" Specifies User-Defined
Pattern ID number.
LPRINT CHR$(27);"*c4P Fills a rectangle area of
the specified width with
the specified area fill.
LPRINT CHR$(27);"E" Resets printer.
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/lj2049.asc, 3KB, , updated: 1993/11/15 16:24, local time: 2012/2/10 06:49,
38.107.179.233:LOG IN |
| ©2012 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.piclist.com/techref/language/pcl/lj2049.asc"> language pcl lj2049</A> |
| Did you find what you needed? |
|
PIC 16 series Microcontroller Instruction Set Reference. And his Hobby Electronics web site at http://hobby_elec.piclist.com. |
Robotics nuts!Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow! |
.