Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Life is getting harder with PRINTING!!
Message
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00708279
Message ID:
00709721
Views:
16
Looking for an Escape Sequence to turn the Old Times back on!, I found this article about CCL600 InkJet on the Internet. I tested it with Stylus 2000 InkJet, but I could not figure out how to set SYS=AUTO in the printer itself. So, it didn't work.
I am assuming the problem with newer InkJets are that they don't recognize PCL5 Escape Codes or don't support it. Here's the article;
----------------------------------------------------------------------
Auto language detection is not working

A. The CCL600 will only autodetect two specific formats: 1). PostScript
and 2). PCL5 that is generated by applications that are using an HP
LaserJet III driver. The printer does not autodetect HPGL/2 or ASCII
text. It can print these formats, but an escape code sequence needs to
be sent to the printer first to perform the switch.

1. To switch to PCL5, the following escape codes need to be sent to
the printer:

HEX: 1B 25 30 41 1B 45 or ASCII: Esc % 0 A Esc E

Note: Esc represents the escape character. Spaces are shown for
clarity only (i.e., not part of the escape sequence).

a. If printing from DOS, a file containing the escape sequence
may be sent out to the printer first. (e.g., create a file
with the above escape sequences, call it trailer.hp2 and
then at the DOS prompt type: COPY TRAILER.HP2 LPT1:/b ).
Then print out the documents, or press Shift-Print Screen
to send a screen dump to the printer.

b. Note that if a full page is not sent to the printer, the
form feed light will stay on and the last page will not
automatically come out. To remedy this, output the same
escape code sequence file a second time

(e.g., COPY TRAILER.HP2+document+TRAILER.HP2 LPT1:/b ).

c. A more effective approach for printing files, is to create
a batch file to perform the operation.

i. For example, create a batch file called GOPCL.BAT.
The contents of the file would contain the following
line:

COPY TRAILER.HP2+%1+TRAILER.HP2 LPT1:/b

ii. To use the batch file, copy it and the file
TRAILER.HP2 to your root directory.

At the DOS prompt type:

COPY GOPCL.BAT C:\*.*

COPY TRAILER.HP2 C:\*.*

iii. Then at the DOS prompt you can print out any ASCII
text file. For example, if you wanted to print the
autoexec.bat file, type the following at the DOS
prompt:

GOPCL AUTOEXEC.BAT

d. If using a network, the print queues may be modified to
send headers and trailers with each print job.

2. If an HPGL/2 file is being sent to the printer, send PCL5
commands to the printer to perform the HPGL/2 mode switch. Note:
The printer needs to be set for SYS=AUTO.

a. Send the PCL5 header string to the printer to perform the
mode switch. The following escape code comprises the header
string:

HEX: 1B 45 1B 25 30 42 ASCII: ESC E ESC % 0 B

Note: Esc represents the escape character. Spaces are shown
for clarity only (i.e., not part of the escape sequence).

b. Send the HPGL/2 file.

c. Send the PCL5 trailer string to the printer to perform the
printer reset/mode switch. The following escape code
comprises the trailer string:

HEX: 1B 25 30 41 1B 45 ASCII: ESC % 0 A ESC E

Note: Esc represents the escape character. Spaces are shown
for clarity only (i.e., not part of the escape sequence).

d If printing from DOS, a file containing the escape
sequences may be sent out to the printer first. (e.g.,
create a file with the above escape sequences, call them
header.hp2 and trailer.hp2 and then at the DOS prompt type:

COPY HEADER.HP2+file+TRAILER.HP2 LPT1/b

e. A more effective approach for printing files, is to create
a batch file to perform the operation.

i. For example, create a batch file called GOHPGL.BAT.
The contents of the file would contain the following
line:

COPY HEADER.HP2+%1+TRAILER.HP2 LPT1:/b

ii. To use the batch file, copy it and the files:
HEADER.HP2 and TRAILER.HP2 to your root directory

(e.g., at the DOS prompt type:

COPY GOHPGL.BAT C:\*.*

COPY HEADER.HP2 C:\*.*

COPY TRAILER.HP2 C:\*.*

iii. Then at the DOS prompt you can print out any ASCII
text file. For example, if you wanted to print the
autoexec.bat file, type the following at the DOS
prompt:

GOHPGL AUTOEXEC.BAT

f. If using a network, the print queues may be modified to
send headers and trailers with each print job.

3. For more information refer to FaxBack documents 4250 and 4256.
Cyrus Nima
-------------------
cyrusnima@gmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform