A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » General Hardware & Peripherals » Printers
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

ESC character and PCL



 
 
Thread Tools Display Modes
  #1  
Old January 23rd 04, 03:59 PM
pbdev
external usenet poster
 
Posts: n/a
Default ESC character and PCL

I am trying to upload 3 fonts to a HP Laserjet 4100 and continue to
have problems. I am using a .bat file to load the fonts. The problem
I believe is that the printer is not reading the ESC character I have
in my pcl files.

I understand that 27 = ESC I was using (Cntl [ |) but that didnt
work. Then I had a pcl file with ESC characters already in it - so I
copied the ESC character and used it in my pcl files. That worked
once and now it wont work again. I have turned the printer off and
unplugged it.

I believe the problem with my file is that the printer is not
recognizing my ESC character. How do you insert an ESC character into
a .pcl file? I am using the following code below.

echo downloading Ar080bpn.sfp Softfont
copy /b font9.pcl lpt1: -- code *c9D
copy /b Ar080bpn.sfp lpt1:
copy /b perm.pcl lpt1: -- code *c5F

echo downloading Co060rpn Softfont
copy /b font10.pcl lpt1: -- code *c10D
copy /b Co060rpn.sfp lpt1:
copy /b perm.pcl lpt1: -- code *c5F

echo downloading He120bpn.sfp Softfont
copy /b font11.pcl lpt1: -- code *c11D
copy /b He120bpn.sfp lpt1:
copy /b perm.pcl lpt1: -- code *c5F

echo All Forms Downloaded

Thanks
  #5  
Old January 28th 04, 08:39 PM
pbdev
external usenet poster
 
Posts: n/a
Default

Thanks for the replys,

OS - operating system was the problem.

I was working on an XP PRO system - Did not work no matter what.

I tried it on an WinNT 4.0 box and wha-la. It worked and worked
consistenly and multiple times. I dont have to be concerned with the
XP box and since it works on an WinNT box - Problem solved.

If you find a solution for the XP box, I will give you 10 Points

Thanks again for all your help.


(Alan) wrote in message . com...
(pbdev) wrote in message . com...
I am trying to upload 3 fonts to a HP Laserjet 4100 and continue to
have problems. I am using a .bat file to load the fonts. The problem
I believe is that the printer is not reading the ESC character I have
in my pcl files.


I found this way: a tiny file called esc.com that outputs an escape
character.
Here it is encoded as I found it:

======
esc.com: sends an ESC (char 27) to std output, followed by its
arguments.
Useful for making PCL print commands.

Use ESC % 1 B prn or ESC %0B prn.
In Bat files one has to double percent signs (like ESC %% 1B prn)

section 1 of uuencode 4.02 of file esc.com by R.E.M.

begin 644 esc.com
ILANT`LTA,F*#H``XQJ^@0#\LR"L/")U`X#S(#C8=`PK0"S2'B[,/B4
``
end
sum -r/size 63004/84 section (from "begin" to "end")
sum -r/size 41677/41 entire input file
=====end

-- copy the text between the == lines, save to a file "esc.uu" then
decode -- Aladdin Expander works, probably Winzip. It should create
"esc.com".

Now you can use this to make batch files to send PCL.
Eg: to send the PCL
ESC&l1057.32259J
to the printer, use the single-line batch:

esc.com &l1057.32259Jprn

  #6  
Old January 28th 04, 08:40 PM
pbdev
external usenet poster
 
Posts: n/a
Default

OS - operating system was the problem.

I was working on an XP PRO system - Did not work no matter what.

I tried it on an WinNT 4.0 box and wha-la. It worked and worked
consistenly and multiple times. I dont have to be concerned with the
XP box and since it works on an WinNT box - Problem solved.

If you find a solution for the XP box, I will give you 10 Points

Thanks again for all your help.

Dick Wisan wrote in message ...
pbdev says...

I got some feedback from an HP rep. and he indicated that I use the
DOS editor to create the ESC character. Does anyone know about how to
do this?


It's easy if your DOS editor has a "literal" character. WordStar-ish
editors like the Borland programming editors use ^P that way. So,
^P followed by an Esc leaves just an Esc char in the file. Various
editors, for example, Eric Meyer's VDE.COM cab do this. So can the old
EDIT.COM editor that came with DOS.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:14 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.