2006/05/31
CHAPTER 3 "PCL5C" - 11
3.5. Select Color
Command
ESC*v#S (27)(42)(118)#(83) <1Bh><2Ah><76h>#<53h>
# = 0 ~ current palette size
Default value = 0
• This command selects the color as the index number in the palette.
• This command is valid for text, underline, rule and graphics.
• This command does not affect the User-defined color pattern or HP-GL/2. (The HP-GL/2 command selects
the color using the SP command.)
• The value to be selected by this command is never affected by the Set PCL Color Setting, Set Render
Algorithm, Download Dither Matrix or Set Gamma Correction commands.
3.6. Push/Pop Palette
Command
ESC*p#P (27)(42)(112)#(80) <1Bh><2Ah><70h>#<50h>
# = 0 * Push palette
= 1 Pop palette
* Default value = 0
• The value of 0 pushes the current palette onto the palette stack. This command does not affect the current
palette.
• The value of 1 pops the palette from the top of the palette stack and replacesthe current palette with it.
• If the Pop Palette command is executed without a Push palette having first having been executed, it is
ignored.
• The palette stack is controlled as a First In Last Out stack.
• The parameters below are pushed to the palette stack;
Color Mode (Simple Color / PCL Color Mode)
Parameters to be set by the Set PCL Color Setting command
Encoding Mode (mode 0, 1, 2, 3)
Bits / index
Bits / value #1
Bits / value #2
Bits / value #3
Black and White Reference
Parameter of Render Algorithm
Parameter of Gamma Correction
Color Palette
Dither to be downloaded by the Download Dither Matrix command
Pen Width (HP-GL/2)
• The data below is pushed to the palette stack;
Colors to be selected by the Select Color command
Colors to be selected by the Set #1, #2, #3 command
Monochrome Print Mode