Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PCL XL samples required

Status
Not open for further replies.

tal6499

Programmer
Nov 9, 2011
42
PK
Hi,
I would be thankful if someone provide PCL XL samples before assembling.
 
Not quite sure what you mean.

Perhaps what you want are some samples of print streams expressed using the 'ASCII' representation of the various PCL XL Operators and their Attribute Lists? e.g.:

Code:
Type                   Sequence          Description
---------------------  ----------------  ----------------------------------------------------

PCL Parameterised      <Esc>%-12345X     Universal Exit Language (UEL)
Comment                                  Switch language to PJL
PJL Command            @PJL Enter         Language = PCLXL[0d][0a]
Comment                                  Switch language to PCLXL
PCLXL Stream Header    0x292048..        ") HP-PCL XL;2;0;PCL Paraphernalia[0a]"
PCLXL Data Type        0xc0                  ubyte
           Value       0x00                  eInch
PCLXL Attribute        0xf886              Measure
PCLXL Data Type        0xd1                  uint16_xy
           Value       0x58025802            600 600
PCLXL Attribute        0xf889              UnitsPerMeasure
PCLXL Data Type        0xc0                  ubyte
           Value       0x02                  eErrorPage
PCLXL Attribute        0xf88f              ErrorReport
PCLXL Operator         0x41              BeginSession
PCLXL Data Type        0xc0                  ubyte
           Value       0x00                  eDefaultDataSource
PCLXL Attribute        0xf888              SourceType
PCLXL Data Type        0xc0                  ubyte
           Value       0x01                  eBinaryLowByteFirst
PCLXL Attribute        0xf882              DataOrg
PCLXL Operator         0x48              OpenDataSource
...
etc.


Note that no printers accept the ASCII representation - they can only interpret the 'assembled' binary representations.

Best way to learn would be to generate some sample print streams, using 'standard' printer drivers, and capturing the output using the 'print to file' option in the Print dialogue.

Then use the 'PRN File Analyse' tool in the 'PCL Paraphernalia' application (available via ) to analyse these captured streams, effectively turning them back into the 'ASCII' representation.
 
i need some files that are to be compiled by JetASM assembler. Code you have pasted here is already encoded.

Thanx
 
and what if we are developing our own PCL XL writer, then should we write these already encoded hexs or XL commands in ASCII?
for e.g.

ubyte eInch Measure
or
0xc0
0x00
0xf886
 
I have seen some common hexs for same commands
 
>> i need some files that are to be compiled by JetASM assembler

I don't have any; I've never used the JetASM assembler.


>> and what if we are developing our own PCL XL writer, then should we write these already encoded
>> hexs or XL commands in ASCII?

What is sent to the printer MUST be in the binary encoded form.

JetASM probably accepts ASCII Operator and Attribute names, but then translates these to the required binary (hex) values in the correct format for the chosen 'endian-ness' of the stream.

So your 'PCL XL writer' would have to do what JetASM does, or (for simplicity) perhaps just call the library routines provided (I think) by HP as part of an early (source code) version of JetASM.
 
... and the 'Print Languages' tool in the 'PCL Paraphernalia' application (available via ) provides:

- lists of the hexadecimal values associated with most (all?) of the current PCL XL tags (for Operators, Attributes, DataTypes, WhiteSpace, etc.);

- lists of most of the PCL XL enumerated values
e.g. 0x00 = eInch when associated with the 0x86 (Measure) Attribute.
 
k,
thanks.
Now i understood what we have to do..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top