Download  Print this page

Brother HL-1050 Technical Reference Manual

Hide thumbs
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494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0
0
C
N
/
/
2
6
0
0
C
N
/
N
/
2
7
0
0
C
N
/
N
/
2
7
0
0
C
N
/
2
8
0
D
W
/
2
8
0
D
W
/
4
0
/
2
1
5
0
N
/
4
0
/
2
1
5
0
N
/
/
5
3
8
0
D
N
/
/
5
3
8
0
D
N
/
7
5
C
W
/
7
5
C
W
/
4
1
4
0
C
N
/
4
1
4
0
C
N
/
4
5
0
D
N
/
4
5
0
D
N
/
1
4
0
C
W
/
1
4
0
C
W
/
1
1
0
/
1
1
1
1
/
1
1
0
/
1
1
1
1
/
D
W
(
T
)
/
D
W
(
T
)
/
0
0
/
L
2
3
0
0
D
/
0
0
/
L
2
3
0
0
D
/
2
3
0
5
W
/
2
3
0
5
W
/
2
5
6
0
D
N
/
2
5
6
0
D
N
/
2
5
6
9
D
W
/
2
5
6
9
D
W
/
2
1
2
W
R
/
2
1
2
W
R
/
/
1
2
0
2
/
1
2
0
8
/
/
1
2
0
2
/
1
2
0
8
/
5
1
0
2
D
W
/
5
1
0
2
D
W
/
)
/
L
5
2
0
2
D
W
/
)
/
L
5
2
0
2
D
W
/
/
L
6
2
5
0
D
W
/
/
L
6
2
5
0
D
W
/
/
L
8
2
6
0
C
D
N
/
L
8
2
6
0
C
D
N
1
0
C
D
W
1
0
C
D
W
e
e
e
/
/

Advertisement

