×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

PCL5C palette color control

PCL5C palette color control

PCL5C palette color control

(OP)
I've been trying to build my own palette, here is the code which doesn't work for me:

ESC&v0M
ESC&p1I
ESC&p6C
ESC&p1S
ESC*v255a255b255c0I
ESC*v100a50b200c1I
ESC*p0P
ESC*v0STest1
ESC*v1STest2

All i really want to do is to be able to switch between a few different specific colors.  For instance one is going to be light blue, one dark, black and white.  That's all i really want in my palette for now.  The code above was a test to see if i could print Test1 in white and Test2 in purple.  The white worked but the purple came out black.

can any help me?

~Mick

RE: PCL5C palette color control

You are missing the Configure Image Data command.

Color Reference Page 2-5.

Jim Asman
jlasman@telus.net

RE: PCL5C palette color control

(OP)
I tried this

ESC&v0M
ESC&p1I
ESC&p6C
ESC&p1S
ESC*v255a255b255c0I
ESC*v100a50b200c1I
ESC*v6W020308080808
ESC*t3J
ESC*v0STest1
ESC*v1STest2

and this gave me blue, but now when I change the values in the 5th and 6th line none of the colors change I still get white and light blue.  I've also tried ESC&p0C to clear all the palettes.

Could you please send me an example of a working palette with a few basic colors in, simular to the format above.

~Mick

RE: PCL5C palette color control

<esc>*v6W 01 01 08 08 08 08
<esc>*v255a255b255c0I
<esc>*v0a255b255c1I
<esc>*v75a75b0c2I
<esc>*v0SBLACK
<esc>*v1SRED
<esc>*v2SBLUISH
<esc>*v0SBLACK AGAIN

The above should be all you need. Note that those are hex values given in the first command. 6 hex bytes of data.

Jim Asman
jlasman@telus.net

RE: PCL5C palette color control

(OP)
I did it :)

That CID was supposed to go before I define my colors.

ESC&v0M
ESC&p2I
ESC&pC
ESC&p6C
ESC&p2S
ESC*v6W020308080808
ESC*v020a200b100c0I
ESC*v255a255b50c1I
ESC*v0STest1
ESC*v1STest2

Thanks for your help Jim

RE: PCL5C palette color control

Mapl7
When I run your I see 080808.  Seems like I always have this problem.

Any thoughts?

James

RE: PCL5C palette color control

"When I run ... I see 080808"

This is almost certainly because, in the CID sequence:

   <esc>*v6W 01 01 08 08 08 08

you have ignored Jim's caveat that  

"Note that those are hex values given in the first command. 6 hex bytes of data."

and have instead inserted them as 12 characters.

RE: PCL5C palette color control

Thanks for the response...


I must be missing something 01 01 08 08 08 08 to hex
30 31 20 30 31 20 30 38 20 30 38 20 30 38 20 30 38 ??  

James

RE: PCL5C palette color control

NO!

How you get it into a file will depend on your editor.

Hex 01 = CTRL-A = CHR$(1)
Hex 08 = CTRL-B = CHR$(8)

You will have to figure out the mechanism for your editor to enter the "special" characters.

Jim Asman

RE: PCL5C palette color control

Wow there it is ....  I use CHR()  thanks Jim.  Finally found a place for pcl.

RE: PCL5C palette color control

OOPS!

That should have been ...

HEX 08 = CTRL-H = CHR$(8)

Jim Asman

RE: PCL5C palette color control

Thanks for the clarification

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close