1PCL5 Protocol
2
3Esc 27 decimal, 1b hexadecimal, 33 octal 
4
5Soft Reset
6	EscE
7
8Page Size Command
9	Esc&l<size>A
10	size ... 1 Executive, 2 Letter, 3 Legal, 4 Ledge, 26 A4, 27 A3, etc ...
11
12Logical Page Size Command
13	Esc&l<size>O
14	size ... 0 portrait, 1, landscape, 2 reverse portrait, 3 reverse landscape
15
16Clear Horizontal Margins Command
17	Esc9 resets margins to that of logical page
18
19Top Margin Command
20	Esc&l<lines>E
21	lines ... number of lines
22
23Unit of Measure
24	Esc&u<units>D
25
26Horizontal Cursor Positioning (PCL Units) Command
27	Esc*p<x>X (default 1/300 inch)
28
29Vertical Cursor Positioning (PCL Units) Command
30	Esc*p<x>Y (default 1/300 inch)
31
32Perforation Skip Command
33	Esc&l<skip>L
34	skip ... 0 disable, 1 enable
35
36Number of copies
37	Esc&l<copies>X
38
39Print Direction Command
40	ESC&a<degree>P degree ... 0, 90, 180, 270
41
42Job Separation Command
43	Esc&l1T (before reset at end of job)
44
45Image Transfer
46
47Simple Color Command
48	Esc*r<mode>U
49	mode:
50		-3 ... 3 planes, device CMY palette 
51		(0 = white, 1 = cyan, 2 = magenta, 3 = blue, 4 = yellow, 5 = green, 6 = red, 7 = black)
52		1 ... single plane K (black) palette (default) 
53		(0 = white, 1 = black)
54		3 ... 3 planes, device RGB palette 
55		(0 = black, 1 = red, 2 = green, 3 = yellow, 4 = blue, 5 = magenta, 6 = cyan, 7 = white)
56
57Raster Presentation
58	Esc*r<mode>F
59	mode ... 0 in orientation of logical page
60	         3 raster image prints along the width 
61	           of the physical page
62Raster Resolution 
63	Esc*t<dpi>R
64	dpi ... 75, 100, 150, 200, 300, 600
65Raster Height
66	Esc*r<height>T
67	height ... 0 to logical page length - current Y position
68Raster Width
69	Esc*r<width>S
70	width ... in pixels of the specified resolution
71Start Raster Graphics
72	Esc*r0A start at default left graphics margin (X position 0)
73	Esc*r1A start at current X position
74{
75	Y Offset
76		Esc*b<lines>Y
77		lines ... number of raster lines of vertical movement
78	Raster Compression
79		Esc*b<mode>M
80		mode
81		     ... 0 unencoded (default)
82		     ... 1 run length encoding
83		     ... 2 tagged image file format (TIFF) rev. 4.0
84		     ... 3 delta row compression
85		     ... 4 reserved
86		     ... 5 adaptie compression
87	{Transfer Raster Data
88		[Esc*b<length>V<data> # ]
89		Esc*b<length>W<data> # for last plane moves cursor X pos to 0
90		length ... 0 to 32767
91	}
92}
93End Raster Graphics
94	Esc*rC
95	Esc*rB (old)
96
97Color printing
98
995colrtef.pdf on page 196