Table of Contents
loading

  Related Manuals for Brother HL-1050

  Summary of Contents for Brother HL-1050

  • Page 1 < > < >...
  • Page 2 HL-1212W/1210W/ 1210WR/1212WR/ 1210WE/1211W/1218W/1200/1201/1202/1208 Ver.Y November, 2014 Revised for Addition of HL-L9300CDW(T) Ver.Z October, 2015 Revised for Addition of HL- L5000D/5580D/5585D/5595DN/L5102DW/L5100DN (T)/5590DN/L5200DW(T)/L5202DW/L6200DW(T)/ L6202DW/L6250DN/L6250DW/L6300DW(T)/L6400 DW(T)/L6402DW Ver.AA January, 2017 Revised for Addition of HL- L8260CDN/L8260CDW/L8360CDW(T)/L9310CDW © Copyright Brother Industries, Ltd. 2017 ALL RIGHTS RESERVED...
  • Page 3 Compilation and Publication Under the supervision of Brother Industries Ltd., this manual has been compiled and published, covering the latest product's descriptions and specifications. The contents of this manual and the specifications of this product are subjected to change without notice.
  • Page 5: Table Of Contents

    TABLE OF CONTENTS GLOSSARY CHAPTER 1 INTRODUCTION 1. ABOUT THE MANUAL ----------------------------------------------------------------------------------- 3 2. AREAS OF USE ------------------------------------------------------------------------------------------- 4 CHAPTER 2 PCL PRINTER CONTROL LANGUAGE 1. COMMAND LIST ------------------------------------------------------------------------------------------ 7 2. INTRODUCTION ----------------------------------------------------------------------------------------- 10 3. CONTROLLING THE PRINTER ---------------------------------------------------------------------- 11 4.
  • Page 6 CHAPTER 6 EPSON FX-850 1. COMMAND LIST ------------------------------------------------------------------------------------------ 3 2. INTRODUCTION ------------------------------------------------------------------------------------------ 5 3. EMULATION DETAILS ---------------------------------------------------------------------------------- 6 4. TERMINOLOGY ------------------------------------------------------------------------------------------- 7 5. CONTROLLING THE PRINTER ----------------------------------------------------------------------- 8 6. COMMANDS------------------------------------------------------------------------------------------------ 9 7. INDEX ------------------------------------------------------------------------------------------------------- 28 CHAPTER 7 IBM PROPRINTER XL 1.
  • Page 7 GLOSSARY Absolute plotting A method of plotting in the HP-GL and HP-GL/2 graphics language where coordinates are specified relative to the origin of the coordinate system currently in use. Anchor point The top left-hand corner of the PCL picture frame. You can position this on the page using a PCL command.
  • Page 8 Control panel reset A reset or factory reset performed using the printer control panel. Cross-hatching A method of shading using perpendicular diagonal lines that cross one another. Current units The current unit type in use in HP-GL and HP-GL/2 mode. Current units are either user units or graphics units depending on whether an SC command has been used.
  • Page 9 Fixed spacing See monospacing. Font A collection of characters that are designed to work in harmony together. A font has several characteristics that identify it uniquely: character or symbol set, spacing, pitch, height or point size, style, stroke weight and typeface. Fonts can either be resident in the printer's ROM, installed on cartridge or downloaded from your computer.
  • Page 10 Justification The way in which text is aligned. For example, left justification involves aligning the left end of every line of text. Label A text string that forms part of an HP-GL and HP-GL/2 plot. Landscape The orientation in which the top edge of the page is longer than the side edges. Logical page The area of the physical page on which the cursor can be positioned in LaserJet mode.
  • Page 11 Perforation skip A feature whereby the printer automatically compensates for a page break and resumes printing from the top of the text area on the next page. Permanent font A downloaded font that is retained when a printer reset is performed. Permanent macro A macro stored in the printer that will not be erased if the printer is reset.
  • Page 12 Random Access Memory. The printer's memory in which fonts and macros can be stored and where pages that are to be printed are composed. Raster graphics A method of representing a graphic image as a series of zeroes and ones that correspond to white and black dots respectively.
  • Page 13 Soft clip limits See graphics window. The soft limits are determined by the IW command. Source image The graphic image that is applied to the destination image in the LaserJet print model. The interaction of the two images is determined by the current source and pattern transparency settings.
  • Page 14 Vertical motion index. The vertical distance that the print position moves down the page when a line feed is performed. This can be set using printer commands or with the printer's control panel by adjusting the "Lines" menu option in PAGE FORMAT MODE.
  • Page 15 CHAPTER 1 INTRODUCTION CHAPTER 1 INTRODUCTION - 1...
  • Page 16: About The Manual

    ONTENTS 1. ABOUT THE MANUAL ....................3 2. AREAS OF USE ......................4 Using Word Processing Packages and Spreadsheets ............4 Graphics ..........................4 Programming ........................4 Font Development ....................... 5 CHAPTER 1 INTRODUCTION - 2...
  • Page 17: About The Manual

    1. ABOUT THE MANUAL This technical reference manual is intended to help you get the most out of each of the emulation modes supported by your HL-Series printer. It is divided into nine sections - this introductory section and one section for each of the emulation modes.
  • Page 18: Areas Of Use

    2. AREAS OF USE There are several different applications for which you may want to use your HL-Series printer. Four general areas are outlined in the following sections. Using Word Processing Packages and Spreadsheets You may simply wish to use the printer with your software application packages, such as word-processors or spreadsheets.
  • Page 19: Font Development

    Font Development In LaserJet mode you can send your own character designs to an HL-Series printer and print text using them. To do this you need first to design your characters on paper. Having done this you can then either input and download your characters using a commercial software package, or encode your designs numerically and write your own program to download them.
  • Page 20 CHAPTER 2 PRINTER CONTROL LANGUAGE     CHAPTER 2 PCL - 1...
  • Page 21: Command List

    ONTENTS COMMAND LIST ........................7 INTRODUCTION ........................ 10 CONTROLLING THE PRINTER ..................11 3.1. Control Codes ........................... 11 3.1.1. Backspace (08) <08h> .......................... 11 3.1.2. Line feed (10) <0Ah> ..........................11 3.1.3. Form feed (12) <0Ch> .......................... 11 3.1.4. Carriage return (13) <0Dh> ........................11 3.1.5.
  • Page 22: Introduction

    4.2.5. HP-GL/2 graphics window ........................31 4.2.6. Portrait page dimensions ........................32 4.2.7. Landscape page dimensions ........................ 34 4.2.8. Coordinates ............................36 4.2.9. Units ..............................36 4.2.10. Unit of measure ............................. 36 4.2.11. Setting the left and right margins ......................36 4.2.12.
  • Page 23 5.2.5. Selecting the symbol set ........................54 5.2.6. Selecting the type of character spacing ....................56 5.2.7. Selecting the pitch ..........................56 5.2.8. Selecting the height ..........................57 5.2.9. Scaling the scalable fonts vertically or horizontally ................57 5.2.10. Selecting the style ..........................57 5.2.11.
  • Page 24 6.5. The Picture Frame ........................100 6.5.1. The default picture frame ........................100 6.5.2. Set picture frame anchor point ......................100 6.5.3. Set picture frame vertical size ......................100 6.5.4. Set picture frame horizontal size ......................100 6.5.5. Specify vertical plot size ........................100 6.5.6.
  • Page 25 8.5.14. Symbol set response .......................... 112 8.5.15. Entity error codes ..........................113 8.5.16. Free space command ......................... 113 8.5.17. Font cache ............................114 8.5.18. Memory status response ........................114 8.5.19. Memory error response ........................114 8.5.20. Flush all pages command ........................114 8.5.21.
  • Page 26: Command List

    COMMAND LIST Control Codes Escape sequences Esc&k#G Line termination Esc&s#C End-of-line wrap EscY Display function mode EscZ Display function mode Environments Job Control Esc&l#A Page size Esc&n# Media type selection Esc&l#G Output tray Esc&l#H Paper source Esc&l#U Left long-edge offset registration Esc&l#Z Top offset registration Esc&l#S...
  • Page 27 Esc(s#H, Esc)s#H Selecting the pitch Esc(s#V, Esc)s#V Selecting the height EscCR!#H, EscCR!#V Scaling the scalable fonts vertically or horizontally Esc(s#S, Esc)s#S Selecting the style Esc(s#B, Esc)s#B Selecting the stroke weight Esc(s#T, Esc)s#T Selecting the typeface Esc&p#X Transparent print data Esc&d#D, Esc&d@ Underlining text Esc&*c#D Font ID Esc*c#F...
  • Page 28 EscCR!1234#M MIO video I/O port control Status Readback Esc*s#T Set status readback location type Esc*s#U Set status readback location unit Esc*s#I Inquire status readback entity Esc*s1M Free space command Esc&r#F Flush all pages command Esc*s#X Echo command CHAPTER 2 PCL - 9...
  • Page 29: Introduction

    INTRODUCTION This laser / ink printer provides a complete emulation of the supported Hewlett Packard LaserJet printer. Features include raster and vector graphics, support for bitmap and scalable fonts and page control. There are many resident fonts in the printer and you can gain access to more by inserting a font cartridge/card or the storage device into the printer or by downloading fonts from your computer.
  • Page 30: Controlling The Printer

    CONTROLLING THE PRINTER 3.1. Control Codes Control codes are ASCII codes that tell the printer to perform a given function, such as a carriage return. You can send these codes to the printer as part of a program. 3.1.1. Backspace (08) <08h>...
  • Page 31: Escape Sequences

    3.2. Escape Sequences Escape sequences, also known as PCL (Printer Control Language) commands, tell the printer which operations to perform. An escape sequence consists of the Esc character followed by a string of characters which define the operation to be performed. Some escape sequences require parameter values. These are included in the sequence as numeric characters.
  • Page 32: End-Of-Line Wrap

    3.2.2. End-of-line wrap If the printer tries to print a line of text that is longer than the width of the text area, the end of the line will normally be lost. However, you can set the printer to flow text onto the next line so that text is not lost. You can turn on the automatic text wrap feature either from the printer's control panel (see the User Guide) or by sending the printer the following escape sequence: Esc&s0C...
  • Page 33: Environments

    3.3. Environments 3.3.1. Factory default environment The factory default environment is the collection of printer settings programmed into the printer before it leaves the factory. You can restore the factory default environment using the printer's control panel. See the User's Guide to find how to reset the printer from the printer's control panel. Some settings cannot be restored to the factory default environment with the RESET operation from the printer's control panel.
  • Page 34: Job Control

    JOB CONTROL 4.1. Commands 4.1.1. Page size Esc&l#A (27)(38)(108)#(65) <1Bh><26h><6Ch>#<41h> # stands for the type of paper or envelope to be used. Values for # correspond to the paper or envelope sizes shown in the table. Envelopes sizes are shown in the shaded part of the table.
  • Page 35 1850/1870N/5 040/5050/507 HL-1250/ HL-4040CN/ 5140/5150D/5 HL-1050/ HL-1660e/ HL-2400C/ 5340D/5350 Model 1270N/ HL-3400CN HL-3260N HL-2460 HL-7050 HL-2600CN HL-3450CN HL-8050N HL-2700CN 4050CDN/ 2150N/2170 170DN/6050/6 1070 2060 2400Ce 1450/1470N 1650/1670N DN/5370DW P2500 050D/ 4070CDW /5380DN 6050DN/2070 N/5240/5250D N/5270DN/52 80DW Executive   ...
  • Page 36 1850/1870N/5 040/5050/507 HL-1250/ HL-4040CN/ 5140/5150D/5 HL-1050/ HL-1660e/ HL-2400C/ 5340D/5350 Model 1270N/ HL-3400CN HL-3260N HL-2460 HL-7050 HL-2600CN HL-3450CN HL-8050N HL-2700CN 4050CDN/ 2150N/2170 170DN/6050/6 1070 2060 2400Ce 1450/1470N 1650/1670N DN/5370DW P2500 050D/ 4070CDW /5380DN 6050DN/2070 N/5240/5250D N/5270DN/52 80DW 1040 Envelop #4 1041...
  • Page 37 L5000D/558 L8260CDN/L 2250DN/227 L8250CDN/L L2360DN/L2 0D/L5100DN 5440D/5450 8260CDW/L Model 3070CW/30 0DW/4140C 8350CDW/L 360DW/L23 /L5200DW/L DN/5470DW S7000DN 3170CDW 8360CDW/L 75CW N/4150CDN/ 9200CDW/L 65DW/2560 6200DW/L6 /6180DW 8360CDWT/ 4570CDW 9300CDW DN/2569DW 300DW/L64 L9310CDW 00DW Executive         ...
  • Page 38 L5000D/558 L8260CDN/L 2250DN/227 L8250CDN/L L2360DN/L2 0D/L5100DN 5440D/5450 8260CDW/L Model 3070CW/30 0DW/4140C 8350CDW/L 360DW/L23 /L5200DW/L DN/5470DW S7000DN 3170CDW 8360CDW/L 75CW N/4150CDN/ 9200CDW/L 65DW/2560 6200DW/L6 /6180DW 8360CDWT/ 4570CDW 9300CDW DN/2569DW 300DW/L64 L9310CDW 00DW 1040 Envelop #4      1041 Envelop MAX ...
  • Page 39: Media Type Selection

    When the printer receives this command any unprinted pages are printed and the left, right and top margins and the text length are set to their factory defaults for the new page size.  The cursor is moved to the top left of the text area on the new page. ...
  • Page 40: Output Tray

    4.1.3. Output tray Esc&l#G (27)(38)(108)#(71) <1Bh><26h><6Ch>#<47h> # denotes the output tray. Select the printer output tray. Select #1 bin. (CT:HL-8050N) Select #2 bin. Select #3 bin. Select #4 bin. Select #5 bin. Select #6 bin. Select #7 bin. Select #8 bin. Select #9 bin.
  • Page 41: Paper Source

    4.1.4. Paper source Esc&l#H (27)(38)(108)#(72) <1Bh><26h><6Ch>#<48h> # denotes the paper source. Values for # may be 0, 1, 2, 3, or 4.  If # = 0 the current page is ejected and the paper source remains the same.  If # = 1 the current page is printed and the upper cassette becomes the paper source. ...
  • Page 42 If PJL TRAYCOMMAND is NORMAL; 1850/1870 4050CDN/ 5240/5250 4070CDW/ 1250/1270 DN/5270D 1660e/206 5050/5070 2070N/215 4140CN/41 N/P2500/ N/5280DW HL-5040/ HL-2460/ HL-1050 HL-1070 HL-3260N 0N/2170W/ HL-8050N 2600CN/ 50CDN/45 1450/1470 3400CN /5340D/53 5140 7050 S7000DN 3450CN 4040CN 1650/1670 5150D/517 2250DN/22 2700CN 70CDW/54 N/2400C/C...
  • Page 43 L5000D/55 L8260CDN L2360DN/ 80D/L5100 L8250CDN /L8260CD 3070CW/3 L2360DW/ DN/L5200 L9300CD /L8350CD W/L8360C 075CW/31 L2365DW/ DW/L6200 W/L9200C DW/L8360 70CDW 2560DN/25 DW/L6300 CDWT/L93 69DW DW/L6400 10CDW                 ...
  • Page 44 If PJL TRAYCOMMAND is SPECIAL; 4050CDN/ 1850/1870 5240/5250 4070CDW/ L5000D/5 L8260CD DN/5270D 4140CN/4 L2360DN/ 580D/L51 N/L8260C 1660e/206 5050/5070 2070N/215 L8250CD HL-2400C/ N/5280DW HL-5040/ 150CDN/4 3070CW/3 L2360DW/ 00DN/L52 DW/L8360 HL-3260N 0N/2170W 2600CN/2 L9300CD N/L8350C 3400CN /5340D/53 5140 3450CN 4040CN 570CDW/5 075CW/31 S7000DN L2365DW/ 00DW/L62...
  • Page 45: Left Long-Edge Offset Registration

    4.1.5. Left long-edge offset registration Esc&l#U (27)(38)(108)#(85) <1Bh><26h><6Ch>#<55h> # stands for the distance in decipoints (1/720") that the left edge of the logical page is to be moved.  Values for # may be in the range -32,767 to 32,767. ...
  • Page 46: Simplex/Duplex Printing

    4.1.7. Simplex/duplex printing (For HL-1660e/2060/3400CN/1650/1670N/3260N/2460/7050/1850/1870N/5150D/5170DN/5250DN/ 5270DN/5280DW/4050CDN/4070CDW/5340D/5350DN/5370DW/5380DN/2240D/2250DN/2270DW/415 0CDN/4570CDW/5440D/5450DN/5470DW/6180DW/S7000DN/3170CDW/ L8250CDN/L8350CDW/L9200CDW/L9300CDW /L2360DN/L2360DW/L2365DW/2560DN/2569DW) Esc&l#S (27)(38)(108)#(83) <1Bh><26h><6Ch>#<53h> # can be 0, 1, or 2.  # = 0 indicates Simplex printing.  # = 1 indicates Duplex – Long edge binding printing.  # = 2 indicates Duplex – Short edge binding printing. ...
  • Page 47  You can also perform a printer reset using the printer's control panel or remote printer console program (see the User Guide). CHAPTER 2 PCL - 28...
  • Page 48: Reset To Factory Default Settings

    4.1.11. Reset to factory default settings EscCRFD (27)(13)(70)(68) <1Bh><0Dh><46h><44h>  This command causes a factory reset to be performed, restoring all the printer's factory default settings. See the section "Factory default environment" for a list of the factory default settings. ...
  • Page 49 Emulations available for each model are listed below. Epson HP-GL BR-Script2 BR-Script3 Proprinter FX-850 HL-1050    HL-1070     HL-1250    HL-1270N     HL-P2500  HL-1660e     ...
  • Page 50: The Page

    4.2. The Page 4.2.1. Physical page The physical page refers to the size of the paper or envelope currently in use: A4, Letter, B5, JIS B5, Legal and Executive are the permitted paper sizes: Monarch, COM-10, International DL and International C5 are the allowable envelope sizes.
  • Page 51: Portrait

    4.2.6. Portrait page dimensions (DEFAULT VALUES) Physical page Printable area Logical page Default HP-GL/2 picture frame Physical page length Maximum logical page length Distance from edge of physical page to edge of logical page PAPER SIZE LETTER 2550 3300 2400 3300 LEGAL 2550...
  • Page 52 POSTCARD 1181 1748 1039 1748 Envelop #4 1240 2776 1098 2776 Envelop MAX 1417 2776 1275 2776 A5 Long Edge 2480 1748 2338 1748 A4 Short 2480 3189 2338 3189 16K(197x273mm 2325 3225 2175 3225 16K(195x270mm 2303 3189 2161 3189 16K(184x260mm 2173 3070...
  • Page 53: Landscape

    4.2.7. Landscape page dimensions (DEFAULT VALUES) Physical page Printable area Logical page Default HP-GL/2 picture frame Physical page length Maximum logical page length Distance from edge of physical page to edge of logical page PAPER SIZE LETTER 3300 2550 3180 2550 LEGAL 4200...
  • Page 54 Envelop MAX 2776 1417 2658 1417 A5 Long Edge 1748 2480 1630 2480 A4 Short 3189 2480 3071 2480 16K(197x273mm 3225 2325 3105 2325 16K(195x270mm 3189 2303 3071 2303 16K(184x260mm 3070 2173 2952 2173 All measurements are in 1/300" units CHAPTER 2 PCL - 35...
  • Page 55: Coordinates

    4.2.8. Coordinates The printer control language coordinate system has its origin at the intersection of the left edge of the logical page and the top margin. The x-coordinate value of the current cursor position increases as the cursor moves from left to right, the y-coordinate value increases as the cursor moves down the page. The cursor can be explicitly positioned anywhere on the current logical page using the PCL coordinate system.
  • Page 56: Resetting The Horizontal Margins

     If the current cursor position is to the right of your new right margin setting, the cursor will be moved to the new right margin.  The factory default left and right margin settings are at the left and right edges of the logical page respectively.
  • Page 57: Setting The Vertical Motion Index (Vmi)

    4.2.14. Setting the vertical motion index (VMI) Esc&l#C (27)(38)(108)#(67) <1Bh><26h><6Ch>#<43h> # stands for the height of one row in 1/48".  # can have any value in the range 0-32767.  The distance specified by the VMI is the vertical distance moved down the page when the printer performs a line feed.
  • Page 58: Setting Line Spacing

    10 REM ***** SETTING THE CHARACTER PITCH ***** 20 ESC$=CHR$(27) 30 REM --- DEFAULT IS 10 CPI PITCH --- 40 LPRINT "10 PITCH " 50 REM --- SET 5 CPI PITCH --- 60 LPRINT ESC$+"&k24H"; 70 LPRINT "AAA" 80 REM --- SET 6 CPI PITCH --- 90 LPRINT ESC$+"&k20H";...
  • Page 59: Page Length

    Top margin Page length Text length Bottom margin 4.2.18. Page length Esc&l#P (27)(38)(108)#(80) <1Bh><26h><6Ch>#<50h> # stands for the length of the logical page in lines (at the current VMI).  If you specify a page length greater than is allowed by the physical size of the paper in the currently installed paper tray, a control panel message prompts you to load paper of the appropriate size.
  • Page 60: Positioning The Cursor

    4.2.20. Positioning the cursor You can position the cursor anywhere on the logical page. In addition, the cursor position is automatically changed when text or graphics are printed. You can either position the cursor using absolute PCL coordinate values or position it relative to the current cursor position, using dots, decipoints or rows and columns as units. In case of using dots, the units value is defined by the ESC &...
  • Page 61: Horizontal Position

    4.2.22. Horizontal position Horizontal cursor positioning - columns Esc&a#C (27)(38)(97)#(67) <1Bh><26h><61h>#<43h> # = number of columns  A plus or minus sign preceding the number of columns parameter indicates that the cursor is to be positioned relative to its current position. A signed positive parameter value signifies that the cursor is to be repositioned to the right on the page, a negative value means that it will be moved to the left.
  • Page 62: Positioning The Cursor Using Control Codes

    100 REM --- MOVING CURSOR 1 INCH TO THE RIGHT --- 110 LPRINT ESC$+"*p+300X"; 120 LPRINT "C"; 130 REM --- PAPER EJECT --- 140 LPRINT CHR$(12); 150 END <Sample file 4> Horizontal cursor positioning - decipoints Esc&a#H (27)(38)(97)#(72) <1Bh><26h><61h>#<48h> # = number of decipoints 1/720" ...
  • Page 63: Half Line Feed

    4.2.25. Half line feed Esc= (27)(61) <1Bh><3Dh> This command moves the cursor down half a row as defined by the last VMI or line spacing command (Esc&l#C). 4.2.26. Logical page orientation Esc&l#O (27)(38)(108)#(79) <1Bh><26h><6Ch>#<4Fh> # = 0, 1, 2 or 3 ...
  • Page 64 40 REM --- MOVING CURSOR TO X=500, Y=500 --- 50 LPRINT CHR$(27);"*p500X"; 60 LPRINT CHR$(27);"*p500Y"; 70 REM --- 0 deg --- 80 LPRINT CHR$(27);"&a0P"; 90 LPRINT "BROTHER "; 100 REM --- 90 deg --- 110 LPRINT CHR$(27);"&a90P"; 120 LPRINT "BROTHER "; 130 REM --- 180 deg --- 140 LPRINT CHR$(27);"&a180P";...
  • Page 65: Using Fonts

    (the number of characters printed per inch), height (point size) and symbol set. 5.1.3. Scalable fonts The printer has many scalable fonts available as standard. The following table shows scalable fonts available for models HL-1050/1070/1250/1270N/1450/1470N/P2500/1660e/2060/2400C/2400Ce/ 3400CN/1650/1670N/2460/7050/1850/1870N/5040/5050/5070N/5140/5150D/5170DN/2600CN/3450CN/6050/ 6050D/6050DN/8050N/2700CN/2070N/4040CN/4050CDN/4070CDW/2150N/2170W/5240/5250DN/5270DN/ 5280DW/5340D/5350DN/5370DW/5380DN/3070CW/3075CW/2250DN/2270DW/4140CN/4150CDN/4570C DW/L2360DN/L2360DW/L2365DW/2560DN/2569DW/S7000DN.
  • Page 66  Atlanta Book, BookOblique, Demi, DemiOblique  Copenhagen Roman, Italic, Bold, Bold italic  Portugal Roman, Italic, Bold, Bold italic  Calgary MediumItalic Brother Original Fonts: HL-1050/1070/1250/1270N/1450/1470N/P2500/ 1660e/2060/2400C/2400Ce/3400CN/1650/1670N/ 3260N/2460/7050/1850/1870N/5040/5050/5070N/ 5140/5150D/5170DN/2600CN/3450CN/6050/ 6050D/6050DN/8050N/2700CN/2070N5240/5250DN/ 5270DN/5280DW/4040CN/4050CDN/4070CDW/215 0N/2170W/5340D/5350DN/5370DW/5380DN/3070C W/3075CW/2250DN/2270DW/4140CN/4150CDN/45 70CDW/5440D/5450DN/5470DW/6180DW/S7000D N/3170CDW/L8250CDN/L8350CDW/L9200CD W L9300CDW/  Bermuda Script ...
  • Page 67: Bound Fonts

    5.1.4. Bound fonts Bound fonts are fonts which have only a single symbol set. 5.1.5. Unbound fonts Unbound fonts are fonts which have a large amount of symbols selected from a complementary symbol index (intellifont) or unicode symbol index (TrueType). 5.1.6.
  • Page 68: Selecting The Default Fonts

    5.1.13. Selecting the default fonts To set the primary font settings to those of the printers default font and discard all the software settings you have made in the meantime, send the printer the following escape sequence: Esc(3@ (27)(40)(51)(64) <1Bh><28h><33h><40h> To set the secondary font settings to those of the printers default font send: Esc)3@ (27)(41)(51)(64) <1Bh><29h><33h><40h>...
  • Page 69: Criteria For Font Selection

    5.1.15. Criteria for font selection The printer will try to match your stated font requirements as best it can with the fonts available to it in any of the three possible font locations. In most cases you will be specifying a font you know to be present in one of the locations and the resulting printed text will appear exactly as you envisaged.
  • Page 70: Stroke Weight

    5.1.22. Stroke weight Stroke weight refers to the thickness of the lines which make up the printed characters. Characters of normal line thickness are called medium. Thicker lines are referred to as bold or black and thinner lines as light or thin. You can specify 15 different stroke weights - 0 denotes medium weight, negative values signify thinner strokes, and positive values signify bolder (thicker) strokes.
  • Page 71: Font Selection Commands

    5.2. Font Selection Commands 5.2.1. User-defined symbol sets User-defined symbol sets can be used with Unbound scalable fonts. Three new commands below are prepared for use to control a user-defined symbol set. To define a symbol set, its ID code must first be defined. Next, a list of symbols for the symbol set must be downloaded.
  • Page 72 0 -1: Header size (UI) - set to 18 or greater. This value stands for the number of header bytes. 2 -3 : Encoded Symbol Set Designator (UI) - should be as same as the ID code which is defined by ESC*c#R. Format (UB) - 1 for MSL (Intellifont), 3 for Unicode (TrueType).
  • Page 73: Symbol Set Control Command

    Symbol map (Array of UI ) The symbol map, which has a list of symbol index numbers, is used to define the symbols for the symbol set. This map defines the combinations of symbol index numbers and character codes. 5.2.4. Symbol set control command Esc*c#S (27)(42)(99)#(83) <1Bh><2Ah><63h>#<53h>...
  • Page 74 170 LPRINT 180 REM --- PAPER EJECT --- 190 LPRINT CHR$(12); 200 END There is a further group of symbol sets that are available for Brother fonts only. You can select these as follows: Esc(s#C (27)(40)(115)#(67) <1Bh><28h><73h>#<43h>  This command selects the symbol set (character set) for the primary font.
  • Page 75: Selecting The Type Of Character Spacing

    60 REM --- PRINT CHARACTERS ---- 70 FOR I=33 TO 127 80 LPRINT CHR$(I); 90 NEXT 100 LPRINT 110 REM --- FRENCH CHARACTER SET SELECTION ------ 120 LPRINT ESC$+"(s5C"; 130 REM --- PRINT CHARACTERS ---- 140 FOR I=33 TO 127 150 LPRINT CHR$(I);...
  • Page 76: Selecting The Height

     The selection will apply to whichever font you are currently specifying (primary or secondary).  If the printer doesn't have the specified size font, the next largest size font is used. If the printer doesn't have a larger sized font, the next smallest one is used. ...
  • Page 77: Selecting The Stroke Weight

    Value Font Style Upright & solid Italic Condensed Condensed italic Compressed, or extra condensed Expanded Outline Inline Shadowed Outline shadowed 10 REM ****** PRINT IN ITALIC & UPRIGHT STYLE ****** 20 ESC$=CHR$(27) 30 WIDTH "LPT1:",255 40 REM --- PRINT USING AN ITALIC FONT ---- 50 LPRINT ESC$+"(s1S";...
  • Page 78: Font Orientation

     The available values vary with the printer model. The following table shows the value for each typeface and availability. Typeface Set primary Set secondary font font 1050/ 2070N/ 1070/1270N/1660e/2060/2400C/ 1250/ 2150N/ 2400Ce/3400CN/1450/1470N/ P2500 2170W/ 1650/1670N/2460/3260N/7050/ 2250DN/ 1850/1870N/5040/5050/5070N/ 2270DW 5140/5150D/5170DN/2600CN/ 3450CN/6050/6050D/6050DN/ 8050N/2700CN/5240/5250DN/ 5270DN/5280DW/4040CN/...
  • Page 79: Transparent Print Data

    5.2.14. Transparent print data Esc&p#X (character codes) (27)(38)(112)#(88) <1Bh><26h><70h>#<58h>  This command enables you to print characters which are normally unprintable.  # is the number of bytes of data that follow the command.  Each byte of data is interpreted as a character code and the corresponding character in the currently selected symbol set is printed (if there is one).
  • Page 80: Downloadable Font Manipulation

    5.3. Downloadable font manipulation Fonts that you have bought on diskette can be downloaded to the printer from diskette or hard disk using the DOS COPY command or a font downloading applications program. To create your own fonts you can use PCL commands to send the various blocks of data that comprise a do(wnloadable font.
  • Page 81: Creating Downloadable Fonts

    5.4. Creating Downloadable Fonts 5.4.1. Downloading You can download existing fonts (that is, ones that you have bought or ones that you have created previously) using either a font downloading application program or the DOS command COPY/b <filename> PRN In addition, some word-processing and DeskTop publishing programs will automatically download the fonts that have been used in a document when that document is printed.
  • Page 82  The Font descriptor has information for the whole character set. When this font descriptor is sent to the printer with a font header to identify the font ID, the descriptor parameters become the basis of the downloaded fonts.  The data format for each type of font descriptor block is shown below. <Bitmap font>...
  • Page 83 <Intellifont Scalable Bound font> Byte 15 (MSB) (LSB) 0 0 Font Descriptor Size (>80) 2 Descriptor Format (10) Font Type 4 Style MSB Reserved 6 Base Line Position 8 Cell Width 10 Cell Height 12 Orientation Spacing 14 Symbol Set 16 Pitch (Default HMI) 18 Height 20 x-Height...
  • Page 84 <Intellifont Scalable Unbound font> Byte 15 (MSB) (LSB) 0 0 Font Descriptor Size (<88) 2 Descriptor Format (11) Font Type (10) 4 Style MSB Reserved 6 Base Line Position 8 Cell Width 10 Cell Height 12 Orientation Spacing 14 Symbol Set 16 Pitch (Default HMI) 18 Height 20 x-Height...
  • Page 85 <TrueType Scalable Bound font> Byte 15 (MSB) (LSB) 0 0 Font Descriptor Size (>72) 2 Descriptor Format (15) Font Type 4 Style MSB Reserved 6 Base Line Position 8 Cell Width 10 Cell Height 12 Orientation Spacing 14 Symbol Set 16 Pitch (Default HMI) 18 Height 20 x-Height...
  • Page 86 Unbound font. Character codes corresponding to MSL numbers are acceptable. Unbound font. Character codes corresponding to Unicode numbers are acceptable. When a 7-bit font or 8-bit font is selected, it is possible for codes 00H to FFH to load characters or delete them.
  • Page 87 Symbol set name Symbol set ID Symbol set name Symbol set ID Default Set Math-7 Line Draw-7 HP Large Characters (264x Terminals) ISO 60: Danish/Norwegian ISO 61: Norwegian version 2 Roman Extensions ISO 4: United Kingdom ISO 25: French ISO 69: French HP German ISO 21: German Greek-8...
  • Page 88 For Intellifont-scalable fonts only, the default HMI is calculated as follows. Default HMI (in dots) = (300 x master design pitch x required point size) / {Master x Resolution /(height x 8)} Default HMI ( in dots ) = (300 x master design pitch x required point size) / {72.307 x scale factor} Height (UI) - specifies the height of the font in 1/4 dots.
  • Page 89 Value Vendor Reserved Agfa Division, Miles Inc. Bitstream Inc. Linotype Company The Monotype Corporation plc Adobe Systems Inc. The Typeface family number can be 0 to 4095. This value is calculated as follows; (TrueType base value) + (Vendor value x 4096) = Typeface Family ...
  • Page 90  Font number (ULI) - ignored by these HL Series printers. This 4-byte field specifies the number assigned to the font by the vending company. The number is stored as a hexadecimal value in the lower three bytes, bytes 44, 45 and 46. ...
  • Page 91 Unicode Symbol Index Bit Field Designated Use 32 - 63 Miscellaneous uses (South Asian, Armenian, other alphabets, bar codes, OCR, Math, etc.) 28 - 31 Reserved for Latin fonts. 22 - 27 Reserved for platform / application variant fonts. 3 - 21 Reserved for Cyrillic, Arabic, Greek and Hebrew fonts.
  • Page 92: Unicode Symbol Index Character Complement Bits

    5.4.3. Unicode symbol index character complement bits Bit Field Designated Use 0 if font is compatible with 7-bit ASCII; otherwise set to 1. 0 if font is compatible with ISO 8859/1 Latin 1 (West Europe) character sets; otherwise set to 1. 0 if font is compatible with ISO 8859/2 Latin 2 (East Europe) character sets;...
  • Page 93: Sending A Character Code

    *Segment Size (UI) - indicates the size of each item in the data segment. *Data segment - AP - Application support segment (reserved) CC - Character Complement Function and form are as same as character complement flag in the font descriptor. This is only for unbound fonts.
  • Page 94 <Bitmap continuation data> Byte Data Format Continuation Raster Character Data  The bytes which follow the header are the raster data that make up the character.  Attributes are in one of four numerical formats. Unsigned integer (UI) 0 to 65535 Signed integer (SI) –32768 to 32767 Unsigned byte (UB) 0 to 255 Boolean - 0 or 1...
  • Page 95 <Intellifont-scalable contour data> Contour Data size Metric data offset Character Intellifont data offset Contour tree offset XY data offset Metric data Character Intellifont Data Contour tree data XY coordinate data <Continuation data for Intellifont scalable contour data> Byte Data Format Continuation 2 - 3 Continuous contour character data...
  • Page 96 [TrueType scalable font] <TrueType character descriptor> Byte Data Format (15) Continuation (0) 2 - 3 Descriptor size Class (15) Additional descriptor size 2 + Desc.size Character Data Size 4 + Desc. size Glyph ID 6 + Desc. size TrueType Glyph Data Format (15) Continuation (0) 2 - 3...
  • Page 97 Portrait character Paper motion Raster scan Top offset = 22 dots Baseline Character height = 31 dots Cursor position after character has been printed Character reference point Left offset Character width = 26 dots = 2 dots Delta X = 30 dots CHAPTER 2 PCL - 78...
  • Page 98 Landscape character Paper motion Top offset = 27 dots Character height = 26 dots Raster scan Left offset = 22 dots Baseline Character width = 31 dots Cursor position after character has been printed Character reference point Delta X = 30 dots CHAPTER 2 PCL - 79...
  • Page 99: Using Graphics

    USING GRAPHICS This HL Series printer affords the user considerable flexibility in the creation of graphic images. Vector, raster and rectangle graphics are available, all of which allow a range of shading and filling options. The HP-GL/2 graphics commands that are supported are described in the HP-GL/2 section of this manual. 6.1.
  • Page 100: Set Pattern Transparency

    For example Pattern Source image Destination image With transparent With opaque source image source image Possible results 6.1.2. Set pattern transparency Esc*v#O (27)(42)(118)#(79) <1Bh><2Ah><76h>#<4Fh>  This command sets the pattern transparency.  # is either 0 or 1. Set # to 0 to select transparent mode and to 1 to specify opaque mode. ...
  • Page 101: Set Area Fill Identity

    For example Pattern Source image (Source image is transparent) Destination image With transparent With opaque pattern pattern Possible results 6.1.3. Set area fill identity Esc*c#G (27)(42)(99)#(71) <1Bh><2Ah><63h>#<47h>  This command sets the pattern ID of a shading tone, a fill pattern or a user-defined pattern for subsequent selection with the Set Pattern Type command.
  • Page 102: User-Defined Pattern Command

    6.1.4. User-defined pattern command Esc*c#W [ data ] (27)(42)(99)#(87) <1Bh><2Ah><63h>#<57h>  # should be in the range 0 ~ 32767.  # stands for the number of pattern data bytes.  User defined patterns can be defined by binary data or an 8 byte pattern descriptor. ...
  • Page 103: User-Defined Pattern Control

    6.1.6. User-defined pattern control Esc*c#Q (27)(42)(99)#(81) <1Bh><2Ah><63h>#<51h>  # = 0 deletes all (temporary and permanent) user-defined patterns from the printer memory.  # = 1 deletes all temporary user-defined patterns from the printer memory.  # = 2 deletes the pattern whose ID number was specified most recently. ...
  • Page 104  See the following example for programming examples using patterns. Pattern example 10 WIDTH "LPT1:", 255 20 ESC$ = CHR$(27) 30 REM --- RESET PRINTER --- 40 LPRINT ESC$; "E"; 50 REM --- SET SOURCE=TRANSPARENT --- 60 REM --- SET PATTERN=OPAQUE --- 70 LPRINT ESC$;...
  • Page 105: Plotting Rectangles

    6.2. Plotting Rectangles Drawing rectangles is a basic case of printing graphics: the source image consists solely of the rectangle itself. Thus only the pattern transparency has any bearing on the final effect - the source transparency is irrelevant. 6.2.1. Cursor position Position the cursor using the commands described in the chapter entitled "The Page".
  • Page 106  See the following example for programming examples using gray scales. Gray scale example 10 ESC$ = CHR$(27) 20 WIDTH "LPT1:", 255 30 REM --- DRAW A PATTERN USING 64 GRAY SCALES --- 40 X = 50: Y = 100: XL=50 :YL=200 50 FOR GRAY = 0 TO 100 STEP 2 60 GOSUB 220 70 X=GRAY*10+50 :XL=X-XL...
  • Page 107: Raster Graphics

    6.3. Raster Graphics 6.3.1. Positioning the cursor Position the cursor using the commands described in the chapter entitled "The Page", using dots, decipoints or rows and columns as coordinate units. 6.3.2. Set raster resolution Esc*t#R (27)(42)(116)#(82) <1Bh><2Ah><74h>#<52h>  This command sets the raster image resolution in dots per inch. ...
  • Page 108: Set Raster Area Height

    6.3.5. Set raster area height Esc*r#T (27)(42)(114)#(84) <1Bh><2Ah><72h>#<54h>  This command sets the height of the raster image to be printed.  # is the number of raster rows.  If you use this command after using a Start Raster Graphics or a Transfer Raster Data command, it does not take effect until after the next End Raster Graphics command.
  • Page 109  # = 3 indicates that delta row compression is to be used. In this method byte sequences identify how each raster row differs from the last row that was transmitted. The first byte identifies the number of consecutive bytes (the value of the most significant 3 bits plus 1) to be changed and the position in the line at which to start substituting the replacement bytes (the least significant 5 bits plus 1).
  • Page 110  # = 9 Mode 9 compression Like mode 3 compression, this mode 9 compression data contains only the difference of the current row from the preceding row. Replacement data often consists of a repetition of a particular byte in mode 3 compression. Mode 9 compression is effective in such cases.
  • Page 111 If bit 6 and bit 5 are '1', then an optional offset byte follows the control byte. If the value of this optional offset byte is 255, another (second) optional offset byte follows the first optional offset byte. The addition of the offset count in the control byte and any optional offset bytes gives the total offset count.
  • Page 112 Byte Data Description position 0 - 1 6E 6E 'nn' This is header ID. 2 - 3 0A 00 Reserved 4 - 7 5E 00 00 00 Picture data start offset from header top 8 - 11 File length File length including 94 Byte header. If file length is 65,536 byte, these 4 bytes become "00 00 01 00"...
  • Page 113 We recommend 150 dpi or less resolution for APT to reduce data size.  # = 1025 indicates the Brother original Compression Method.  # = 1026 indicates the Brother Advanced Data Transfer Mode. CHAPTER 2 PCL - 94...
  • Page 114: Start Raster Transfer

    6.3.9. Start raster transfer Esc*r#A (27)(42)(114)#(65) <1Bh><2Ah><72h>#<41h>  This command signals the start of the transfer of a raster image to the printer.  # is 0 or 1.  # = 0 denotes that the image will be printed starting from the left edge of the logical page. ...
  • Page 115 Raster graphics example 10 REM ***** A EXAMPLE OF RASTER GRAPHICS ***** 20 ESC$=CHR$(27) 30 WIDTH "LPT1:",255 40 REM --- SET GRAPHICS RESOLUTION TO 300 DPI --- 50 LPRINT ESC$+"*t300R"; 60 REM --- START RASTER GRAPHICS --- 70 LPRINT ESC$+"*r1A"; 80 REM --- TRANSFER RASTER GRAPHICS --- 90 FOR I=1 TO 28 100 REM --- TRANSFER 1 LINE OF DOTS (4 byte = line) ---...
  • Page 116: Horizontal 1200-Dpi Image Format Mode (Raster Graphic Mode 1027)

    6.3.13. Horizontal 1200-dpi image format mode (Raster Graphic Mode 1027) The printer supports 1200 dpi printing for special image formats in 1200 dpi mode. We recommend that the installed printer memory is 10 Mbytes or more for 1200 dpi printing. To set 1200 dpi mode, 1.
  • Page 117 <Compressed Image Data> Data compression compresses the original image data word by word (16 bits). The compressed data consists of both horizontal compression which uses 16 bit, 8 bit and 4 bit repeating patterns within 1 word or 2 words of data and vertical compression which indicates how many times to repeat the same data as in the previous line within 1 word of data.
  • Page 118: Vector Graphics

    6.4. Vector Graphics For large-scale graphic images it is more efficient to use vector graphics. In LaserJet emulation mode you can set up the page area on which to print vector graphics images. The vector graphics capabilities of these HL Series printers working in HP-GL/2 mode are described in the HP-GL/2 section of this manual.
  • Page 119: The Picture Frame

    6.5. The Picture Frame The PCL picture frame is the rectangular area of the page on which you can print graphic images. You can position and size the picture frame to suit your requirements and achieve effects such as scaling or distortion of vector graphics images.
  • Page 120: Macros

    MACROS 7.1. The Purpose of a Macro A macro is a sequence of commands that you wish to execute. You can specify the command sequence and download it to the printer after which you can execute it with a single command. For example, you might wish to draw a raster image at the top of each page you print.
  • Page 121: End Macro Definition

    7.2. Defining a Macro To define a macro you must first assign an ID number to it, then send to the printer a Start Macro Definition command, the macro definition itself (consisting of a sequence of PCL commands) and finally an End Macro Definition command.
  • Page 122: Running A Macro

    7.3. Running a Macro Macros can be invoked in three different ways: they can be 'executed', 'called' or 'enabled for overlay'. When a macro is 'executed' it uses the current modified print environment. Any changes it makes to the environment are permanent.
  • Page 123: Handling Macros

    7.4. Handling Macros 7.4.1. Delete all macros Esc&f6X (27)(38)(102)(54)(88) <1Bh><26h><66h><36h><58h>  This command deletes all macros from the printer's memory. 7.4.2. Delete all temporary macros Esc&f7X (27)(38)(102)(55)(88) <1Bh><26h><66h><37h><58h>  This command deletes all temporary macros from the printer's memory. Temporary macros are those which have not been made permanent with the Esc&f10X command.
  • Page 124: Execute Data

    120 REM --- SET FONT TO LETTER GOTHIC (18 DOTS WIDE) --- 130 LPRINT ESC$+"(s0p16.66h8.5v0s0b130T"; 140 REM --- PRINT COMMENT --- 150 LPRINT "Printed by this printer"; 160 REM --- SET CURSOR POSITION X=1790 DOT, Y=-40 DOT --- 170 LPRINT ESC$+"*p1790x-40Y"; 180 REM --- PERFORM SHADING --- 190 REM --- SET SHADING WIDTH TO 23 CHARACTERS + 20 DOTS --- 200 LPRINT ESC$+"*c";23*18+20;"A";...
  • Page 125: Mio Video I/O Port Control

     If the key is [RENAME], this command allows the printer to change the name field of the AppleTalk name binding protocol. <ESC>&b#WRENAME<sp>printername printername should be specified with 1 to 31 characters. The characters $00 to $FF (except for $00, @, :, *, =, $C5) can be used for the printername. $00 is used as the terminator.
  • Page 126: Status Readback

    STATUS READBACK 8.1. Introduction Status readback features are explained in this section. The printer sends a status response message after receiving a request for its status by these commands. You can get the information as shown below from the printer. - available printer (user) memory - current available fonts and symbol sets - the ID numbers of downloaded macros and user-defined patterns to verify their...
  • Page 127: Status Response Syntax

    8.5. Status Response Syntax All of the status responses begin with "PCL", Carriage Return control code and a Line Feed control code. The response is ended by a Carriage Return and a Line Feed control code. At the end of the transaction, status responses are ended by a Form Feed Control code.
  • Page 128: Inquire Status Readback Entity

    all downloaded entities downloaded entity as temporary downloaded entity as permanent All cartridge/cards the cartridge/card which has the highest priority. the cartridge/card which has the lowest priority  When the location value is 0, 1 and 2, it ignores the unit value (which might be set to any value). The default value is 0, and whenever you reset the printer, the value is reset to the default value.
  • Page 129: Bitmap Fonts

    In a font status response, the "SELECT=" keyword line specifies the individual fonts. The font is identified by this line by specifying the font selection characteristics such as symbol set, spacing, pitch, height, style, stroke weight, and typefaces. It returns the "SELECT=" for all font types. In a status response, the five characters "<", "E", "s", "c", and "&>"...
  • Page 130: Font Extended Response

    "LOCUNIT=" specifies the location unit of the font which is selected at present. The value field of the Set Status Readback Unit command is related to the value returned. For instance, if the printer font which is selected at present is a bold 12 point Presentation bitmap font which is selected from a cartridge, and a font entity request with the location type set to 1 is produced, the response will be returned as follows.
  • Page 131: Macro Response

    For instance, a font extended response with the location type set to 1( selected at present ) where the font which is selected at present is the internal Pc Tennessee (18 point identified for printing) bold, returns the response as follows.
  • Page 132: Entity Error Codes

    Status location type 1 (selected at present) is an incorrect location for unbound font symbol sets and returns an error. Example responses in this section for "SYMBOLSETS=" do not indicate the complete list of symbol sets which are available internally, but only a partial list . The internal symbol sets depend on the printer and might differ according to the printer.
  • Page 133: Font Cache

    These stored bitmap characters are known as the font cache. If a Brother HL-Series printer encounters a memory low condition, all of the font cache is automatically deleted. Also, font cache and temporary entities can be cleared by a Printer Reset command.
  • Page 134: Index

    INDEX end-of-line wrap .............. 13 entity error code ............113 entity status ..............107 entity status response ............ 109 adaptive compression ............90 envelope ................15 anchor point ..............100 environment ..............14 AppleTalk configuration ..........105 error response APT ................. 94 memory ..............
  • Page 135 page dimensions landscape ..............34 portrait ................ 32 internal font ..............48 page length ..............40 italic ................. 58 page size ................15 paper side selection ............27 paper source ..............22 paper type ................ 15 Job separation command ..........27 pattern ................
  • Page 136 select ................58 unbound scalable font ........... 110 style ................50, 57 underlining text ............... 60 select ................57 unit of measure ..............36 symbol collection ............50 units ................. 36 symbol set ............... 50 upper cassette ..............22 define ................52 upright ................
  • Page 137 CHAPTER 3 PCL5C CHAPTER 3 PCL5C - 1...
  • Page 138: Introduction

    ONTENTS INTRODUCTION ......................... 3 COLOR MODES ......................... 4 2.1. Using Simple Color Mode - Set Simple Color ................4 2.2. Using PCL Color Mode - Set PCL Color Setting ................ 5 2.3. Using HP-GL/2 Color Mode ......................9 COLOR PALETTES ......................10 3.1.
  • Page 139: Introduction

    INTRODUCTION This chapter describes the enhanced commands for the PCL5C emulation. PCL5C is upwards-compatible with PCL5e. For the commands of PCL5e, refer to "Chapter 2 PCL" which describes the PCL5e emula