2001/10/02
CHAPTER 3 "PCL5C" - 6
[Example]
If you want to send index No. 7,6,5,4,3,2,1,0;
Enter
’ESC*v6W 00h 00h 04h 08h 08h 08h’
, then select
Send Index No by Plane
.
Select 4 bits/index. (2
4
= 16 Palettes)
ESC*r1A
Start Raster Transfer
ESC*b1V 10101010B
Send Plane1 data (The Index No Bit0 data)
ESC*b1V 11001100B
Send Plane2 data (The Index No Bit1 data)
ESC*b1V 11110000B
Send Plane3 data (The Index No Bit2 data)
ESC*b1W 00000000B
Send Plane4 data (The Index No Bit3 data)
....
ESC*rC
End Raster Transfer
(xxh: hexadecimal, xxxxxxxxB: binary)
Send Index No by Pixel (= 1)
•
This mode sends the index No. by pixel.
•
Bits/index must be 1, 2, 4, 8.
(2 bits/index)
ESC*b#W d1, d2, d1, d2, d1, d2...
→
1st raster
ESC*b#W d1, d2, d1, d2, d1, d2...
→
2nd raster
ESC*b#W d1, d2,
d1
,
d2
, d1, d2...
→
3rd raster
ESC*b#W d1, d2, d1, d2, d1, d2...
→
4th raster
MSB
LSB
Index No.
d2
d1
** The Italic characters shown above are the index No. at the 2nd pixel in the 3rd raster.
[Example]
If you want to send the index No. below;
Index No.
3, 2, 1, 0
(1st raster)
2, 1, 0, 3
(2nd raster)
3, 0, 1, 2
(3rd raster)
0, 1, 2, 3
(4th raster)
Enter
‘ESC*v6W 00h 01h 02h 08h 08h 08h’
, then select
Send Index No by Plane
.
Select 2 bits/index. (2
2
= 4 Palettes)
ESC*r1A
Start Raster Transfer
ESC*b1V 11100100B
Send 1st raster data
ESC*b1V 10010011B
Send 2nd raster data
ESC*b1V 11000110B
Send 3rd raster data
ESC*b1W 00011011B
Send 4th raster data
....
ESC*rC
End Raster Transfer
(xxh: hexadecimal, xxxxxxxxB: binary)
Send Direct Value by Plane (= 2)
•
This mode sends each value of RGB by plane.
•
Bits/index must be 1.
•
This mode sends the plane data except the last one using the
Send Raster Data by Plane
command.
•
This mode sends the last plane data using the
Send Raster Data
command.