Re: PCL rudiments. (201 Views)
Occasional Contributor
Posts: 7
Registered: ‎01-26-2004
Message 1 of 4 (201 Views)

PCL rudiments.

I need help with the rudiments of creating a printer setup file. Not with the use of the PCL/PJL setup file but with the rudiments of building the file. My editors won't show control characters. Can I simply create a string of "CHR(x) CHR(y) CHR(z)" and the spooler will be able to interpret the string accordingly? What are the common techniques.
Valued Contributor
Posts: 73
Registered: ‎10-20-1996
Message 2 of 4 (201 Views)

Re: PCL rudiments.

There are a bunch of techniques for embedding non-printing characters in a file. Most editors on the HP will allow you to enter non-printing characters by typing an apostrophe followed by the ascii number of the character (e.g. '10 for LF).

Another technique is to turn on Display Functions on your HP terminal or in your HP terminal emulator. You can then type the control character directly (e.g. Ctl-H = Backspace).

FCOPY with the ;HEX option can be used to examine the resulting file to confirm the characters are in place as they should be.


Honored Contributor
Posts: 1,162
Registered: ‎07-10-2000
Message 3 of 4 (201 Views)

Re: PCL rudiments.

Hello Ron,

Before typing the PCL escape codes in your text editor, enable the "DISPLAY FUNCTNS" function key on your terminal by pressing function key F7; if you are using a PC running WRQ Reflection HP terminal emulation software, do Alt-M to bring the set of function keys including the "DISPLAY FUNCTNS" function; press function key F7.

When "DISPLAY FUNCTNS" is enabled (it has an "*"), you can see the PCL codes as you type.
King is the customer!
Honored Contributor
Posts: 573
Registered: ‎10-08-2000
Message 4 of 4 (201 Views)

Re: PCL rudiments.

Hello Ron,

When using the MPE Editor utility, you can insert a placeholder for the escape character, and then change it to the "decimal 27" character with the "change" command. The spooler does NOT do any interpretation at all-- the file is sent to the printer with no changes except for the removal of CR LF.

For example, enter a tilde everywhere you need the escape char, then exit "add mode" and then type

change "`" to '27 in all

A typical escape sequence would be `&l8D in text, and after the change of "`" to '27 the printer would see &l8D

Ensure there are no spaces between the escape char and the rest of the string. And don't forget to keep the file unnumbered.

For more info, see: MPEKBRC00001336
A problem well defined is half solved.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.