Re: PCL images and mvEnterprise
- From: "Frank Winans" <fwinans@xxxxxxxxxxxxx>
- Date: Thu, 25 May 2006 03:52:52 GMT
<rsine@xxxxxxxxxxxxxxxxxxx> wrote
I uploaded the hex and used the mvEnterprise XTD function to convert toLook at what happens when that ascii character is a CHAR(255) -- that is a
decimal then CHAR to get the Ascii character. I tried outputting the
data to the printer but got a lot of garbage but nothing remotely
looking like an image. Should I print each character individually or
as a string? Any help is appreciated.
pick SEGMENT MARK if memory serves me, and _bad_things_happen_.
Instead of doing
PRINTER ON
IN.PAIR = '41' ; GOSUB 1000 ;
PRINT CHAR(OUT.BYTE) :
to print the letter "A" {'A' is hex 41}, try just doing
PRINTER ON
DUMMY = OCONV('41','U3f')
Similarly, drawing a rectangular strip
5 inches wide by 30 dots (0.1 inch) tall could be done by
PRINTER ON
ESC = CHAR(27)
PRINT ESC:"*c":5*300:"a30b0P":
or by instead sending the equivalent hex pairs string
PRINTER ON
STR = '1A 2A 63 31 35 30 30 61 33 30 62 30 50' ; * esc:'*c1500a30b0P'
CONVERT " " TO "" IN STR ;* ditch the blanks
DUMMY = OCONV(STR,'U3f')
The U3F user exit isn't needed for THIS simple graphic, but is the safe way to
print when doing arbitrary picture data, since the potential nasty 'ff' byte
exists as a binary segment mark only briefly, inside the user exit U3f
module registers, where it is tolerated nicely. It never gets put into a Basic
string variable as a char(255), hence no problems with Pick getting freaked.
Also, I seem to recall pick used to send out null chars for time delays to help
old printers/terminals work properly, so disable this by doing
TERM ,,,0,0 in USER-COLDSTART before you do STARTPTR or whatever.
Start by printing this demo, and gradually replace it with more complex hunks
of your converted graphics hex stream. You'll want to find a good reference
book on the escape strings honored by laserjets.
If you need more help at this stage, remember you've wandered off-topic for
this Pick forum, so consider asking over in group comp.sys.hp.hardware or
comp.periphs.printer for the more laserjet-intensive advice.
Sorry about this long post, of negligable general interest, guys.
.
- Follow-Ups:
- Re: PCL images and mvEnterprise
- From: rsine
- Re: PCL images and mvEnterprise
- From: Jeff Caspari
- Re: PCL images and mvEnterprise
- References:
- PCL images and mvEnterprise
- From: rsine
- Re: PCL images and mvEnterprise
- From: Ross Ferris
- Re: PCL images and mvEnterprise
- From: rsine
- Re: PCL images and mvEnterprise
- From: Frank Winans
- Re: PCL images and mvEnterprise
- From: rsine
- Re: PCL images and mvEnterprise
- From: Frank Winans
- Re: PCL images and mvEnterprise
- From: rsine
- PCL images and mvEnterprise
- Prev by Date: Re: Compiling outside of UV
- Next by Date: Re: PCL images and mvEnterprise
- Previous by thread: Re: PCL images and mvEnterprise
- Next by thread: Re: PCL images and mvEnterprise
- Index(es):
Relevant Pages
|