Brother HL- 2400Ce manual

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

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Brother HL- 2400Ce, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Brother HL- 2400Ce one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Brother HL- 2400Ce. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Brother HL- 2400Ce should contain:
- informations concerning technical data of Brother HL- 2400Ce
- name of the manufacturer and a year of construction of the Brother HL- 2400Ce item
- rules of operation, control and maintenance of the Brother HL- 2400Ce item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Brother HL- 2400Ce alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Brother HL- 2400Ce, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Brother service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Brother HL- 2400Ce.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Brother HL- 2400Ce item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    B B r r o o t t h h e e r r L L a a s s e e r r P P r r i i n n t t e e r r T T T e e e c c c h h h n n n i i i c c c a a a l l l R R R e e e f f f e e e r r r e e e n n n c c c e e e G G G u u u i i i d d d e e e < < M M O O D D E E L L S S C C O O V V E E R R E E D D B B Y Y T T H H I I S S M M A A N N U U A A L L > > H H L L - - 1 1 [...]

  • Page 2

    Tradem ark acknowledgments Brother is a registered trademark of Brother Industries Ltd. PostScript is a registered trademark of Adobe Incorporated. Epson is a registered trademark and FX - 850 a trademark of Seiko Epson Corporation. Hewlett Packard, HP, LaserJet a nd PCL are registered trademarks and LaserJet, HP - GL, and HP - GL/2 are trademarks [...]

  • Page 3

    i TABLE OF CONTENTS GLOSSARY CHAPTER 1 INTRODUCT ION 1. ABOUT THE MANUAL ----------------------------------------------------------------------------------- 3 2. AREAS OF USE ------------------------------------------------------------------------------------------ 4 CHAPTER 2 PCL 1. COMMAND LIST ----------------------------------------------------[...]

  • Page 4

    ii CHAPTER 6 EPSON FX - 850 1. COMMAND LIST ------------------------------------------------------------------------------------------ 3 2. INTRODUCTION ----------------------------------------------------------------------------------------- 5 3. EMULATION DETAILS ---------------------------------------------------------------------------------- 6[...]

  • Page 5

    iii 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 us e. Anchor point The top left - hand corner of the PCL picture frame. You can position this on the page using a PCL command. Anisotropic scaling A form of i[...]

  • Page 6

    iv Control code An ASCII code that tells the computer to perform a particular function, such as a carriage return. Control panel reset A reset or factory reset performed using the printer control panel. Cross - hatching A met hod of shading using perpendicular diagonal lines that cross one another. Current units The current unit type in use in HP -[...]

  • Page 7

    v Fill A shading applied to a shape that you have drawn. Fixed spacing See monospacing. Font A collection of characters that are designed to work in harmony together. A font has seve ral characteristics that identify it uniquely: character or symbol set, spacing, pitch, height or point size, style, stroke weight and typeface. Fonts can either be re[...]

  • Page 8

    vi Isotropic scaling A form of image scaling using the SC command in HP - GL or HP - GL/2 mode in which the user units must be of equal size. Hence it may not be possible to use the entire graphics window to display the image. Justification The way in which text is aligned. For example, left justification involves aligning the left end of every lin[...]

  • Page 9

    vii Pen Although this printer is a laser printer the HP - GL/2 and HP - GL graphics languages retains the notion of a pen and allows you to select between two pens, white and b lack. You must select a pen before you can draw anything. The HP - GL and HP - GL/2 language were originally developed for use with plotters and the terminology remains. Per[...]

  • Page 10

    viii Print position The position from which printing of the next character or graphic object will begin, providing that no operations that change the print position are performed in the interim.[...]

  • Page 11

    ix Proportional spacing Fonts intended for high quality typographic output use a method of character spacing in which the space occupied by a single character on a line of text depends on the individual design of the character. This is known as proportional spacing. Scalable fonts are almost invariably propor tionally spaced. RAM Random Access Memo[...]

  • Page 12

    x Secondary font In LaserJet mode the printer maintains two current font settings. The secondary font is the second of these.[...]

  • Page 13

    xi Serif A kind of typeface normally u sed for body text. Serif typefaces have little hooks (serifs) on the individual characters that makes text more readable. Soft clip limits See graphics window. The soft limits are determined by the IW command. Source image The graphic image that is app lied to the destination image in the LaserJet print model.[...]

  • Page 14

    xii User units Coordinate units specified by the user with the HP - GL and HP - GL/2 SC command. Vector graphics A method of defining graphic images in terms of coordinates, points and lines. The HP - GL and HP - GL/2 graphics languages use this method. Vertical plot size The original vertical size of an imported HP - GL and HP - GL/2 image. VMI Ve[...]

  • Page 15

    2001/10/02 CHAPTER 1 INTRODUCTION - 1 CHAPTER 1 INTRODUCTION[...]

  • Page 16

    2001/10/02 CHAPTER 1 INTRODUCTION - 2 C ONTENTS 1. ABOUT THE MANUAL ............................................................................................................... 3 2. AREAS OF USE ........................................................................................................................... 4 2.1 Using Word Processing [...]

  • Page 17

    2001/10/02 CHAPTER 1 INTRODUCTION - 3 1. ABOUT THE MANUAL This technical reference manual is intended to help yo u get the most out of each of the emulation modes supported by your HL - Series laser printer. It is divided into nine sections - this introductory section and one section for each of the emulation modes. Each emulation mode section desc[...]

  • Page 18

    2001/10/02 CHAPTER 1 INTRODUCTION - 4 2. AREAS OF USE There are several different applications for which you may want to use your HL - Series laser printer. Four general areas are outlined in the following sections. 2.1 Using Word Processing Packages and Spreadsheets You may simply wish to u se the printer with your software application packages, s[...]

  • Page 19

    2001/10/02 CHAPTER 1 INTRODUCTION - 5 2.4 Font Development In LaserJet mode you can send your own character designs to an HL - Series laser printer and print text using them. To do th is 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 [...]

  • Page 20

    2001/10/02 CHAPTER 1 INTRODUCTION - 6[...]

  • Page 21

    2001/10/02 CHAPTER 2 "PCL" - 1 CHAPTER 2 PCL PRINTER CONTROL LANGUAGE[...]

  • Page 22

    2001/10/02 CHAPTER 2 "PCL" - 2 C ONTENTS 1. COMMAND LIST .................................................................................................................................... 7 2. INTRODUCTION ................................................................................................................................. 10[...]

  • Page 23

    2001/10/02 CHAPTER 2 "PCL" - 3 4.2.9. Units ............................................................................................................................................. 25 4. 2.10. Unit of measure ............................................................................................................................ 2[...]

  • Page 24

    2001/10/02 CHAPTER 2 "PCL" - 4 5.2.9. Scaling the scalable fo nts vertically or horizontally ............................................................................ 46 5.2.10. Selecting the style ....................................................................................................................... 46 5.2.11. Selectin[...]

  • Page 25

    2001/10/02 CHAPTER 2 "PCL" - 5 6.5.5. Specify vertical plot size ................................................................................................................. 92 6.5.6. Specify horizontal plot size ............................................................................................................. 92 7. MACROS[...]

  • Page 26

    2001/10/02 CHAPTER 2 "PCL" - 6 8.5.19. Memory error response ................................................................................................................ 107 8.5.20. Flush all pages command ............................................................................................................ 107 8.5.21. Echo comm[...]

  • Page 27

    2001/10/02 CHAPTER 2 "PCL" - 7 1. COMMAND LIST Control Codes 11 Escape sequences 12 Esc&k#G Line termination 12 E sc&s#C End - of - line wrap 12 EscY Display function mode 13 EscZ Display function mode 13 Environments 14 Job Control 15 Esc&l#A Page size 15 Esc&l#G Output tray 15 Esc&l#H Paper source 16 Esc&l#U Left[...]

  • Page 28

    2001/10/02 CHAPTER 2 "PCL" - 8 Esc(s#H, Esc)s#H Selecting the pitch 41 Esc(s#V, Esc)s#V Selecting the height 42 EscCR!#H, EscCR!#V Scaling the scalable fonts vertically or horizontally 42 Esc(s#S, Esc)s#S Selecting the style 42 Esc(s#B, Esc)s#B Selecting the st roke weight 43 Esc(s#T, Esc)s#T Selecting the typeface 43 Esc&p#X Transpar[...]

  • Page 29

    2001/10/02 CHAPTER 2 "PCL" - 9 EscCR!#E Execute data 89 Esc&b#W AppleTalk configuration 89 EscCR!1234#M MIO video I/O port control 90 Status Readback 91 Esc*s#T Set status readback location type 92 Esc*s#U Set status readback location unit 92 Esc*s#I Inquire status readback entity 93 E sc*s1M Free space command 97 Esc&r#F Flush al[...]

  • Page 30

    2001/10/02 CHAPTER 2 "PCL" - 10 2. INTRODUCTION This laser printer provides a complete emulation of the supported Hewlett Packard LaserJet printer. Features include raster and vector graphics, suppor t 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 [...]

  • Page 31

    2001/10/02 CHAPTER 2 "PCL" - 11 3. CONTROLLING THE PRIN TER 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> ASC II code 8. This code moves the cursor one column to t[...]

  • Page 32

    2001/10/02 CHAPTER 2 "PCL" - 12 3.2. Escape Sequences Escape sequences , also known as PCL (Printer Contro l 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 paramet[...]

  • Page 33

    2001/10/02 CHAPTER 2 "PCL" - 13 3.2.3. Display functions mode You can choose to make the printer print escape sequences instead of executing them. Send the printer the following sequence: EscY (27)(89) <1B><59> Now the printer prints out escape sequences and prints the characters of the control codes. It does not execute them.[...]

  • Page 34

    2001/10/02 CHAPTER 2 "PCL" - 14 3.3. Environments 3.3.1. Factory default environment The factory default environment is the collection of printer settings programmed into t he 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 [...]

  • Page 35

    2001/10/02 CHAPTER 2 "PCL" - 15 4. JOB CONTROL 4.1.1. Page size Esc& l #A (27)(38)(108)#(65) <1Bh><26h><6Ch>#<41h> # stands fo r 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. Model H[...]

  • Page 36

    2001/10/02 CHAPTER 2 "PCL" - 16 • When the printer receives this command any unprinted pa ges 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. • Depending on your model, you may also set[...]

  • Page 37

    2001/10/02 CHAPTER 2 "PCL" - 17 4.1.3. 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 so urce remains the same. • If # = 1 the current page is printed and the upper casset[...]

  • Page 38

    2001/10/02 CHAPTER 2 "PCL" - 18 HL - 1050 HL - 1060/ 1070 HL - 1250/ 1270N/ P2500 HL - 1660e / 2060 HL - 2400C HL - 2400Ce HL - 3400C N HL - 1450 /1470N #=0 Eject ← ← ← ← ← ← ← #=1 Sheet Feeder Tray 1 ← ← ← ← ← ← #=2 Manual Feed ← ← ← ← ← ← ← #=3 N/A ← ← Envelope ← ← ← N/A #=4 N/A Tray 2 ?[...]

  • Page 39

    2001/10/02 CHAPTER 2 "PCL" - 19 4.1.5. Top offset registration Esc&l#Z (27)(38)(108)#(90) <1Bh><26h><6Ch>#<5Ah> # stands for the distance in decipoints (1/720") that the top edge of the logical page is to be moved. • Values for # may be in the range - 32,767 to 32,767. • The distance specified is relat[...]

  • Page 40

    2001/10/02 CHAPTER 2 "PCL" - 20 • # = 2 indicates the back face. If the currently processing page is an odd page, the printer finishes the processing of the page. If the odd page has alrea dy been processed onto the page and the even page has not been processed yet, this command is ignored. If the currently processing page is an even pa[...]

  • Page 41

    2001/10/02 CHAPTER 2 "PCL" - 21 4.1.14. Change emulation mode EscCRGL (27)(13)(71)(76) <1Bh><0Dh><47h><4Ch> This command changes the emulation mode to HP - GL mode. EscCRAB (27)(13)(65)(66) <1Bh><0Dh><41h><42h> This command changes the emulation mode to BR - Script Batch mode. EscCRAI (27)(1[...]

  • Page 42

    2001/10/02 CHAPTER 2 "PCL" - 22 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. 4.2.2. Printable area The p[...]

  • Page 43

    2001/10/02 CHAPTER 2 "PCL" - 23 4.2.6. Portrait page dimensions (DEFAULT VALUES) A B C D E F G H F G H E G G Physical page Printable area Logical page Default HP-GL/2 picture frame B Physical page length D Maximum logical page length F Distance from edge of physical page to edge of logical page PAPER SIZE A B C D E F G H LETTER 2550 3300 [...]

  • Page 44

    2001/10/02 CHAPTER 2 "PCL" - 24 4.2.7. Landscape page dimensions (DEFAULT VALUES) A B C D E F G H F G H E G G Physical page Printable area Logical page Default HP-GL/2 picture frame B Physical page length D Maximum logical page length F Distance from edge of physical page to edge of logical page PAPER SIZE A B C D E F G H LETTER 3300 2550[...]

  • Page 45

    2001/10/02 CHAPTER 2 "PCL" - 25 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 cu[...]

  • Page 46

    2001/10/02 CHAPTER 2 "PCL" - 26 • If the current cursor position is to the right of your new right margin setting, the cursor will be moved to the new right margi n. • The factory default left and right margin settings are at the left and right edges of the logical page respectively. • Depending on your model, margin settings can be[...]

  • Page 47

    2001/10/02 CHAPTER 2 "PCL" - 27 4.2.14. Set ting 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 [...]

  • Page 48

    2001/10/02 CHAPTER 2 "PCL" - 28 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"; 100 LPRIN[...]

  • Page 49

    2001/10/02 CHAPTER 2 "PCL" - 29 Top margin Bottom margin Text length Page length 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 phys ical size of the p[...]

  • Page 50

    2001/10/02 CHAPTER 2 "PCL" - 30 4.2.20. Positioning the cursor You can position the curso r 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 positio[...]

  • Page 51

    2001/10/02 CHAPTER 2 "PCL" - 31 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 posit[...]

  • Page 52

    2001/10/02 CHAPTER 2 "PCL" - 32 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 - decipo ints Esc&a#H (27)(38)(97)#(72) <1Bh><26h><61h>#<48h&[...]

  • Page 53

    2001/10/02 CHAPTER 2 "PCL" - 33 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 • This [...]

  • Page 54

    2001/10/02 CHAPTER 2 "PCL" - 34 • All subsequent text is printed in the newly selected orientation. • The PCL coordinate system and margin settings are rotated through the specified angle. Hence the cursor coordinates will change. • HP - GL/2 graphics images cannot be rotated using this command. • The factory default orientation i[...]

  • Page 55

    2001/10/02 CHAPTER 2 "PCL" - 35 5. USING FONTS 5.1. Introduction A font is a collection of characters that have common characteristics, such as size, style and typeface, and which r anges over a given set of symbols. For example, 12 point Tennessee Bold in the Roman - 8 symbol set is a typical HL Series font . Different sorts of fonts are[...]

  • Page 56

    2001/10/02 CHAPTER 2 "PCL" - 36 Microsoft Windows 3.1 TrueType Compatible Fonts: HL - 1050/1070/1250/ 1270N/1450/1470N/ P2500/1660e/2060/ 2400C/2400Ce/3400CN/1650/1670N/3260N/2460 Ten nessee Roman, Italic, Bold, Bold Italic ü Helsinki Medium, Oblique, Bold, BoldOblique ü BR Symbol ü W Dingbats ü BR - Script Fonts: HL - 1050/1070/1250/[...]

  • Page 57

    2001/10/02 CHAPTER 2 "PCL" - 37 You can buy cartridge/card - based bitmap fonts and scalable typefaces. Plug the cartridge/card into one of the printer’s cartridge/card slots and then select any font from them as if it were in the printer’s ROM. Depending on your model, you can also save bitmap fonts and scalable typeface in the flash[...]

  • Page 58

    2001/10/02 CHAPTER 2 "PCL" - 38 5.1.9. Downloadable fonts You can buy diskettes containing fonts which can be copied directly to the printer using t he DOS COPY command. You can also design your own fonts and download them to the printer. One disadvantage of downloaded fonts is that they reside in the printer’s RAM memory. The printer a[...]

  • Page 59

    2001/10/02 CHAPTER 2 "PCL" - 39[...]

  • Page 60

    2001/10/02 CHAPTER 2 "PCL" - 40 5.1.16. Symbol set The symbol set is the list of symbols that constitute a particular font. Normally, symbol sets contain lower and upper case letters, numbers, punctuation marks and a selection of other commonly used symbols. Some symbol sets are designed for specific ne eds, for example, for generating te[...]

  • Page 61

    2001/10/02 CHAPTER 2 "PCL" - 41 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 [...]

  • Page 62

    2001/10/02 CHAPTER 2 "PCL" - 42 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 . 4 : Format (UB) - 1 for MSL (Intellifont), 3 for Unicode (TrueType). 5 : Symbol Set Type (UB) - 0, 1 o[...]

  • Page 63

    2001/10/02 CHAPTER 2 "PCL" - 43 Symbol map (Array of UI ) The symbol map, which has a list of s ymbol 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>#[...]

  • Page 64

    2001/10/02 CHAPTER 2 "PCL" - 44 User - defined symbol sets are defined by the command ESC ( f # W. Esc)symbol set ID (27)(41) <1Bh><29h> • This command selects the symbol set (character set) for the secondary font. • To select any of the ab ove symbol sets for the secondary font simply substitute ‘)’ for ‘(’ in the[...]

  • Page 65

    2001/10/02 CHAPTER 2 "PCL" - 45 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); 160 NEXT 170 LPRINT 180 REM --- PAPER EJECT --- 190 LPRINT C[...]

  • Page 66

    2001/10/02 CHAPTER 2 "PCL" - 46 • 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. • This value is ignored[...]

  • Page 67

    2001/10/02 CHAPTER 2 "PCL" - 47 Value Font Style 0 1 4 5 8 24 32 64 128 160 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 A[...]

  • Page 68

    2001/10/02 CHAPTER 2 "PCL" - 48 • The available values vary with the printer model. The following table shows the value for each typeface and availability. Typeface Set primary font Set secondary font 1050 1250/ P2500 1070 1270N 1660e / 2060 2400C /Ce 3400CN Alaska Esc(s4362T Esc)s4362T * * * * * * * Antique Oakland Esc(s4168T Esc)s4168[...]

  • Page 69

    2001/10/02 CHAPTER 2 "PCL" - 49 5.2.15. Underlining text Esc&d#D (27)(38)(100)#(68) <1Bh><26h><64h>#<44h> • This command enables the underline facility. • # is eithe r 0 or 3. A value of 0 signifies fixed underlining , 3 specifies floating underlining . • Fixed underlining means that the underline is draw[...]

  • Page 70

    2001/10/02 CHAPTER 2 "PCL" - 50 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 s end the various blocks of data that comprise a [...]

  • Page 71

    2001/10/02 CHAPTER 2 "PCL" - 51 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[...]

  • Page 72

    2001/10/02 CHAPTER 2 "PCL" - 52 • 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 d ata format for each type of font descriptor block is shown below. &l[...]

  • Page 73

    2001/10/02 CHAPTER 2 "PCL" - 53 <Intellifont Scalable Bound font> Byte 15 (MSB) 8 7 (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 22 Width Type Style L[...]

  • Page 74

    2001/10/02 CHAPTER 2 "PCL" - 54 <Intellifont Scalable Unbound font> Byte 15 (MSB) 8 7 (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 22 Width Type [...]

  • Page 75

    2001/10/02 CHAPTER 2 "PCL" - 55 <TrueType Scalable Bound font> Byte 15 (MSB) 8 7 (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 22 Width Type Sty le LSB[...]

  • Page 76

    2001/10/02 CHAPTER 2 "PCL" - 56[...]

  • Page 77

    2001/10/02 CHAPTER 2 "PCL" - 57 10 Unbound font. Character codes corres ponding to MSL numbers are acceptable. 11 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. It is also possib le to pri[...]

  • Page 78

    2001/10/02 CHAPTER 2 "PCL" - 58 Symbol set name Symbol set ID Symbol set name Symbol set ID De fault Set 0@ Math - 7 0A Line Draw - 7 0B HP Large Characters (264x Terminals) 0C ISO 60: Danish/Norwegian 0D ISO 61: Norwegian version 2 1D Roman Extensions 0E ISO 4: United Kingdom 1E ISO 25: French 0F ISO 69: French 1F HP German 0G ISO 21: Ge[...]

  • Page 79

    2001/10/02 CHAPTER 2 "PCL" - 59 For Intellifont - scalable fonts only, the default HMI is calculate d 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 (U[...]

  • Page 80

    2001/10/02 CHAPTER 2 "PCL" - 60 Value Vendor 0 Reser ved 1 Agfa Division, Miles Inc. 2 Bitstream Inc. 3 Linotype Company 4 The Monotype Corporation plc 5 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 • Serif style (UB) [...]

  • Page 81

    2001/10/02 CHAPTER 2 "PCL" - 61 • 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. • Font name (16 bytes) - ignored by these HL Series printers. This 1[...]

  • Page 82

    2001/10/02 CHAPTER 2 "PCL" - 62 Unicode Symbol Index Bit Field Designated Use 32 - 63 28 - 31 22 - 27 3 - 21 0 - 2 Miscellaneous uses (South Asian, Armenian, other alphabets, bar codes, OCR, Math, etc.) Reserved for Latin fonts. Reserved for platform / application variant fonts. Rese rved for Cyrillic, Arabic, Greek and Hebrew fonts. Symb[...]

  • Page 83

    2001/10/02 CHAPTER 2 "PCL" - 63 5.4.3. Unicode symbol index character complement bits Bit Field Designated Use 31 30 29 28 27 26 25 24 23 22 2,1,0 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 IS[...]

  • Page 84

    2001/10/02 CHAPTER 2 "PCL" - 64 *Segment Size (UI) - indicates the size of each item in the data segment. *Da ta 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. CP - Copyright Value should be A[...]

  • Page 85

    2001/10/02 CHAPTER 2 "PCL" - 65 <Bitmap continuation data> Byte Data 0 - 1 Format Continuation 2 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 Unsi[...]

  • Page 86

    2001/10/02 CHAPTER 2 "PCL" - 66 <Intellifont - scalable contour data> MSB LSB 4 Contour Data size 6 Metric data offset 8 Character Intellifont data offset 10 Contour tree offset 12 XY data offset 14 Metric data Character Intellifont Data Contour tree data XY coordinate data <Continuation data for Intellifont scalable contour data[...]

  • Page 87

    2001/10/02 CHAPTER 2 "PCL" - 67 [TrueType scalable font] <TrueType character descriptor> Byte Data 0 - 1 Format (15) Continuation (0) 2 - 3 Descriptor size Class (15) 4 ~ Additional descriptor size 2 + Desc.size Character Data Size 4 + Desc. size Glyph ID 6 + Desc. size TrueType Glyph Data 0 - 1 Format (15) Continuation (0) 2 - 3 De[...]

  • Page 88

    2001/10/02 CHAPTER 2 "PCL" - 68 Paper motion Raster scan Top offset = 22 dots Character height = 31 dots Baseline Cursor position after character has been printed Character width = 26 dots Delta X = 30 dots Left offset = 2 dots Character reference point Portrait character[...]

  • Page 89

    2001/10/02 CHAPTER 2 "PCL" - 69 Paper motion Raster scan Left offset = 22 dots Character width = 31 dots Baseline Cursor position after character has been printed Delta X = 30 dots Character reference point Top offset = 27 dots Character height = 26 dots Landscape character[...]

  • Page 90

    2001/10/02 CHAPTER 2 "PCL" - 70 6. 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 - G[...]

  • Page 91

    2001/10/02 CHAPTER 2 "PCL" - 71 For example Pattern Source image Destination image Possible results With transparent source image With opaque source image 6.1.2. Set pattern transparency Esc*v#O (27)(42)(118)#(79) <1Bh><2Ah><76h>#<4Fh> • This command sets the pattern trans parency . • # is either 0 or 1. Set # [...]

  • Page 92

    2001/10/02 CHAPTER 2 "PCL" - 72 For example Pattern Source image Destination image Possible results With transparent pattern With opaque pattern (Source image is transparent) 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 [...]

  • Page 93

    2001/10/02 CHAPTER 2 "PCL" - 73 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. • The f[...]

  • Page 94

    2001/10/02 CHAPTER 2 "PCL" - 74 6.1.6. User - defined pattern control Esc*c#Q (27)(42)(99)#(81) <1Bh><2Ah><63h>#<51h> • # = 0 deletes all (tempor ary and permanent) user - defined patterns from the printer memory. • # = 1 deletes all temporary user - defined patterns from the printer memory. • # = 2 deletes t[...]

  • Page 95

    2001/10/02 CHAPTER 2 "PCL" - 75 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$; "*v0n1O"; 80 REM --- BACKGROUND --- 90 LPRINT ESC$; "*c80G"; ESC$; "[...]

  • Page 96

    2001/10/02 CHAPTER 2 "PCL" - 76 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 curs or using the co[...]

  • Page 97

    2001/10/02 CHAPTER 2 "PCL" - 77 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 80 GOSUB 260 90 XL=X 100 NEXT GRAY 110 REM --- DRAW A PATTERN USING 8 GRAY SCALES ---[...]

  • Page 98

    2001/10/02 CHAPTER 2 "PCL" - 78 6.3. Raster Gr aphics 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> ?[...]

  • Page 99

    2001/10/02 CHAPTER 2 "PCL" - 79 X Y Y Y Y X X X (X1, Y1) (X1, Y1) (X1, Y1) (X1, Y1) Portrait Landscape Portrait Landscape #=0 #=0 #=3 #=3 (X1,Y1) = Cursor position[...]

  • Page 100

    2001/10/02 CHAPTER 2 "PCL" - 80 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[...]

  • Page 101

    2001/10/02 CHAPTER 2 "PCL" - 81 • # = 5 indicates that adaptive compression is to be used. This compression compresses multipl e rows (a block) into one transfer graphics command. Most other compression methods compress only one row to one transfer graphics command. One transfer graphic command (ESC *b##W) can contain only up to 32,767 [...]

  • Page 102

    2001/10/02 CHAPTER 2 "PCL" - 82 If the control bit is 0, replac ement data is not repeated data. Bits 6 to 3 contain the offset count. This field value is from 0 to 15. If this value is 15, the next byte of the control bytes is an optional offset count. The value of this optional offset count byte is from 0 to 255. If this optional offset[...]

  • Page 103

    2001/10/02 CHAPTER 2 "PCL" - 83 <Second section 66 66 66 66> Offset count = 2 Replacement count = 4 Replacement data = 66 1 1100 001 7 6 5 4 3 2 1 0 Replacement count = 1 + 2 = 3 Offset count = 3 Optional offset count byte = 0 Replacement data = 11 1 1 0 0 0 1 0 7 6 5 4 3 2 1 0 Replacement count = 2 + 2 = 4 Offset count = 2 Replacem[...]

  • Page 104

    2001/10/02 CHAPTER 2 "PCL" - 84 71 - 71 Lines/picture Same as above.[...]

  • Page 105

    2001/10/02 CHAPTER 2 "PCL" - 85 72 - 73 00 00 Reserved 74 - 75 Photometrics 00 00 or 01 00 00 00 : data 0 = white 01 00 : data 0 = black 76 - 77 02 00 Reserved 78 - 79 Fill order 01 00 or 02 00 01 00 : filled from MSB 02 00 : filled from LSB 80 - 81 01 00 Reserved 82 - 83 00 00 Reserved 84 - 85 01 00 Reserved 86 - 87 Resolution 200, 300, [...]

  • Page 106

    2001/10/02 CHAPTER 2 "PCL" - 86 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 107

    2001/10/02 CHAPTER 2 "PCL" - 87 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 GRAPHI[...]

  • Page 108

    2001/10/02 CHAPTER 2 "PCL" - 88 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 f or 1200 dpi printing. To set 1200 dpi mode, 1. Set 1200 dpi printing mode by usi[...]

  • Page 109

    2001/10/02 CHAPTER 2 "PCL" - 89[...]

  • Page 110

    2001/10/02 CHAPTER 2 "PCL" - 90 <Compressed Image Data> Data compression compresses the original image data word by word (16 bits). The comp ressed 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 time[...]

  • Page 111

    2001/10/02 CHAPTER 2 "PCL" - 91 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 vect or graphics images. The vector graphics capabilities of these HL Series printers working in HP - GL/2 mode are described in the H[...]

  • Page 112

    2001/10/02 CHAPTER 2 "PCL" - 92 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 requirement s and achieve effects such as scaling or distortion of vector graphics images. 6.5.1. The default picture frame The def[...]

  • Page 113

    2001/10/02 CHAPTER 2 "PCL" - 93 7. 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 seq uence 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. R[...]

  • Page 114

    2001/10/02 CHAPTER 2 "PCL" - 94 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 Ma cro Definition command. 7.2.1. Macro ID Esc&f#Y (27)(38)(102)#(89) <[...]

  • Page 115

    2001/10/02 CHAPTER 2 "PCL" - 95 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. A macro that is 'called&[...]

  • Page 116

    2001/10/02 CHAPTER 2 "PCL" - 96 7.4. Handling Macros 7.4.1. Delete all ma cros 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><[...]

  • Page 117

    2001/10/02 CHAPTER 2 "PCL" - 97 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 SH[...]

  • Page 118

    2001/10/02 CHAPTER 2 "PCL" - 98 • 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[...]

  • Page 119

    2001/10/02 CHAPTER 2 "PCL" - 99 8. STATUS READBACK 8.1. Introduction Status readback features are explained in this section. The pr inter 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 avail[...]

  • Page 120

    2001/10/02 CHAPTER 2 "PCL" - 100 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. The [...]

  • Page 121

    2001/10/02 CHAPTER 2 "PCL" - 101 4 0 1 2 all downloaded entities downloaded entity as temporary downloaded entity as permanent 5 0 1 n All cartridge/cards the cartridge/card which has the hi ghest 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[...]

  • Page 122

    2001/10/02 CHAPTER 2 "PCL" - 102 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 fo[...]

  • Page 123

    2001/10/02 CHAPTER 2 "PCL" - 103[...]

  • Page 124

    2001/10/02 CHAPTER 2 "PCL" - 104 "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 f[...]

  • Page 125

    2001/10/02 CHAPTER 2 "PCL" - 105 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, retur ns the response as follows. PCL INFO FONTS EXTENDED SELECT="<Esc>(8U<Esc>(s0[...]

  • Page 126

    2001/10/02 CHAPTER 2 "PCL" - 106 Status location type 1 (selected at present) is an incorre ct 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 sym[...]

  • Page 127

    2001/10/02 CHAPTER 2 "PCL" - 107 8.5.17. Font cache In order to print characters from a scalable font, the printer changes the scalable character outlines into sized bitmaps. These bitmapped characters are produced on a character - by - character basis and th e produced bitmapped characters are stored in memory. As it prints more pages us[...]

  • Page 128

    2001/10/02 CHAPTER 2 "PCL" - 108 9. INDEX A adaptive compression ................................................................. 75 anchor point ................................................................................. 84 AppleTalk configuration ............................................................ 89 APT ................[...]

  • Page 129

    2001/10/02 CHAPTER 2 "PCL" - 109 horizontal tab ............................................................................... 11 HP - GL/2 mode .............................................................................. 83 I internal font .................................................................................. 34 italic ...[...]

  • Page 130

    2001/10/02 CHAPTER 2 "PCL" - 110 status response ........................................................................... 91 memory .................................................................................... 98 status response synt ax ............................................................... 92 stroke weight ............[...]

  • Page 131

    2001/10/02 CHAPTER 3 "PCL5C" - 1 CHAPTER 3 PCL5C[...]

  • Page 132

    2001/10/02 CHAPTER 3 "PCL5C" - 2 C ONTENTS 1. INTRODUCTION .................................................................................................................................... 3 2. COLOR MODES ...................................................................................................................................[...]

  • Page 133

    2001/10/02 CHAPTER 3 "PCL5C" - 3 1. INTRODUCTION This chapter describes the enhanced commands for the PCL5C emulation. PCL5C is upwards - compatible with PCL5e. For the commands of PCL5e, refer to “C hapter 2 PCL” which describes the PCL5e emulation. If you are reading this technical manual for the first time, it is recommended that y[...]

  • Page 134

    2001/10/02 CHAPTER 3 "PCL5C" - 4 2. COLOR MODES The PCL5C emulation provides a B/W mode , which is the default, and three color modes as follows; 1) Simple Color Mode 2) PCL Color Mode 3) HP - GL/2 Color Mode Simple Color Mode allows you to use a maximum of 8 colors easily. PCL Color Mode allows you to use a maximum of 16,000,000 colors l[...]

  • Page 135

    2001/10/02 CHAPTER 3 "PCL5C" - 5 2.2. Using PCL Color Mode - Set PCL Color Setting Command ESC*v#W (27)(42)(118)#(87) <1Bh><2Ah><76h>#<57h> # = 6, 18 # stan ds for the number of bytes of data that follow this command. This command sets the palette size and transformation between the entered value and device - speci[...]

  • Page 136

    2001/10/02 CHAPTER 3 "PCL5C" - 6 [Example] If you want to se nd 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 [...]

  • Page 137

    2001/10/02 CHAPTER 3 "PCL5C" - 7 (i.e.) ESC*b#V r, r, r, r , r... → Pl ane 1 1st raster ESC*b#V g, g, g, g , g... → Plane 2 ESC*b#W b, b, b, b , b... → Plane 3 ESC*b#V r, r, r, r, r... → Plane 1 2nd raster ESC*b#V g, g, g, g, g... → Plane 2 ** The Italic characters shown above are the index No. at the 4th pixel in the 1st raste [...]

  • Page 138

    2001/10/02 CHAPTER 3 "PCL5C" - 8 ♣ Bits/index • Specifies the palette size at 2 n . n indicates bits/index. ( n =4 à 2 4 =16 palettes) • When the encoding mode is 0 or 1, the palette size selected by the bits/index value specifies the range of the index No., which can be used for raster data. • The values specified by the enc odi[...]

  • Page 139

    2001/10/02 CHAPTER 3 "PCL5C" - 9 ♣ Black reference for value #1, #2, #3 ♣ This mode specifies the black value (the hi ghest level of density). ♣ Each value indicates a color as follows; #1: red #2: green #3: blue Range: - 32767 ~ 32767 • When the encoding mode is 2 or 3, this setting is valid. 2.3. Using HP - GL/2 Color Mode Two m[...]

  • Page 140

    2001/10/02 CHAPTER 3 "PCL5C" - 10 3. COLOR PALE TTES 3.1. Set Color #1 Command ESC*v#A (27)(42)(118)#(65) <1Bh><2Ah><76h>#<41h> Range = - 32767 ~ 32767 Default value = 0 • This command sets the red value in the palette . Use the Set Color to Palette command to set the va lue • The value range to be set varies d[...]

  • Page 141

    2001/10/02 CHAPTER 3 "PCL5C" - 11 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 t[...]

  • Page 142

    2001/10/02 CHAPTER 3 "PCL5C" - 12 4. COLOR GRAPHICS 4.1. Start Raster Transfer Command ESC*r#A (27)(42)(114)#(65) <1Bh><2Ah><72h>#<41h> # = 0 * Prints the image from the left edge of the logical page. = 1 Prints the image from the current cursor position. = 2 Executes scaling. Prints the image from the left edge of[...]

  • Page 143

    2001/10/02 CHAPTER 3 "PCL5C" - 13 4.4. Set Scale Algorithm Command ESC*t#K (27)(42)(116)#(75) <1Bh><2Ah><70h>#<4Bh> # = 0 * Takes the lighter overlying dots when reducing. = 1 Takes the darker overlyin g dots when reducing. * Default value = 0 • This command sets which algorithm the data is reduced by. • Any co[...]

  • Page 144

    2001/10/02 CHAPTER 3 "PCL5C" - 14 5. ENHANCE OUTPUT 5.1. Set Render Algorithm Command ESC*t#J (27)(42)(116)#(74) <1Bh><2Ah><70h>#<4Ah> # = 0 Scatter dither = 1 Snap to primaries = 2 Snap black to white, all other colors to black = 3 * Scatter dither = 4 Scatter dither = 5 Monochrome device best dither = 6 Monochrom[...]

  • Page 145

    2001/10/02 CHAPTER 3 "PCL5C" - 15 5.3. Set Gamma Correction Command ESC*t#I (27)(42)(116)#(73) <1Bh><2Ah><74h>#<49h> # = 0.0 ~ 32767.0 (command is ignored for invalid values) D efault value = 0 (gamma correction off) This command does not destroy the contents of the current palette, but setting a gamma value replac[...]

  • Page 146

    2001/10/02 CHAPTER 3 "PCL5C" - 16 6. HP - GL/2 A few HP - GL/2 commands are added for the HL - 2400C/Ce, HL - 3400CN color laser printer, and the features of some existing commands are also expanded. The new or revised HP - GL/2 commands as follows are described in this chapter; ♣ Initialize Set Instruction (IN) - resets all programmabl[...]

  • Page 147

    2001/10/02 CHAPTER 3 "PCL5C" - 17 • PC [pen;]: sets the pen to the default color. Number of pens in palette Pen number Color 2 (“NP 2;”) 0 White 1 Black 4 (“NP 4;”) 0 White 1 Black 2 Red 3 Green 8 (“NP 8;”) 0 White 1 Black 2 Red 3 Green 4 Yellow 5 Blue 6 Magenta 7 Cyan ** If the number of pens in the palette is over 8, the c[...]

  • Page 148

    2001/10/02 CHAPTER 3 "PCL5C" - 18 7. INDEX A algorithm .................................................................................... 13 B B/W mo de .................................................................................... 4 black value ................................................................................... 9 [...]

  • Page 149

    2001/10/02 CHAPTER 4 HP - GL/2 - 1 CHAPTER 4 HP - GL/2 GRAPHICS LANGUAGE[...]

  • Page 150

    2001/10/02 CHAPTER 4 HP - GL/2 - 2 C ONTENTS 1. COMMAND LIST .................................................................................................................................... 4 2. INTRODUCTION .................................................................................................................................... 6 3. [...]

  • Page 151

    2001/10/02 CHAPTER 4 HP - GL/2 - 3 7.5. Plot Function Instructions ................................................................................................................. 30 7.6. Character Plot Instructions .............................................................................................................. 39 7.6.1. Introduction[...]

  • Page 152

    2001/10/02 CHAPTER 4 HP - GL/2 - 4 1. COMMAND LIST DF Default set instruction 12 IN Initialize set instruction 13 IP Input scaling point 14 IR Input relative scaling points 14 S C Scale 15 IW Window 17 RO Rotate coordinate system 17 PU Pen up 18 PD Pen down 18 PA Plot absolute 19 PR Relative coordinate pen move 19 AA Draw absolute arc 20 AR Draw re[...]

  • Page 153

    2001/10/02 CHAPTER 4 HP - GL/2 - 5 DI Absolute direction 45 DR Relative direction 46 DV Define variable text path 47 CP Relative character movement 47 CF Character fill mode 48 SI Set absolute character size 48 SR Set relative character size 49 SL Character slant 49 SB Scalable or b itmap fonts 50 ES Extra space 50 TD Transparent data 50[...]

  • Page 154

    2001/10/02 CHAPTER 4 HP - GL/2 - 6 2. INTRODUCTION Some of the HL series printers can be used in HP - GL/2 graphics mode to produce vector graphics output using the commands of the HP - GL/2 graphics language or to print out existing HP - GL/ 2 format images. HP - GL/2 is a part of the PCL emulation, which includes graphics command. The Default plo[...]

  • Page 155

    2001/10/02 CHAPTER 4 HP - GL/2 - 7 3. TERMINOLOGY 3.1. Picture Frame The printer frame is the rectangular area of the page on which graphic output can be printed. This is based on the logical page defined for the selected paper size. 3.2. Anchor Point The anchor point of the picture frame is the top left hand corner of the frame. This can be moved [...]

  • Page 156

    2001/10/02 CHAPTER 4 HP - GL/2 - 8 3.10. Absolute and Relative Plotting Drawing commands are of two distinct types: absolute commands , in which the coordinates specified are the absolute user or graphics coordinates and relative commands , whose coordinates are relative to the coordinate position at which the p revious graphics command terminated.[...]

  • Page 157

    2001/10/02 CHAPTER 4 HP - GL/2 - 9 4. COMMAND SYNTAX An HP - G L and HP - GL/2 command can consist of up to four items: a mnemonic, a parameter field, a separator and a terminator. 4.1. Mnemonic The two - letter mnemonic is the name of the command and should help remind you of its function. 4.2. Parameters Some c ommands have parameters following t[...]

  • Page 158

    2001/10/02 CHAPTER 4 HP - GL/2 - 10 5. THE HP - GL GRAPHICS W INDOW 5.1. Units When you first enter graphics mode, the prevailing coordinate system has its origin in the bottom left hand corner of the graphic s window and has x - and y - units of 1/1016". Using the SC command you can divide the axes into more convenient units. The size of the [...]

  • Page 159

    2001/10/02 CHAPTER 4 HP - GL/2 - 11 6. PREPARING TO PRINT G RAPHIC IMAGES 6.1. Setting Up the Graphics Window Before entering HP - GL/2 mode you will probably want to set the dimensions and po sition of the PCL picture frame and hence the graphics window . (Remember that when you enter HP - GL/2 mode they are initially the same). To do this you wil[...]

  • Page 160

    2001/10/02 CHAPTER 4 HP - GL/2 - 12 7. COMMANDS 7.1. Initialize Commands DF - Default set instruction DF[;] • Returns the graphics mode to default conditions. The following are the default settings. Function Equivalent Instruction Condition Plot mode PA; Absolute plotting Absolute direction DI 1,0; Horizontal Line type LT; Solid line Line pattern[...]

  • Page 161

    2001/10/02 CHAPTER 4 HP - GL/2 - 13 IN - Initialize set instruction IN[;] • Returns the graphics mode to initial conditions; Function Equivalent Instruction Condition Plot mode PA; Absolute plott ing Relative character direction DR 1,0; Horizontal Line type LT; Solid line Line pattern length LT; 4% of distance from P1 to P2 Window IW; Set at limi[...]

  • Page 162

    2001/10/02 CHAPTER 4 HP - GL/2 - 14 7.2. Plot Area and Unit Setting Instructions Instruction Function IP Scaling point IR Input relative scaling points SC Scale IW Input window RO Rotate coordinate system IP - Input scaling point IP [ P1 X , P1 Y [,P2 X, P2 Y ]] [;] P1 X ; X coordinate of P1 P1 Y ; Y coordinate of P1 P2 X ; X coordinate of P2 P2 Y [...]

  • Page 163

    2001/10/02 CHAPTER 4 HP - GL/2 - 15 SC - Scale <HP-GL/2> SC [ X min , X max , Y min , Y max [, type ]] [;] (Type = 0) SC [ X min , X max , Y min , Y max , type [ left, bottom]] [;] ( Type =1) SC [ X min , X factor , Y min Y factor [, type ]] [;] ( Type = 2) X min ; X coordinate of P1 X max ; X coordinate of P2 Y min ; Y coordinate of P1 Y max[...]

  • Page 164

    2001/10/02 CHAPTER 4 HP - GL/2 - 16 • With type 1 scaling you can specify the percentage of unused space that is to l ie below, or to the left of, the isotropic area. • left specifies the percentage of unused space you want to lie to the left of the isotropic area and can be from 0 to 100. If you do not specify the value for left , it is automa[...]

  • Page 165

    2001/10/02 CHAPTER 4 HP - GL/2 - 17 IW - Window IW [ X 1 , Y 1 , X 2 , Y 2 ] [;] X 1 - Window lower left X coo rdinate Y 1 - Window lower left Y coordinate X 2 - Window upper right X coordinate Y 2 - Window upper right Y coordinate • This instruction sets the window inside which drawing can be performed (the soft clip limits). • Coordinates are[...]

  • Page 166

    2001/10/02 CHAPTER 4 HP - GL/2 - 18 7.3. Pen Control and Plot Instructions Instruction Function PU Pen Up PD Pen Down PA Plot Absolute PR Relative Coordinate Pen Move AA Absolute Arc Plot AR Relative Arc Plot AT Absolute Three Point Arc RT Relative Three Point Arc PE Polyline Encoded CI Circle BR Bezier Relative BZ Bezier Absolute PU - Pen up PU [ [...]

  • Page 167

    2001/10/02 CHAPTER 4 HP - GL/2 - 19 PA - Plot absolute PA [ X, Y [,...]] [;] X ; X coordinate of the cursor movement destination Y ; Y coordinate of the cursor movement destination • Coordinates are absolute values in user or current units. • Whether used with or without parameters the command establishes absolute plotting as the plotting mode.[...]

  • Page 168

    2001/10/02 CHAPTER 4 HP - GL/2 - 20 AA - Draw absolute arc AA [ X, Y, qc [, qd ]] [;] X ; Arc centre X coordinate Y ; Arc centre Y coordinate qc ; Arc angle in degrees qd ; Chord angle in degrees • Coordinates are absolute coordinates in current units. • Starting from the current position, this command plots an arc centred on the absolute coord[...]

  • Page 169

    2001/10/02 CHAPTER 4 HP - GL/2 - 21 AR - Draw relative arc AR X, Y, qc (, qd )[;] X ; Arc centre X coordinate Y ; Arc centre Y coordinate qc ; Arc angle in degrees qd ; Chord angle in degrees • Coordinates are relative values in current units. • Starting from the current cursor position the command plots an arc whose centre is at the relative c[...]

  • Page 170

    2001/10/02 CHAPTER 4 HP - GL/2 - 22 RT - Relative arc three point RT X 1 , Y 1 , X 2 , Y 2 [,qd] [;] X 1 ; x - coordinate of intermediate point Y 2 ; y - coordinate of intermediate point X 2 ; x - coordinate of end point y 2 ; y - coordinate of end point qd ; the chord angle used to draw the arc • The specifi ed coordinates of the two points are [...]

  • Page 171

    2001/10/02 CHAPTER 4 HP - GL/2 - 23 • The following flags are used: ':' - Select pen. The number which follows is th e required pen number. A PE command that does not include a select pen command uses the currently selected pen. '<' - Pen up. The pen is raised and moved to the specified coordinate pair. All coordinate pair [...]

  • Page 172

    2001/10/02 CHAPTER 4 HP - GL/2 - 24 • To avoid placing an unwanted dot at the centre of the circle precede the CI command with a PU command. 10 '-- Circle -- 20 WIDTH "LPT1:",255 30 LPRINT CHR$(27);"E"; 40 LPRINT CHR$(27);"%0B"; 50 LPRINT "IN;SP1;"; 60 LPRINT "SC-75,75,-75,75,1;" 70 LPRINT &q[...]

  • Page 173

    2001/10/02 CHAPTER 4 HP - GL/2 - 25 7.4. The polygon group Instruction Function PM Polygon Mode EA Edge Absolute Rectangle ER Edge Relative Rectangle EP Edge Polygon EW Edge Wedge RA Fill Absolute Rectangle RR Fill Relative Rectangle WG Fill Wedge FP Fill Polygon PM - Polygon mode PM [ ms ] [;] • This command is used for entering and leaving poly[...]

  • Page 174

    2001/10/02 CHAPTER 4 HP - GL/2 - 26 10 '-Edge Rectangle Absolute- 20 WIDTH "LPT1:", 255 30 LPRINT CHR$(27); "E"; 40 LPRINT CHR$(27); "%0B"; 50 LPRINT "IN;SP1;"; 60 LPRINT "SC0,150,0,150,1;" 70 LPRINT "PA25;105;EA65;130;" 80 LPRINT "PA30;110;EA70,135;" 90 LPRINT "PA35;11[...]

  • Page 175

    2001/10/02 CHAPTER 4 HP - GL/2 - 27 • r specifies the radius of the circle. A positive value for r places the 0° reference point onto the positive x - axis and a negative value for r places the 0° reference point onto the negative x - axis. • The value for q1 is a clamped real number. q1 qc r 0° reference point current position • q1 specif[...]

  • Page 176

    2001/10/02 CHAPTER 4 HP - GL/2 - 28 90 LPRINT "FT4,100,45;RA4250,4750;" 100 LPRINT CHR$(27); "%0A"; 110 LPRINT CHR$(27); "E"; 120 END <Sample 34> RR - Fill rectangle relative RR X, Y[;] X ; X coordinate of opposite corner for the rectangle Y ; Y coordinate of opposite corner for the rectangle • Coordinates rela[...]

  • Page 177

    2001/10/02 CHAPTER 4 HP - GL/2 - 29 10 ' - Fill Wedge - 20 WIDTH "LPT1:", 255 30 LPRINT CHR$(27); "E"; 40 LPRINT CHR$(27); "%0B"; 50 LPRINT "IN;SP2;FT3,100;" 60 LPRINT "PA2000,5000;" 70 LPRINT "WG1250,90,180,5;" 80 LPRINT "SP3;EW1250,90,180,5;" 90 LPRINT "SP4;FT4,100,45[...]

  • Page 178

    2001/10/02 CHAPTER 4 HP - GL/2 - 30 7.5. Plot Function Instructions Instruction Function AC Anchor Corner F T Fill Type LA Line Attribute LT Line Type PW Pen Width RF Raster Fill Definition SM Symbol Mode SP Select Pen SV Screened Vectors TR Transparency Mode UL User - defined Line Type WU Select Unit for Pen Width AC - Anchor corner AC [ X, Y ] [;[...]

  • Page 179

    2001/10/02 CHAPTER 4 HP - GL/2 - 31 FT - Fill type FT n (, d (, q ))[;] n ; Fill type d ; option 1 q ; option 2 • Sets t he fill type, interval and angle when filling an area. This setting is effective for the commands FP, RA, RR, WG and CF. • The value for n must be a clamped integer number Fill type Description Option 1 Option 2 1 Solid black[...]

  • Page 180

    2001/10/02 CHAPTER 4 HP - GL/2 - 32 LA - Li ne attribute LA [ l, v [ , l , v [ , l , v ]]] [;] l ; line attribute v : value • This command specifies the shape of line joins and line ends. • These settings are effective for the line widths thicker than 0.35 mm. • l specifies the line attribute for which you are setting a value. • There are t[...]

  • Page 181

    2001/10/02 CHAPTER 4 HP - GL/2 - 33 LT - Line type select ion LT [, n [, p [, m ]]] [;] n ; Line pattern number p ; Line pattern length (percentage or millimeters of distance between P1 and P2) m : mode • This command specifies the line pattern for use when drawing lines with the vector g roup commands. • n defines the line type to be used. n i[...]

  • Page 182

    2001/10/02 CHAPTER 4 HP - GL/2 - 34 PW - Pen width PW [ w , [, p ]] [;] w ; width p ; pen • This command specifies the width of the pen. • Pen width can either be specified as a fixed width in millimeters ( the default ) or relative to the distance between the scaling points P1 and P2. • If a width of zero is specified the thinnest width poss[...]

  • Page 183

    2001/10/02 CHAPTER 4 HP - GL/2 - 35 10 '--Raster Fill Definition== 20 WIDTH "LPT1:", 255 30 LPRINT CHR$(27); "E"; 40 LPRINT CHR$(27); "%0B"; 50 LPRINT "IN;SP1;"; 60 LPRINT "PU5,5;PA3500,2500;" 70 LPRINT "RF2,8,4,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0, 0,;" 80 LP[...]

  • Page 184

    2001/10/02 CHAPTER 4 HP - GL/2 - 36 • With screen type 21 option 1 specifies one of six predefined PCL cross - hatch patterns (patterns 1 - 6). option 2 is ignored. • With screen type 22, option 1 specifies the ID number of PCL use r- defined pattern which is defined by the ESC*c#W command. option 2 is ignored. • With fill screen type 130 opt[...]

  • Page 185

    2001/10/02 CHAPTER 4 HP - GL/2 - 37 150 LPRINT "TR0;PA3900,4900;PM0;PA5100,4900,4500,6100;PM1;" 160 LPRINT "PM2;FP;"[...]

  • Page 186

    2001/10/02 CHAPTER 4 HP - GL/2 - 38 170 'Source 2 180 LPRINT "FT10,50;PA4000,5000;RR500,500;PA4500,5500;RR500,500;" 190 LPRINT "FT10,1;PA4500,5000;RR500,500;PA4000,5500;RR500,500;FT;" 200 ' 210 '( POLYGON ) 220 LPRINT "PA2000,1000;PM0;PDPA4000,1000,3000,3000;PM1;" 230 LPRINT "PA2500,1200,3500,1200,3[...]

  • Page 187

    2001/10/02 CHAPTER 4 HP - GL/2 - 39 • The command sets all pen widths to a default of 0.35mm. Hence it should be used before the PW command. • Using the command with no parameter defaults the type to 0 (metric) and all pen widths to 0.35mm. • The unit type is not affec ted by a DF command. 10 '-Pen Width Unit Selection- 20 WIDTH "LP[...]

  • Page 188

    2001/10/02 CHAPTER 4 HP - GL/2 - 40 7.6.1. Introduction The character group commands enable you to print text to accompany your HP - GL/2 generated graphics without leaving graphics mode. You can use any font that would be available to you in LaserJet emulation mode and you can modify various printing characteristics of the text such as the size, d[...]

  • Page 189

    2001/10/02 CHAPTER 4 HP - GL/2 - 41 • attribute = 1 : Symbol set Value Name ISO number Value Name ISO number 1 Math - 7 - 2 Line Draw - 7 - 3 HP Large Characters - 4 Norwegian v1 60 5 Roman Extensions - 6 French v1 25 7 HP German - 8 Hebrew - 7 - 9 Italian 15 11 JIS ASCII 14 12 Line Draw - 7 - 13 Math - 7 - 14 ECMA - 94 Latin1 (8 - bit version) 8[...]

  • Page 190

    2001/10/02 CHAPTER 4 HP - GL/2 - 42 • attribute = 2 : Spacing Value Meaning 0 Monospacing 1 Proportional spacing • attribute = 3 : Pitch Specify pitch in characters per inch (cpi). The pitch value you specify can be in the range 0 to 32767.9999. Pitch only applies to monospaced f onts. • attribute = 4 : Height Specify height in points. One po[...]

  • Page 191

    2001/10/02 CHAPTER 4 HP - GL/2 - 43 AD - Define alternate font AD [ attribute , value ] [..] [;] attribute : a font attribute to be defined value : the value of the attribute • This command allows you to define the alternate font and its attribute. • attribute t akes a value from 1 - 7. 1 = symbol set, 2 = spacing, 3 = pitch, 4 = height, 5 = po[...]

  • Page 192

    2001/10/02 CHAPTER 4 HP - GL/2 - 44 FI - Select primary font FI font-ID [;] font - ID ; the identity number of any accessible font. • This command allows you to select any accessible font, which has previously been given an identity number in LaserJet mode, as the primary (standard) font. All subsequently printed labels will appear in the primary[...]

  • Page 193

    2001/10/02 CHAPTER 4 HP - GL/2 - 45 DT - Define label terminator DT [ c [, m ]] [;] c : Character m : mode • This command allows you to specify the character that terminates strings printed with the LB instruction. • The character immediately following DT is taken to be the terminator. Hence, do not put a space between the DT and your chosen ch[...]

  • Page 194

    2001/10/02 CHAPTER 4 HP - GL/2 - 46 • When you use an LO instruction the carriage return point is set to be the new label origin. To send the pen back to a label's origin when you have finished printing it, include a carriage return betw een the last character of the label and the terminating character. • If a label contains embedded carri[...]

  • Page 195

    2001/10/02 CHAPTER 4 HP - GL/2 - 47 90 LPRINT "DT";" 100 LPRINT "DT0,2;LB_*_1988#"; "DI2,2;LB_*_1989#"; 110 LPRINT "DT2,0;LB_*_1990#"; "DI2,-2;LB_*_1991#"; 120 LPRINT "DT0,-2;LB_*_1992#"; "DI-2,-2;LB_*_1993#"; 130 LPRINT "DT-2,0;LB_*_1994#"; "DI-2,2;LB_*_1995#[...]

  • Page 196

    2001/10/02 CHAPTER 4 HP - GL/2 - 48 DV - Define variable text path DV [ path [, line ]] [;] path : text printing path - horizontal or vertical, an d left to right, right to left, upwards or downwards. line : the effect of a line feed. • This command determines the printing direction for labels and the carriage return point. • Permissible values[...]

  • Page 197

    2001/10/02 CHAPTER 4 HP - GL/2 - 49 CF - Character fill mode CF [ fill [, pen ]] [;] fill : the fill pattern used to fill characters pen : the pen used to edge characters • This command determines how characters are edged and filled. • Only scalable fonts can be both filled and edged - bitmap fonts and the stick font cannot be edged an d can on[...]

  • Page 198

    2001/10/02 CHAPTER 4 HP - GL/2 - 50 10 ' -Absolute Character Size- 20 WIDTH "LPT1:", 255 30 LPRINT CHR$(27); "E"; 40 LPRINT CHR$(27); "%0B"; 50 LPRINT "IN;SP1;"; 60 LPRINT "PA700,3000;DT#;LBPrinter#" 70 LPRINT "PA700,2000;SI0.75,1;LBPrinter#" 80 LPRINT "SI;SD1,21,2,1,3,12,5,0,6,0[...]

  • Page 199

    2001/10/02 CHAPTER 4 HP - GL/2 - 51[...]

  • Page 200

    2001/10/02 CHAPTER 4 HP - GL/2 - 52 10 ' -Character Slant- 20 WIDTH "LPT1:", 255 30 LPRINT CHR$(27); "E"; 40 LPRINT CHR$(27; "%0B"; 50 LPRINT "IN;SP1;"; 60 LPRINT "SD1,21,2,1,4,25,5,0,6,0,7,5;SI0.7,1;" 70 LPRINT "PA1000,1000;DT#,1;SL0.36,LBPrinter#" 80 LPRINT "PA1000,300;SL-0.36;[...]

  • Page 201

    2001/10/02 CHAPTER 4 HP - GL/2 - 53 • mode is set to ei ther 0 or 1. If mode is set to 0, control codes perform their normal functions and are not printed. If mode =1, all characters are printed, if possible. No control characters perform any function except the label terminator. Any non - printing or unde fined characters appear as a space. • [...]

  • Page 202

    2001/10/02 CHAPTER 4 HP - GL/2 - 54 8. INDEX A Absolute arc three point ......................................................... 21 absolute commands ................................................................... 8 Absolute direct ion ................................................................... 45 Anchor corner ........................[...]

  • Page 203

    2001/10/02 CHAPTER 4 HP - GL/2 - 55 Select alternate font ................................................................. 42 Select pen .................................................................................. 35 Select primary font ................................................................... 43 Se lect secondary font ............[...]

  • Page 204

    2001/10/02 CHAPTER 4 HP - GL/2 - 56[...]

  • Page 205

    2001/10/02 CHAPTER 5 PJL - 1 CHAPTER 5 PJL PRINTER JOB LANGUAGE[...]

  • Page 206

    2001/10/02 CHAPTER 5 PJL - 2 C ONTENTS 1. INTRODUCTION .................................................................................................................................... 4 1.1. About PJL ............................................................................................................................................ 4 1.[...]

  • Page 207

    2001/10/02 CHAPTER 5 PJL - 3 6.2. Variables ........................................................................................................................................... 18 6.2.1. Variables for HL - 1050/1070/1250/ 1270N/1450/1470N/ P2500 .............................................................. 18 6.2.2. Variables for HL - 1660e[...]

  • Page 208

    2001/10/02 CHAPTER 5 PJL - 4 1. INTRODUCTION 1.1. About PJL Printer Job Language(PJL) provides job status control by sending the printer status information to the application. PJL can be a valuable tool for the si ngle - user environment, but is a much more useful tool for the networking / sharing environment. PJL allows job - level control that ca[...]

  • Page 209

    2001/10/02 CHAPTER 5 PJL - 5 1.2. In Case of Using PJL with a Non - PJL Printer Our recent printer models support PJL, however, earlier models do not . If the PJL commands are sent to a non - PJL printer, the printer acts as follows; 1.2.1. PCL jobs For a PCL printer which does not support the PJL language, the PJL command is printed as ASCII text [...]

  • Page 210

    2001/10/02 CHAPTER 5 PJL - 6 1.3. PJL Syntax and Format Syntax <For Example> @PJL ENTER LANGUAGE = emulation [<CR>]<LF> @PJL PJL Prefix ENTER Command name LANGUAGE Option name @PJL ENTER LANGUAGE Enter this portion verbatim [ ] The words in brackets [ ... ] indicates o ptional parameters. You should not type the brackets themselve[...]

  • Page 211

    2001/10/02 CHAPTER 5 PJL - 7 1.4. Variables PJL can use alphanumeric var iables, numeric variables s and strings. 1.4.1. Alphanumeric variables The first character must always be a character in the allowable range of letters and digits. Letters consists of the uppercase characters (ASCII 65 - 90) and lowercase character s (ASCII 97 - 122). Digits c[...]

  • Page 212

    2001/10/02 CHAPTER 5 PJL - 8 2. HOW TO USE PJL 2.1. Overview PJL resides "above" printer languages such as Postscript and PCL. Each job can be distinguished from the other jobs by PJL, and it can switch between PJL commands and printer language commands for each job. PJL Code PCL Job PJL Code Postscript Job PJL Code 2.2. PJL Job Requireme[...]

  • Page 213

    2001/10/02 CHAPTER 5 PJL - 9 3. COMMAND GROUP Command Group Command Command Description Kernel Commands UEL Exits current printer language and retu rns control to PJL. EXECUTE Orders the printer to execute the specified operation. SUPERUSER Moves to the SUPERUSER mode. SUPERUSEROFF Exit from the SUPERUSER mode. WNVRAM Write the specified data to th[...]

  • Page 214

    2001/10/02 CHAPTER 5 PJL - 10 4. KERNEL COMMANDS 4.1. Introduction This section explains thre e PJL command, UEL , ENTER and COMMENT . These commands provide the minimum set of tools to operate job control. UEL command (Universal Exit Command) ENTER command COMMENT command 4.2. UEL Command The Universal Exit Command causes the printer to exit the c[...]

  • Page 215

    2001/10/02 CHAPTER 5 PJL - 11 Example <ESC>%-12345X@PJL<CR><LF> @PJL EXECUTE DEMOPAGE <CR><LF> <ESC>%-12345X 4.4. ENTER Command The ENTER command specifies which emulation the printer uses to print data. Syntax @PJL ENTER LANGUAGE = emulation [<CR>]<LF> Parameters • emulation The variables depend on[...]

  • Page 216

    2001/10/02 CHAPTER 5 PJL - 12 Example <ESC>%-12345X@PJL<CR><LF> @PJL COMMENT -----------------------------<CR><LF> @PJL COMMENT -- PCL & PS JOB --<CR><LF> @PJL COMMENT -----------------------------<CR><LF> @PJL <CR><LF> @PJL SET RET = ON <CR><LF> @PJL ENTER LANGUAGE =[...]

  • Page 217

    2001/10/02 CHAPTER 5 PJL - 13 5. JOB SEPARATION COMMA NDS 5.1. Introduction This section explains two PJL command, JOB and EOJ . These commands are used to determine the boundaries of a job. When these commands are used with status readback, the printer also can send status information at the beginning and end of each job. 5.2. JOB Command The JOB [...]

  • Page 218

    2001/10/02 CHAPTER 5 PJL - 14 Example <ESC>%-12345X@PJL<CR><LF> @PJL JOB NAME = "KKK data from spooler" <CR><LF> <ESC>%-12345X@PJL<CR><LF> @PJL COMMENT Postscript Job <CR><LF> @PJL JOB NAME = "YYY data from spooler 2" <CR><LF> @PJL ENTER LANGUAGE = POSTSCRIP[...]

  • Page 219

    2001/10/02 CHAPTER 5 PJL - 15 6. ENVIRONMENT COMMANDS 6.1. Introduction Our re cent printers have many features which you are able to set using printer commands, through the printer control panel or by using the remote printer console program. A combination of PJL commands and printer emulation commands allows you to set printer fea tures to the de[...]

  • Page 220

    2001/10/02 CHAPTER 5 PJL - 16 The diagram below illustrates how the environments interact and how the modified print environment is affected. FACTORY DEFAULT ENVIRONMENT USER DEFAULT ENVIRONMENT PJL CURRENT ENVIRONMENT MODIFIED PRINT ENVIRONMENT @PJL INITIALIZE @PJL RESET LANGUAGE RESET, @PJL ENTER, OR ANY LANGUAGE SWITCH CONTROL PANEL OR @PJL DEFA[...]

  • Page 221

    2001/10/02 CHAPTER 5 PJL - 17 6. Always use the PJL RESET command after a job is completed if the SET command is used in the PJL job. 6.1.4. PJL environment variables This section lists the PJL environment variables. There are two kinds of PJL environ ment variables, General PJL environment variables and Printer language - specific variables. For a[...]

  • Page 222

    2001/10/02 CHAPTER 5 PJL - 18 6.2. Variables 6.2.1. Variables for HL - 1050/1070/1250/ 1270N/1450/1470N/ P2500 /1670N/3260N/2460 1. General PJL Environment Variables The PJL environment variables which are not printer language - specific are listed in the following table. Wh en using these variables, do not use LPARM. Variables Description Sample V[...]

  • Page 223

    2001/10/02 CHAPTER 5 PJL - 19 Variables Description Sample Value Range REPRINT Set s the reprint function ON or OFF. ON or OFF ( HL - 1050/1070/1250/1270N/ 1450/1470N/ P2500 ) ON, OFF or JOB (HL - 1670N/3260N/2460) DEMOPRINT Enable s the Demo page printing. ON or OFF ( HL - 1050/1070/1250/ 1270N/1450/1470N/ P2500 /2460 ) PAGEPROTECT Configuration o[...]

  • Page 224

    2001/10/02 CHAPTER 5 PJL - 20 Variables Description Sample Value Range MEDIATYPE Media Type. The temperature of fixing unit is adjusted depending on this setting. REGULAR, THICK, THICK2, THIN, BO ND, TRANSPARENCY (HL - 1670N) REGULAR, THICK, TRANSPARENCY (HL - 3260N) REGULAR, THICK TRANSPARENCY,THICK2, ENVELOPES, BOND (HL - 2460) RET Configuration [...]

  • Page 225

    2001/10/02 CHAPTER 5 PJL - 21 Variables Description Sample Value Range INTRAY5SIZE Selects the paper size in Tray5. LETTER, LEGAL, EXECUTIVE, A3, A4, B5, A5, A6, COM10, C5, DL, MONARCH, LEDGER, JISB4, LTRS, A4S, XECUTIVES, B5S (HL - 3260N) A4, LETTER, B5, EXECUTIVE, ENVELOPES, LEGAL, A5, B6, A6, A4LONG, NO CASSETTE (HL - 2460) SOURCETRAY Selects th[...]

  • Page 226

    2001/10/02 CHAPTER 5 PJL - 22 Variables Description Sample Value Range RAS1200MODE OFF, ON, TRUE (HL - 1670N) PSBINARY ON or OFF (HL - 1670N /2460 ) PSQUOTEBIN ON or OFF (HL - 1670N) DOWNFPROD Creates bold and italic fonts from download fonts. ON or OFF (HL - 1670N /2460 ) BITMAPFPROD Creates bold and italic fonts from bitmap fonts . ON or OFF (HL [...]

  • Page 227

    2001/10/02 CHAPTER 5 PJL - 23 FAXINTERVAL OFF, ON6H, ON12H, ON24H, ON2D, ON4D, ON7D (HL - 3260N/2460) GLPENSIZE1 1 to 16 (HL - 3260N /2460 ) GLPENSIZE2 1 to 16 (HL - 3260N /2460 ) GLPENSIZE3 1 to 16 (HL - 3260N /2460 ) GLPENSIZE4 1 to 16 (HL - 3260N /2460 ) GLPENSIZE5 1 to 16 (HL - 3260N /2460 ) GLPENSIZE6 1 to 16 (HL - 3260N /2460 ) GLPENGRAY1 G15[...]

  • Page 228

    2001/10/02 CHAPTER 5 PJL - 24 TRANSFERVOLT MODE1, MODE2, MODE3, MODE4 MODE1: Normal, MODE 2: Low, MODE3: Middle, MODE4: High (HL - 2460) COLDSTARTMODE Sets the cold start mode. OFF, MODE1, MODE2 MODE1: MODE2 (HL - 2460) TNCHARGETIME O9FF, SHORT, NORMAL, LONG (HL - 2460) TNCHARGEMODE OFF, MODE1, MODE2, MODE3, MDE4, MRDE5, MODE6, MODE7 (HL - 2460) FU[...]

  • Page 229

    2001/10/02 CHAPTER 5 PJL - 25 2 . PCL - Specific Variables The following values are PCL (HP LaserJet emulation) specific and can be set and requested using PJL. These variables must be set using the LPARM : PCL option. Variables Description Sample Value Range PAPER Set s the paper size. LETTER, A4, LEGAL, EXECUTIVE, COM10, MONARCH, C5, DL, JISB5, A[...]

  • Page 230

    2001/10/02 CHAPTER 5 PJL - 26 SYMSET Set s the symbol set. ROMAN8, ISOL1, ISOL2, ISOL5, PC8, PC8DN, PC850, PC852, PC8TK, WINL1, WINL2, WINL5, DESKTOP, PSTEXT, VNINTL, VNUS, MSPUBL, MATH8, PSMATH, VNMATH, PIFONT, LEGAL, ISO2, ISO4, ISO6, ISO10, ISO11, ISO 14, ISO15, ISO16, ISO17, ISO21, ISO 25, ISO 57, ISO60, ISO61, ISO69, ISO84, ISO85, WIN30, HPGER[...]

  • Page 231

    2001/10/02 CHAPTER 5 PJL - 27 3. EPSON - Specific Variables The following values are EPSON (EPSON FX - 850 emulation) specific and can be set and requested using PJL. These variables must be set using the LPARM : EPSON option. Variables Description Sample Value Range PAPER Set s the paper size. LETTER, A4, L EGAL, B5, EXECUTIVE, COM10, MONARCH, C5,[...]

  • Page 232

    2001/10/02 CHAPTER 5 PJL - 28 AUTOLF Set s AUTO LF ON or OFF AUTOMASK S et s AUTO MASK ON or OFF SELREADOUT ON or OFF[...]

  • Page 233

    2001/10/02 CHAPTER 5 PJL - 29 4. IBM - Specific Variables The following values are IBM (IBM Proprinter XL emulation) specific and can be set and requested using PJL. These variables must be set using the LPAR M : IBM option. Variables Description Sample Value Range PAPER Set s the paper size. LETTER, A4, LEGAL, B5, EXECUTIVE, COM10, MONARCH, C5, DL[...]

  • Page 234

    2001/10/02 CHAPTER 5 PJL - 30 5. PostScript - Specific Variables The following values are PostScript ( BR - Script ) specific and can be set and requested using PJL. The BR - Script mode is standard in some models b ut may be available only when the optional BR - Script 2 ROM board is installed into the printer. These variables must be set using th[...]

  • Page 235

    2001/10/02 CHAPTER 5 PJL - 31 6 . HPGL - Specific Variables The following values are HPGL (HP LaserJet emulation) specific and can be set and requested using PJL. These variables must be set using the LPARM: HPGL option. Variables Description Sample Value Range PAPER Set s the paper size. LETTER, LEGAL, EXECUTIVE, A4, JISB5, B5, A5, B6, A6, COM10, [...]

  • Page 236

    2001/10/02 CHAPTER 5 PJL - 32 6.2.2. Variables for HL - 1660e/2060/2400C/2400Ce/3400CN 1. General PJL Environment Variables T he PJL environment variables which are not printer language - specific are listed in the following table. When using these valuables, do not use the LPARM command. Variables Description Sample Value Range COPIES Number of un[...]

  • Page 237

    2001/10/02 CHAPTER 5 PJL - 33 Variables Description Sample Value Range DUPLEX Duplex mode ON, OFF BINDING Returns the setting of binding edge selectio n for duplex printing. LONGEDGE, SHORTEDGE FIRSTPRINT First print mode. This makes the first print speed faster by starting the polygon mirror motor at Power On. Setting to MIDDLE is effective only f[...]

  • Page 238

    2001/10/02 CHAPTER 5 PJL - 34 Variables Description Sample Value Range TIMESETMIN * Clock: minute setting 0 to 59 TIMESETSEC * Clock: second setting 0 to 59 TIMESTYLE * Sets the display style of the clock. YMD (YYYY /MM/DD hh/mm), MDY (MM/DD/YYYY hh/mm), DMY (DD/MM/YYYY hh/mm) SUMMERTIME * Clock: summer time setting OFF, ON ZONESET * Clock: time zo[...]

  • Page 239

    2001/10/02 CHAPTER 5 PJL - 35 6.3. Default Command The DEFAULT command changes the User - Default environme nt which is stored in NV - RAM and it is activated following a PJL reset condition. The current print environment is not affected by the DEFAULT command, but when a PJL reset condition happens, this command takes effect. This doesn't cha[...]

  • Page 240

    2001/10/02 CHAPTER 5 PJL - 36 6.5. Reset Command The PJL RESET command resets the PJL Current Environment variables to the User Default values. Use this command at the end of any PJL jobs in which the PJL SET command was used. Syntax @PJL RESET [<CR>]<LF> Parameters • The RESET command has no parameters • When an application such as[...]

  • Page 241

    2001/10/02 CHAPTER 5 PJL - 37 Examples: <ESC>%-12345X@PJL <CR><LF> @PJL COMMENT Setting PCL job <CR><LF> @PJL COMMENT to desired state <CR><LF> @PJL SET RET = DARK <CR><LF> @PJL SET PAGEPROTECT = OFF <CR><LF> @PJL SET RESOLUTION = 600 <CR><LF> @PJL ENTER LANGUAGE = PCL &l[...]

  • Page 242

    2001/10/02 CHAPTER 5 PJL - 38 7. STATUS READBACK COMM ANDS 7.1. Introduction Applications can request, by sending a PJL command to the printer, information such as the configuration and status of the printer. The printer can be programmed to send back this information when requested and also can send back voluntarily unsolicited information of its [...]

  • Page 243

    2001/10/02 CHAPTER 5 PJL - 39 7.2. Inquire Command The INQUIRE command is used in order to get the information of the current value of a specified variable in the PJL DEFAULT setting. (PJL environment). It is possible to get the information for variables the value of which PJL cannot change (Read - only). This INQUIRE command can request only one v[...]

  • Page 244

    2001/10/02 CHAPTER 5 PJL - 40 Example 2 : This example requests the PCL - specific settings. <ESC>%-12345X@PJL <CR><LF> @PJL COMMENT ***Inquiring PCL settings*** <CR><LF> @PJL ECHO 19:20:05 02-20-1993 <CR><LF> @PJL INQUIRE LPARM:PCL FONTSOURCE<CR><LF> @PJL INQUIRE LPARM:PCL FONTNUMBER<CR>&[...]

  • Page 245

    2001/10/02 CHAPTER 5 PJL - 41 Examples Example 1 : This example requests the current print environment settings for RET, PAPER, and ORIENTATION : <ESC>%-12345X@PJL <CR><LF> @PJL COMMENT ***Requesting*** <CR><LF> @PJL COMMENT about User Default Settings** <CR><LF> @PJL ECHO 20:30:00 02-20-1993<CR><L[...]

  • Page 246

    2001/10/02 CHAPTER 5 PJL - 42 Response Syntax @PJL ECHO [< words >] <CR><LF> <FF> • < words > The beginning of this parameter must be a printable character. Then this parameter consists of characters from ASCII 33 to 255, space characters and horizontal tab characters. This < words > parameter can be written wi[...]

  • Page 247

    2001/10/02 CHAPTER 5 PJL - 43 Parameters Category Information requesting ID The printer model number. For example the HL - 1660e will return 'Brother HL - 1660e'. CONFIG A list of the printer configuration information (available options) within the format of the number of types and/or the description of each available type of; paper sourc[...]

  • Page 248

    2001/10/02 CHAPTER 5 PJL - 44[...]

  • Page 249

    2001/10/02 CHAPTER 5 PJL - 45 Respo nse Syntax: @PJL INFO CONFIG <CR><LF> feature[=value][value feature information] <CR><LF> [<HT>returned option[ attribute] <CR><LF>] ... ... ... ... feature[=value][value feature information] <CR><LF> [<HT>returned option[ attribute] <CR><LF>[...]

  • Page 250

    2001/10/02 CHAPTER 5 PJL - 46 The printer may send back the answer for the above INFO command : @PJL INFO CONFIG<CR><LF> IN TRAYS [1 ENUMERATED]<CR><LF> INTRAY1 PC<CR><LF> INTRAY2 LC<CR><LF> OUT TRAYS [2 ENUMERATED]<CR><LF> NORMAL FACEDOWN<CR><LF> PAPER [9 ENUMERATED]<CR>[...]

  • Page 251

    2001/10/02 CHAPTER 5 PJL - 47 7.5.4. STATUS category The application can use the @PJL INFO STATUS command to check the printer on - line/off - line status, the current message on the LCD and a status code. The ONLINE=TRUE indicates the printer is online, while the ONLINE=FALSE shows it is off - line. Refer to the list of the PJL Status Codes in the[...]

  • Page 252

    2001/10/02 CHAPTER 5 PJL - 48 C5<CR><LF> DL<CR><LF> B5<CR><LF> ORIENTATION=PORTRAIT [2 ENUMERATED]<CR><LF> PORTRAIT<CR><LF> LANDSCAPE<CR><LF> FORMLINES=60 [2 RANGE] 5<CR><LF> 128<CR><LF> MANUALFEED=OFF [2 ENUMERATED]<CR><LF> OFF<CR><[...]

  • Page 253

    2001/10/02 CHAPTER 5 PJL - 49 A4<CR><LF> EXECUTIVE<CR><LF> MONARCH<CR><LF> COM10<CR><LF> C5<CR><LF> DL<CR><LF> B5<CR><LF> LPARM:PCL FONTSOURCE=I [4 EMULATED]<CR><LF> I<CR><LF> C<CR><LF> C1<CR><LF> S<CR><LF>[...]

  • Page 254

    2001/10/02 CHAPTER 5 PJL - 50 Parameters Variable Value Description DEVICE ON Makes unsol icited device status valid for any status change VERBOSE Makes unsolicited device status valid for any of PJL parser warning, error and status change OFF Makes unsolicited device status invalid for any status change JOB ON Makes unsolicited job status (reporti[...]

  • Page 255

    2001/10/02 CHAPTER 5 PJL - 51 The printer status to be sent to the host computer are ; • Device status changes - printer cover open, paper jams, paper out, etc • Job st atus changes - completion of the printing of a job, receiving a JOB command • Page status changes - ejecting a printed page All the unsolicited status information (USTATUS DEV[...]

  • Page 256

    2001/10/02 CHAPTER 5 PJL - 52 Status code Status 35000 - 25999 Errors which may c ause incorrect printing results, such as loss of some print data on a page. The operator's intervention may be required. 40000 - 40999 Errors such as paper empty, cover open or paper jams which suspend printing until the operator takes the corresponding correctiv[...]

  • Page 257

    2001/10/02 CHAPTER 5 PJL - 53 @PJL USTATUS JOB<CR><LF> END<CR><LF> NAME = "JOB 88554"<CR><LF> PAGES=5<CR><LF> <FF> 7.6.3. PAGE variable The @PJL USTATUS PAGE = ON command allows th e printer to send the information about the print completion of a particular page. Using this command, yo[...]

  • Page 258

    2001/10/02 CHAPTER 5 PJL - 54 7.7. USTATUSOFF Command The @PJL USTATUSOFF command makes all unsolicited status reporting inactive. Syntax @PJL USTATUSOFF [<CR>]<LF> Parameters There are no parameter s for this command. Example <ESC>%-12345X@PJL <CR><LF> @PJL USTATUSOFF <CR><LF> @PJL USTATUS DEVICE = ON <[...]

  • Page 259

    2001/10/02 CHAPTER 5 PJL - 55 8. DEVICE ATTENDANCE CO MMANDS 8.1. Introduction You can change dis play messages on the printer control panel by using PJL. The Operator can be alerted by this feature to what specific actions should be taken. This chapter shows you three device attendance commands. RDYMSG By using this command, you can change the mes[...]

  • Page 260

    2001/10/02 CHAPTER 5 PJL - 56 The following is an example of how to restore the display to the normal ready message. <ESC>%-12345X@PJL <CR><LF> @PJL COMMENT Normal READY message <CR><LF> @PJL RDYMSG DISPLAY = "" <CR><LF> @PJL EOJ NAME = "End of Tom's Job" <CR><LF> <ES[...]

  • Page 261

    2001/10/02 CHAPTER 5 PJL - 57 Parameters Parameter Functional Range Default DISPLAY = " message " ASCII 33 and ASCII 35 through 255, < SP >, < HT > N/A key ONLINE, RESET N/A DISPLA Y = " message " You can use any combination of characters available on the printer except for the quotation marks (ASCII 34) up to 16 cha[...]

  • Page 262

    2001/10/02 CHAPTER 5 PJL - 58 9. INDE X C COMMENT command ...................................................................................................................................................................................... 11 conditions ...............................................................................................[...]

  • Page 263

    2001/10/02 CHAPTER 5 PJL - 59[...]

  • Page 264

    2001/10/02 CHAPTER 6 EPSON - 1 CHAPTER 6 EPSON FX - 850[...]

  • Page 265

    2001/10/02 CHAPTER 6 EPSON - 2 C ONTENTS 1. COMMAND LIST .................................................................................................................................... 3 2. INTRODUCTION .................................................................................................................................... 5 3. EMUL[...]

  • Page 266

    2001/10/02 CHAPTER 6 EPSON - 3 1. COMMAND LIST NUL Null 9 BEL Bell 9 SP Space 9 BS Backspace 9 CR Carriage return 9 LF Line Feed 9 FF Form Feed 9 Esc SP n Set inter - character space 10 Esc a n Select justification mode 10 Esc $ n1 n2 Set absolute print position 10 Esc n1 n2 Set relative print position 10 Esc < Select unidirectional printing 1[...]

  • Page 267

    2001/10/02 CHAPTER 6 EPSON - 4 DC2 Cancel condensed character mode 17 Esc E Select emphasized character mode 17 Esc F Cancel emphasized character mode 17 Esc G Select double - strike mode 17 Esc H Cancel double - strike mode 17 Esc W n Select / Canc el double - width printing 17 SO Select single - line double - width printing (I) 18 Esc SO Select s[...]

  • Page 268

    2001/10/02 CHAPTER 6 EPSON - 5 2. INTRODUCTION In this mode you can control the HL - Series pri nters that support this emulation directly by incorporating control codes and escape sequences into your program. Alternatively, applications software (for example, your word - processing or spreadsheet software) may send the necessary commands to the pr[...]

  • Page 269

    2001/10/02 CHAPTER 6 EPSON - 6 3. EMULATION DETAILS The following points should be borne in mind when using the printer in Epson FX - 850 mode. 3.1. Ign ored Commands The following commands are ignored: the BEL control code (ASCII code 7) which is normally used to sound a printer’s bell, the DC1 (ASCII 17) and DC3 (ASCII 19) control codes, used t[...]

  • Page 270

    2001/10/02 CHAPTER 6 EPSON - 7 4. TERMINOLOGY 4.1. Syntax The following conventions are used in this description of the Epson FX - 850 mode software commands: A single letter, two or three - letter control code mnemonic, or number in upright bold text is a literal character and should be sent to the printer as the character code. A letter or word i[...]

  • Page 271

    2001/10/02 CHAPTER 6 EPSON - 8 5. CONTROLLING THE PRIN TER Commands are invoked using either control codes or escape sequences. You can send them to the printer as part of a prog ram using the same command that you would use to print a string on the printer. For example in BASIC you would use the LPRINT command. The printer’s control panel can al[...]

  • Page 272

    2001/10/02 CHAPTER 6 EPSON - 9 6. COMMANDS 6.1. Basic printer operations The most common printer operations are described in this section. Some are invoked using control codes alone - the rest require escape sequences. For the sake of com pleteness, several instructions which are part of the Epson FX - 850 mode instruction sets, but which an HL Ser[...]

  • Page 273

    2001/10/02 CHAPTER 6 EPSON - 10 Set inter - character space EscSPn (27)(32)n <1Bh><20h>n • This command allows you to set the space between successive charact ers. • n is the space between characters in multiples of 1/120". • n must be in the range 0 to 127. LPRINT CHR$(27); CHR$(32); CHR$(5); 'Set 1/24" char space [...]

  • Page 274

    2001/10/02 CHAPTER 6 EPSON - 11 Set data MSB to 1 Esc> (27)(62) <1Bh><3Eh> • This command enables you to set the most significant bit of incoming data bytes to 1. • This command does not affect data comprising a gra phics image or data that defines a downloadable character. LPRINT CHR$(27); CHR$(62); 'Set MSB to 1 Cancel MSB[...]

  • Page 275

    2001/10/02 CHAPTER 6 EPSON - 12 User reset EscCR!#R (27)(13)(33)#(82) <1Bh><0Dh><21h>#<52h> • # = 0, the printer restores to the current user setting. • # = 1, the printer restores to user settings 1. • # = 2, the printer restores to user settings 2. Paper Inpu t Control EscEMn (27)(25)n <1Bh><19h>n n Value[...]

  • Page 276

    2001/10/02 CHAPTER 6 EPSON - 13 • If the second form of the command is used ( n = page length in inches), n must be in the range 1 to 14. LPRINT CHR$(27); CHR$(67); CHR$(40); '40 lines per page LPRINT CHR$(27); CHR$(67); CHR$(0); CHR$(11); '11 inches per page[...]

  • Page 277

    2001/10/02 CHAPTER 6 EPSON - 14 Set left margin Escln (27)(108)n <1Bh><6Ch>n • This command sets the left margin in columns from the left edge of the page. The width of a column is the curren t character width. • In proportional spacing mode a column width of 1/10" is adopted. • This command clears all tab settings. • The m[...]

  • Page 278

    2001/10/02 CHAPTER 6 EPSON - 15 Select 7/72" line spacing Esc1 (27)(49) <1Bh><31h> • This command sets the line spacing to 7/72". All subsequent line feed oper ations will move the print position 7/72" down the page. • Since the printer resolution is 600 dots per inch the line spacing will not be exactly 7/72". L[...]

  • Page 279

    2001/10/02 CHAPTER 6 EPSON - 16 6.4. Us ing Tabs Set horizontal tab stops EscDn1n2n3...NUL (27)(68)n1n2n3...(00) <1Bh><44h>n1n2n3...<00h> • This command enables you to set up to 32 horizontal tab stops based on the current character width. • The character width setting is determined by the combination of the current pitch (10 [...]

  • Page 280

    2001/10/02 CHAPTER 6 EPSON - 17 • m i specifies the tab ba sed on the current line space setting. • The value of m i must be in the range 0 to 255. • The tab stops must be set in ascending order. If you specify a channel’s tab settings in any other order, any previous settings made for that channel are cleared. • Vertic al tab settings ar[...]

  • Page 281

    2001/10/02 CHAPTER 6 EPSON - 18 • You cannot use the backspace, BS , code in proportional spacing mode. • If you change the character pitch using Esc P or Esc M , proportional spacing is automatically turned off. LPRINT CHR$(27); CHR$(112); CHR$(1); 'Turn proportional spacing on Select condensed character mode I SI (15) <0Fh> • Thi[...]

  • Page 282

    2001/10/02 CHAPTER 6 EPSON - 19 • When you specify a value for n you may also use the character codes for ‘0’ and ‘1’ (48 and 49) instead of 0 and 1. • Only Esc W 0 can be used to cancel double - width printing mode set using the Esc W 1 instruction. • Esc W 0 cancels double - width printing mode set using the Esc W 1 instruction, the[...]

  • Page 283

    2001/10/02 CHAPTER 6 EPSON - 20 • Selecting either superscript or subscript mode cancels double - height printing mode. • You can cancel either superscript or subscript mode with the Esc T command. LPRINT CHR$(27); CHR$(83); CHR$(0); 'Turn on superscript mode Cancel superscript / subscript mode EscT (27)(84) <1Bh><54h> • This[...]

  • Page 284

    2001/10/02 CHAPTER 6 EPSON - 21 Select expansion of printable code area Esc6 (27)(54) <1Bh><36h> • This command enables you to print characters whose character codes are in the range 128 to 159. • You can define your own characters and assign codes in this range to them. LPRINT CHR$(27); CHR$(54); 'Expand printable area Cancel [...]

  • Page 285

    2001/10/02 CHAPTER 6 EPSON - 22 6.6. Using customized characters Define characters Esc&NUL n 1 n 2 ( n 3 <character definition data>) (27)(38)(00)n1n2(n3....) <1Bh><26h><00h>n1n2(n3...) • This command enables you to define and download characters for printing. • Monospaced characters are designed on a grid eleven dot[...]

  • Page 286

    2001/10/02 CHAPTER 6 EPSON - 23 LPRINT CHR$(27); CHR$(37); CHR$(1); CHR$(0); 'Select downloaded characters[...]

  • Page 287

    2001/10/02 CHAPTER 6 EPSON - 24 Copy ROM character to RA M Esc:000 (27)(58)(00)(00)(00) <1Bh><3Ah><30h><30h><30h> • In order to use your own customized characters in conjunction with the standard characters contained in the printer, you must first download the printer standard ROM characters to the printer RAM, then [...]

  • Page 288

    2001/10/02 CHAPTER 6 EPSON - 25 • c is the character which signifies the graphics mode: K = single - density (60 dpi), L = double - density (120 dpi), Y = double - speed, d ouble - density (120 dpi) and Z = quadruple - density (240 dpi). • m defines the new horizontal resolution to be assigned to the specified graphics mode. m must be in the ra[...]

  • Page 289

    2001/10/02 CHAPTER 6 EPSON - 26 Print s ingle - density image EscKn 1 n 2 <image data> (27)(75)n1n2.... <1Bh><4Bh>n1n2.... • This command enables you to define and print a single line raster bit image on a single text line. • n 1 and n 2 define the number of bytes that comp rise the image. • The image consists of 256* n 2 + [...]

  • Page 290

    2001/10/02 CHAPTER 6 EPSON - 27 Sample 12[...]

  • Page 291

    2001/10/02 CHAPTER 6 EPSON - 28 Print double - speed double - density image EscYn 1 n 2 <image data> (27)(89)n1n2.... <1Bh><59h>n1n2.... • This command enables you to define and print a single line raster bit image on a single text line. • n 1 and n 2 define the number of bytes that comprise the imag e. • The image consists [...]

  • Page 292

    2001/10/02 CHAPTER 6 EPSON - 29 Sample 14[...]

  • Page 293

    2001/10/02 CHAPTER 6 EPSON - 30 7. INDEX 9 9 bit image .................................................................................. 23 A absolute print position ............................................................ 10 B Backspace .................................................................................... 9 C Carriage return ..[...]

  • Page 294

    2001/10/02 CHAPTER 7 IBM PROPRINTER - 1 CHAPTER 7 IBM PROPRINTER XL[...]

  • Page 295

    2001/10/02 CHAPT ER 7 IBM PROPRINTER - 2 C ONTENTS 1. COMMAND LIST .................................................................................................................................... 3 2. INTRODUCTION ....................................................................................................................................[...]

  • Page 296

    2001/10/02 CHAPTER 7 IBM PROPRINTER - 3 1. COMMAND LIST NUL Null 8 BEL Bell 8 ESC Escape 8 SP Space 8 BS Backspace 8 LF Line Feed 8 FF Form Feed 8 CR Carriage return 8 Esc5n Automatic line feed 9 DC1 Enable printer 9 EscQ22 Disable printer 9 EscQ3 Disable printer 9 EscCRmode Reset printer / change emulation mode 9 EscCR!#R User reset 9 EscEMn Paper[...]

  • Page 297

    2001/10/02 CHAPT ER 7 IBM PROPRINTER - 4 Esc^<char - code> Select a character from the All Character Code table 17 EscI Select character font 17 Esc=n1n220n3(n4n5<character definition data>...) 17 Define characters EscKn1n2<image data> 18 Set single - density image mode EscLn1n2<image data> 18 Set double - density image mode[...]

  • Page 298

    2001/10/02 CHAPTER 7 IBM PROPRINTER - 5 2. INTRODUCTION Some of these HL Series printers offer a complete emulation of the IBM Proprinter. In Proprinter XL mode you can drive the printe r directly by incorporating control codes and escape sequences in your program, or alternatively, applications software (for example, your word - processing softwar[...]

  • Page 299

    2001/10/02 CHAPT ER 7 IBM PROPRINTER - 6 3. EMULATION DETAILS The following points should be borne in mind when running the HL Series printers in IBM Proprinter XL mode. 3.1. Ignored Commands A few IBM Pro printer XL commands have reduced effect, or no effect at all. In some cases this is due to the physical nature of an HL Series printer. These co[...]

  • Page 300

    2001/10/02 CHAPTER 7 IBM PROPRINTER - 7 4. NOTATION USED IN THI S EMULATION DESCRIPT ION 4.1. Syntax The following conventions are used in this description of the Proprinter XL software commands. A letter, word or number in upright bold text is the literal character which and should be sent to the printer as a character code. A letter or word in it[...]

  • Page 301

    2001/10/02 CHAPT ER 7 IBM PROPRINTER - 8 5. COMMANDS 5.1. Basic Printer Operation The most comm on printer operations are described in this section. Most are invoked using control codes. For the sake of completeness the instructions which HL Series printers ignore are included. Null NUL (0) <0h> NUL (ASCII 0) is ignored. Bell BEL (07) <07h[...]

  • Page 302

    2001/10/02 CHAPTER 7 IBM PROPRINTER - 9 Automatic line feed Esc5n (27)(53)n <1Bh><35h>n • When automatic line feed is ON, a line feed is automatically perf ormed every time a carriage return is sent to the printer. • To turn the automatic line feed function ON, set n to 1. • To turn the automatic line feed function OFF, set n to 0[...]

  • Page 303

    2001/10/02 CHAPT ER 7 IBM PROPRINTER - 10 Paper input control EscEMn (27)(25)n <1Bh><19h>n n Value HL - 16 60e/2060/2400C/2400Ce/3400CN /3260N/2460 n = 0 Initialize the feeder mode . n = 1 Feed from the MP tray. n = 2 Feed from Tray 1. n = 3 Feed from Tray 2. n = 4 Feed from Tray 3. n = 5 Feed from Tray 4. n = R Eject paper. n Value H L[...]

  • Page 304

    2001/10/02 CHAPTER 7 IBM PROPRINTER - 11 5.2. Page Format Set page length EscCn (27)(67)n <1Bh><43h>n This command sets the page length in lines. or EscCNULn (27)(67)(0)n <1Bh><43h><00h>n • This command sets the page length in inches. • n is the number of lines that make up one page, or the length of the page in in[...]

  • Page 305

    2001/10/02 CHAPT ER 7 IBM PROPRINTER - 12 Line spacing and tabs Set 1/8" line spacing Esc0 (27)(48) <1Bh><30h> This command sets the line spacing to 1/8". All subsequent line feed operations will move the print position 1/8" down the page. LPRINT CHR$(27); CHR$(48); 'Set line spacing to 1/8". Set 7/72" line[...]

  • Page 306

    2001/10/02 CHAPTER 7 IBM PROPRINTER - 13 Set horizontal tabs EscD<n1><n2><n3>...NUL (27)(68)n1n2n3...(00) <1Bh><44h>n1n2n3...<00h> • This command enables you to set up to 28 horizontal tab stops using the current character pitch. • The tab stops should be set in ascending order. • Esc D 0 clears all horizon[...]

  • Page 307

    2001/10/02 CHAPT ER 7 IBM PROPRINTER - 14 5.3. Using Characters Select character set I Esc7 (27)(55) <1Bh><37h> This command selects IBM Character set I for use in subsequent printing operations. LPRINT CHR$(27); CHR$(55); 'Select character set I Se lect character set II Esc6 (27)(56) <1Bh><36h> This command selects IBM[...]

  • Page 308

    2001/10/02 CHAPTER 7 IBM PROPRINTER - 15 Set enlarged character mode for a single line SO (14) <0Eh> • This command turns enlarged character mode on for one line onl y. The subsequent line of text is printed using double - width characters and with the line space setting doubled. • The following commands cancel enlarged character mode set[...]

  • Page 309

    2001/10/02 CHAPT ER 7 IBM PROPRINTER - 16 Underline mode Esc-n (27)(126)n <1Bh><7Eh>n • This command turns character underlining on or off. • If n is set to 1 subsequent text is underlined. • Horizontal tab spaces are not underlined irrespective of whether underlining mode is on or off. • If n is set to 0 s ubsequent text is not[...]

  • Page 310

    2001/10/02 CHAPTER 7 IBM PROPRINTER - 17 Select a character from the All Character Code table Esc^<char-code> (27)(94)<Char-code> <1Bh><5Eh><Char-code> • This command enables you to print a single character from the All Character Code table. • A control code is not executed if the code is sent immediately following[...]

  • Page 311

    2001/10/02 CHAPT ER 7 IBM PROPRINTER - 18 • If bits 1 and 2 of n 4 are 01 the least significant bit of each data byte is replicated in rows 9 to 12 of the grid. • If bits 1 and 2 of n 4 are 10 the bits 1 to 4 of each data byte are replicated in rows 9 to 12 of the grid. • Bits 5 to 7 of n 5 specify the number of columns left blank to the left[...]

  • Page 312

    2001/10/02 CHAPTER 7 IBM PROPRINTER - 19 • Images are printed at an approximate horizon tal resolution of 120 dots per inch and at an approximate vertical resolution of 72 dots per inch. • Each byte represents a vertical column of eight dots, the most significant bit representing the dot at the top. Simply set a bit to 1 if you want a dot to ap[...]

  • Page 313

    2001/10/02 CHAPT ER 7 IBM PROPRINTER - 20 Set quadruple - density image mode EscZn 1 n 2 <image data> (27)(90)n1n2<image data> <1Bh><5Ah>n1n2<image data> • This command enables you to define and print a single line raster bit i mage on a single text line. • n 1 and n 2 define the number of bytes that comprise the i[...]

  • Page 314

    2001/10/02 CHAPTER 7 IBM PROPRINTER - 21 6. INDEX A Automatic line feed .................................................................... 9 B Backspace .................................................................................... 8 C cancel ......................................................................................... 15 Carria[...]

  • Page 315

    2001/10/02 CHAPT ER 7 IBM PROPRINTER - 22[...]

  • Page 316

    2001/10/02 CHAPTER 8 BAR CODE CONTROL - 1 CHAPTER 8 BAR CODE CONTROL[...]

  • Page 317

    2001/10/02 CHAPTER 8 BAR CODE CONTROL - 2 C ONTENTS 1. INTRODUCTION .................................................................................................................................... 3 2. PRINT BAR CODES O R EXPANDED CHARACTER S ................................................................. 4 3. DEFINITION OF PARAMETERS .......[...]

  • Page 318

    2001/10/02 CHAPTER 8 BAR CODE CONTROL - 3 1. INTRODUCTION Some of the HL series printers can print bar codes in the HP LaserJet, EPSON FX - 850, and IBM Proprinter XL emulation modes, refer to the printer User guide for information.[...]

  • Page 319

    2001/10/02 CHAPTER 8 BAR CODE CONTROL - 4 2. PRINT BAR CODES OR E XPANDED CHARACTERS ESC i n ... n (27)(105)n ... n (92) <1Bh><69h>n ... n <5Ch> Creates bar codes or expanded characters according to the parameters “n ... n”. For further information about the parameters, see the following “Definition of Parameters.” This [...]

  • Page 320

    2001/10/02 CHAPTER 8 BAR CODE CONTROL - 5 3. DEFINITION OF PARAME TERS This bar code command can have the following parameters in the parameter segment (n ... n). Parameters are effective only within the single command sequence using the syntax ESC i n ... n . They do not take effect in any subsequent bar code commands. If any parameters are n ot[...]

  • Page 321

    2001/10/02 CHAPTER 8 BAR CODE CONTROL - 6 Ÿ Line Block Drawing & Box Drawing Shading “S” 1 = Black 2 = Vertical stripes 3 = Horizontal stripes 4 = Cross hatch 3.3. Bar Code Scaling (Width only) n = “mnnn” or “Mnnn” (nnn = 0 ~ 32767) This parameter specifies the bar code width scaling. The unit o f "nnn" is %. The default [...]

  • Page 322

    2001/10/02 CHAPTER 8 BAR CODE CONTROL - 7 3.7. Bar Code, Expanded Character, Line, Block Drawing & Box Drawing Offset in the X - axis n = “xnnn” or “Xnnn” This p arameter specifies the offset from the current print position in the “u” - or “U” - specified units. 3.8. Bar Code & Expanded Character Offset in the Y - axis n = ?[...]

  • Page 323

    2001/10/02 CHAPTER 8 BAR CODE CONTROL - 8 3.12. Bar Code Data Start n = “b” or “B” • Data that follows “b” or “B” is read in as bar code data . Bar code data must end with the “ ” code (5CH), which also terminates this command. The acceptable bar code data is subject to the bar code mode selected by “t” or “T” as lis[...]

  • Page 324

    2001/10/02 CHAPTER 8 BAR CODE CONTROL - 9 • When Code 128 Set A, Set B, or Set C is selected with the parameter “t12” or “12,” “t13” or “T13,” or “t14” or “T14” respectively: Code sets A, B and C are individually selectable. Set A encodes char acters in the range Hex 00 to 5F. Set B encodes characters in the range Hex 20 t[...]

  • Page 325

    2001/10/02 CHAPTER 8 BAR CODE CONTROL - 10 4. EXAMPLE PROGRAM LIST INGS 10 ' Barcode 20 WIDTH "LPT1:", 255 30 ' CODE 39 40 LPRINT CHR$(27); "it0r1s0x00y00b123456 "; 50 'INTER LEAVED 60 LPRINT CHR$(27); "it1r1s0x70y00b123456 "; 70 ' EAN - 13 80 LPRINT CHR$(27); "it5r1s0x00y020b12345 6789012?[...]

  • Page 326

    2001/10/02 CHAPTER 9 HP - GL - 1 CHAPTER 9 HP - GL GRAPHICS LANGUAGE[...]

  • Page 327

    2001/10/02 CHAPTER 9 HP - GL - 2 C ONTENTS 1. COMMAND LIST .................................................................................................................................... 3 2. INTRODUCTION .................................................................................................................................... 4 2.1. [...]

  • Page 328

    2001/10/02 CHAPTER 9 HP - GL - 3 1. COMMAND LIST DF Default set instruction 6 IN Initialize set instruction 6 IP Input scaling point 7 SC Scale 7 IW Input window 8 RO Rotate coordinate system 8 PG Page feed 8 PU Pen up 9 PD Pen down 9 PA Plot absolute 9 PR Relative coordinate pen move 10 AA Draw absolute arc 11 AR Draw relative arc 11 CI Circle plo[...]

  • Page 329

    2001/10/02 CHAPTER 9 HP - GL - 4 2. INTRODUCTION The HP - GL graphics mode emulates 40 out of 56 instructions for the HP 7475A plotter made by Hewlett - Packard. Default measurement unit in the HP - GL graphics mode is 1/1016"(0.025mm). 2.1. HP - G L Syntax A command consists of a two - letter instruction mnemonic, a parameter field (not neede[...]

  • Page 330

    2001/10/02 CHAPTER 9 HP - GL - 5 2.3.2. Printing area a b d c a b c d (mm) A4 4 5 5 5 A3 4 5 5 5 (HL - 3400CN /3260N ) Letter 6 5 5 5 Legal 6 5 5 5[...]

  • Page 331

    2001/10/02 CHAPTER 9 HP - GL - 6 3. COMMANDS 3.1. Initialization and Default Setting Instructions DF - Default set instruc tion DF[;] • Returns the graphics mode to the default conditions. • The following are the default settings. Function Equivalent Instruction Condition Plot mode PA; Absolute plotting Relative character direction DR 1,0; Hori[...]

  • Page 332

    2001/10/02 CHAPTER 9 HP - GL - 7 Function Equivalent Instruction Condition Fill type FT; Bi - directional fill, type 1 Fill distance FT; 1% of distance from P1 to P2 Fill slant FT; 0 degrees Pen thickness PT; Set at 0.3 mm Pen condition PU; Pen up Rotation RO; Set at 0 degrees Scaling points IP; Initialized according to paper size 3.2. Plot Area an[...]

  • Page 333

    2001/10/02 CHAPTER 9 HP - GL - 8 IW - Input window IW [ X 1 , Y 1 , X 2 , Y 2 ] [;] X1 - Window lower left X coordinate Y1 - Window lower left Y coordinate X2 - Window upper right X coordinate Y2 - Window upper right Y coordinate • This instruction sets the window inside which plotting can be performed. • Graphic units are always used. • Coor[...]

  • Page 334

    2001/10/02 CHAPTER 9 HP - GL - 9 PU - Pen up PU [ X,Y [,...]] [;] X ; X coordinate of the cursor movement destination Y ; Y coordin ate of the cursor movement destination • X and Y are either relative or absolute, depending on whether a PA or a PR was the last plot command executed. The absolute coordinates are set as default. • Moves the curso[...]

  • Page 335

    2001/10/02 CHAPTER 9 HP - GL - 10 Current position (X1, Y1) (X2,Y2) (X3, Y3) (Xn, Yn) 10 '*** PAEX1 *** 20 LPRINT "IN;SP1;" 30 LPRINT "PA2000,6000;PD0,6000,2000,7500,2000,6000;PU2500,6000;" 40 LPRINT "PAPD4500,6000,2500,7500,2500,6000;PU10365,500;" 50 END <Sample 62> 10 ' *** PAEX2 *** 20 LPRINT "I[...]

  • Page 336

    2001/10/02 CHAPTER 9 HP - GL - 11 AA - Draw absolute arc AA [ X, Y, qc [, qd ]] [;] X ; Arc centre X coordinate Y ; Arc centre Y coordinate qc ; Arc angle in degrees qd ; Chord angle in degrees • X and Y coordinates are absolute coordinates in user units or graphics units. • Starting from the current position, plots an arc centred on the absolu[...]

  • Page 337

    2001/10/02 CHAPTER 9 HP - GL - 12 • Plotting is performed only when the pen is down. • When the pen is u p, plotting is not performed but the cursor position moves to the plot end point. • When scaling has been performed, the cursor is moved by relative coordinates in user units. • Also, when scaling has been performed, the values for X and[...]

  • Page 338

    2001/10/02 CHAPTER 9 HP - GL - 13 10 '*** CIEX1 *** 20 LPRINT "IN;SP1;IP2650,1325,7650,6325;" 30 LPRINT "SC-100,100,-100,100;" 40 LPRINT "PA-60,50;CI40,45;" 50 LPRINT "PA60,50;CI40,30;" 60 LPRINT "PA-60,-50;CI40,15;" 70 LPRINT "PA60,-50;CI40,5;" 80 END <Sample 65> 10 '*** C[...]

  • Page 339

    2001/10/02 CHAPTER 9 HP - GL - 14 • When there is no scaling, the coordinate values for X and Y are integer numbers. Current position (X, Y) 10 '*** EAEX *** 20 LPRINT "IN;SP1;PA7000,4000;" 30 LPRINT "PT.3;FT1;RA6000,3000;" 40 LPRINT "SP3,;EA6000,3000;" 50 LPRINT "SP4;FT3,100;RA8000,3000;" 60 LPRINT &q[...]

  • Page 340

    2001/10/02 CHAPTER 9 HP - GL - 15 EW - Edge wedge EW r,q1,qc(,qd)[;] r ; Radius in user units or graphics units q1; Start point angle qc ; Arc angle qd ; Chord angle • Plots a wedge cent red on the current position with radius r , start point angle q1 , arc angle qc and chord angle qd . • After plotting, the cursor returns to its point of origi[...]

  • Page 341

    2001/10/02 CHAPTER 9 HP - GL - 16 RA - Fill rectangle absolute RA X, Y[;] X ; X coordinate of opposite angle for the rectangle Y ; Y coordinate of opposite angle for the rectangle • X and Y coordinates are absolute co ordinates in user units or graphics units. • Fill in the rectangle formed by the current position and the opposite angle specifi[...]

  • Page 342

    2001/10/02 CHAPTER 9 HP - GL - 17 WG - Fill wedge WG r,q1,qc(,qd)[;] r ; Radius in user units or graphics units q1 ; Start point angle qc ; Arc angle qd ; Chord angle • Fill in a wedge centred on the current position with radius r , start point angle q1 , arc angle qc and chord angle qd . • After plotting, the cursor returns to its point of ori[...]

  • Page 343

    2001/10/02 CHAPTER 9 HP - GL - 18 3.5. Plot Function Instructions Instruction Function FT Fill Type LT Line Type PW Pen Width SM Symbol Mode SP Select Pen TL Tick Length XT X Tick YT Y Tick PT Pen Thickness FT - Fill type FT [ n [, d [, q]]] [;] n : Fill type d : Fill interval (interval between the parallel lines of the area being filled) q : Fill [...]

  • Page 344

    2001/10/02 CHAPTER 9 HP - GL - 19 PW - Pen width PW n[;] w ; width (unit = 1/300 inch) • This command specifies the width of the currently selected pen. • The value of w is an integer number from 1 to 10. SM - Symbol mode SM c[;] c ; ASCII character or symbol code • The command specifies the symbol to be drawn. • When the PA, PR, PD or PU i[...]

  • Page 345

    2001/10/02 CHAPTER 9 HP - GL - 20 XT - X - axis tick XT [;] • Plots vertical tick marks as specified by the TL instruction from the current position. • After plotting, the cursor returns to its point of origin. • Plotting is performed whether the pen is up or down. YT - Y - axis tick YT [;] • Plots horizontal tick marks as specified by the [...]

  • Page 346

    2001/10/02 CHAPTER 9 HP - GL - 21 n Character Set 0 ANSI ASCII 1 9825 Character Set 2 French/German 3 Scandinavian 4 Spanish/Latin American 6 JIS ASCII 7 ROMAN 8 Extensions 9 ISO IRV 30 ISO Swedish 31 ISO Swedish for Names 32 ISO No rway, Version 1 33 ISO German 34 ISO French 35 ISO Kingdom 36 ISO Italian 37 ISO Spanish 38 ISO Portuguese 39 ISO Nor[...]

  • Page 347

    2001/10/02 CHAPTER 9 HP - GL - 22 LB - Character plot LB [ cs ] < terminator > [;] cs : character string • Plots character strings, numerical expressions, variables etc. • Plotting is performed whether the pen is up or down. • After plotting, the cursor moves to the position of the next character. 10 '*** LBEX1 *** 20 LPRINT "[...]

  • Page 348

    2001/10/02 CHAPTER 9 HP - GL - 23 DR - Relative direction DR [ run, rise ] [;] run : X direction component rise : Y direction component • A percentage of the distance in the X and Y directions between P1 and P2 is used as the units • Specifies the character plot direction. • Values for the run and rise are clamped real numbers. • The instru[...]

  • Page 349

    2001/10/02 CHAPTER 9 HP - GL - 24 10 '*** SIEX1 *** 20 LPRINT "IN;SP1;PA1000,1000;" 30 LPRINT "SI2,1.5;LBLASER";CHR$(3) 40 END <Sample 86> 10 '*** SIEX2 *** 20 LPRINT "IN;SP1;PA5000,3000:" 30 LPRINT "SI-.35,.35;LBCHARACTER";CHR$(3) 40 END <Sample 87> 10 '*** SIEX3 *** 20 LPRINT &quo[...]

  • Page 350

    2001/10/02 CHAPTER 9 HP - GL - 25 10 '"*** SLEX *** 20 LPRINT "DF;SP1;SI1.3,1.3;PA100,6000;" 30 LPRINT "SL2;LBLASER";CHR$(3) 40 LPRINT "SL-2;PR3000,0;LBLASER";CHR$(3) 50 END <Sample 91> UC - User - defined character UC X1, Y1, X2, Y2..., Xn, Yn[;] Xi : Number of grids in X direction Yi : Number of grids[...]

  • Page 351

    2001/10/02 CHAPTER 9 HP - GL - 26 3.7. Dual Context Extensions Set High resolution control (Brother original) EscCRRO This command sets high resolution control off. EscCRRL This command sets high resolution control light level. EscCRRM This command sets high resolution control medium level. EscCRRD This command sets high resolution control dark lev[...]

  • Page 352

    2001/10/02 CHAPTER 9 HP - GL - 27 4. INDEX A Absolute direction ................................................................... 22 Alternate character set ............................................................ 20 C Character plot ...................................................................... 22, 23 character set ..................[...]

  • Page 353

    10/5/2001 APPENDIX A - COMPARISON LIST - 1 APPENDIX A COMPARISON LIST[...]

  • Page 354

    10/5/2001 APPENDIX A - COMPA RISON LIST - 2 C ONTENTS PCL5/5E ................................ ................................ ................................ ... 3 Typeface Selection (PCL) ................................ ................................ ......... 15 HP - GL/2 ................................ ................................ ...[...]

  • Page 355

    10/5/2001 APPENDIX A - COMPARISON LIST - 3 In this chapter, you can find which commands are supported by your printer. PCL5/5e COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 Esc&k#G Line Termination v v v v v v v v v v v v Esc&s[...]

  • Page 356

    10/5/2001 APPENDIX A - COMPA RISON LIST - 4 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 Esc&l45A Pape r Size JIS B5 v v v v v v v v Esc&l46A Paper Size JIS B 4 v v Esc&l100A Paper Size B5 v v v v v v v v v v v v Esc&l[...]

  • Page 357

    10/5/2001 APPENDIX A - COMPARISON LIST - 5 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 Esc&l90A Paper Size DL v v v v v v v v v v v v E sc&l91A Paper Size C5 v v v v v v v v v v Esc&l101A Paper Size Free Size v v Esc&[...]

  • Page 358

    10/5/2001 APPENDIX A - COMPA RISON LIST - 6 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 Esc&l8H Optional Tray v Tray3 v Tray3 v Tray3 Esc&l9H Optional Tray v Tray4 v Tray4 Esc&l100H Tray ID 1 v Tray ID 1 v Tray ID 1 Esc&a[...]

  • Page 359

    10/5/2001 APPENDIX A - COMPARISON LIST - 7 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 EscE Printer Reset v v v v v v v v v v v v EscCR!#R User Reset v v v v v v v Escz Self - test v v v v v v v v v v v v Esc% - 12345X UEL v v v v v [...]

  • Page 360

    10/5/2001 APPENDIX A - COMPA RISON LIST - 8 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 Esc*p#Y Position(dot) v v v v v v v v v v v v Esc&a#V Vertical Position(decipoint) v v v v v v v v v v v v Esc&a#C Horizontal Position(co[...]

  • Page 361

    10/5/2001 APPENDIX A - COMPARISON LIST - 9 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 SO Secondary Font Select v v v v v v v v v v v v SI Primary Font Select v v v v v v v v v v v v Esc*c#R Symbol Set ID Set v v v v v v v v v v v v [...]

  • Page 362

    10/5/2001 APPENDIX A - COMPA RISON LIST - 10 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 Esc(s#T, Esc)s#T Typeface v v v v v v v v v v v v Esc&p#X Transparent Print v v v v v v v v v v v v Esc&d#D, Esc&d@ Auto Underline v[...]

  • Page 363

    10/5/2001 APPENDIX A - COMPARISON LIST - 11 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 Esc*v#N Select Source Transparency Mode v v v v v v v v v v v v Esc*v#O Select Pattern Transparency Mode v v v v v v v v v v v v Esc*c#G Pattern [...]

  • Page 364

    10/5/2001 APPENDIX A - COMPA RISON LIST - 12 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 Esc*t#R Resolution Setting v #:75,100, 150, 200, 300,600 v #:75,100, 150, 200, 300,600 v #:75,100, 150, 200, 300,600 v #:75,100, 150, 200, 300,6[...]

  • Page 365

    10/5/2001 APPENDIX A - COMPARISON LIST - 13 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 Esc%#B Enter HP - GL/2 Mode v v v v v v v v v v v v Esc*c0T Set Picture Frame Anchor Point v v v v v v v v v v v v Esc*c#Y Picture Frame Vertical[...]

  • Page 366

    10/5/2001 APPENDIX A - COMPA RISON LIST - 14 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 16 50/ 1670N HL - 3260N HL - 2460 Esc&f8X Delete Current Macro v v v v v v v v v v v v Esc&f9X Make Temporary Macro v v v v v v v v v v v v Esc& f10X Make Permanent M[...]

  • Page 367

    10/5/2001 APPENDIX A - COMPARISON LIST - 15 Typeface Selection (PCL) COMMAND TYPEFACE HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 1650/ 1670N HL - 3260N HL - 2460 Esc(s129T Anelia Esc(s128T Brougham Esc(s130T Letter Gothic v v v v v v v v v v v v Esc(s104T OCR - A v v v v v [...]

  • Page 368

    10/5/2001 APPENDIX A - COMPA RISON LIST - 16 COMMAND TYPEFACE HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400 C/C e HL - 3400CN HL - 1650/ 1670N HL - 3260N HL - 2460 Esc(s16602T Helsinki v v v v v v v v v v v v Esc(s16901T Tennessee v v v v v v v v v v v v Esc(s31402T W Dingbats v v v v v v v v v v v [...]

  • Page 369

    10/5/2001 APPENDIX A - COMPARISON LIST - 17 HP - GL/2 COMMAND HL - 1050 /1070/1250/ 1270N/1450/1470N /P2500/1660e/ 2060/2400C/2400Ce/3400CN/1650/167 0N/3260N/2460 DF v IN v IP v IR v SC v IW v RO v PU v PD v PA v PR v AA v AR v AT v RT v PE v CI v BR v BZ v PM v EA v ER v EP v EW v RA v RR v WG v FP v AC v FT v LA v LT v[...]

  • Page 370

    10/5/2001 APPENDIX A - COMPA RISON LIST - 18 COMMAND HL - 1050 /1070/1250/ 1270N/1450/1470N /P2500/1660e/ 2060/2400C/2400Ce/3400CN/1650/167 0N/3260N/2460 PW v RF v SM v SP v SV v TR v UL v WU v SD v AD v SS v SA v FI v FN v LB v DT v LO v DI v DR v DV v CP v CF v SI v SR v SL v SB v ES v TD v CO v PG v RP v NP v[...]

  • Page 371

    10/5/2001 APPENDIX A - COMPARISON LIST - 19 Epson FX - 850 COMMAND HL - 1050 /1070/1250/ 1270N/1450/1470N /P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2 460 SP v BS v CR v LF v FF v Esc SP n v Esc a n v Esc $ n1 n2 v Esc n1 n2 v Esc < v Esc > v Esc # v Esc @ v Esc CR!#R v Esc EM n v Esc C n v Esc C NUL n v Esc l n v Esc Q n v Esc [...]

  • Page 372

    10/5/2001 APPENDIX A - COMPA RISON LIST - 20 COMMAND HL - 1050 /1070/1250/ 1270N/1450/1470N /P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2 460 Esc b n m1 m2 m3 ... NUL v Esc / n v VT v Esc P v Esc M v Esc p n v SI v Esc SI v DC2 v Esc E v Esc F v Esc G v Esc H v Esc W n v SO v Esc SO v DC4 v Esc 4 v Esc 5 v Esc S n v Esc T v Esc w n v Esc[...]

  • Page 373

    10/5/2001 APPENDIX A - COMPARISON LIST - 21 COMMAND HL - 1050 /1070/1250/ 1270N/1450/1470N /P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2 460 Esc ? n m v Esc ^ a n1 n2 v Esc K n1 n2 v Esc L n1 n2 v Esc Y n1 n2 v Esc Z n1 n2 v[...]

  • Page 374

    10/5/2001 APPENDIX A - COMPA RISON LIST - 22 IBM ProPrinter XL COMMAND HL - 1050 /1070/1250/ 1270N/1450/1470N /P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2460 ESC v SP v BS v CR v LF v FF v Esc 5 n v DC1 v Esc Q 22 v Esc Q 3 v Esc CR ! #R v Esc EM n v Esc C n v Esc C NUL n v Esc X m n v Esc N n v Esc O v Esc 0 v Esc 1 v Esc A n v Esc 2 v[...]

  • Page 375

    10/5/2001 APPENDIX A - COMPARISON LIST - 23 COMMAND HL - 1050 /1070/1250/ 1270N/1450/1470N /P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2460 Esc P n v SI v Esc E v Esc F v SO v DC4 v CAN v Esc W n v Esc S n v Esc T v Esc - n v Esc _ n v Esc [ @ n1n2n3n4n5n6 v Esc n1 n2 v Esc ^ v Esc I n v Esc = n1 n2 20 n3 v Esc K n1 n2 v Esc L n1 n2 v [...]

  • Page 376

    10/5/2001 APPENDIX A - COMPA RISON LIST - 24 BAR CODE COMMAND HL - 1050 /1070/1250/ 1270N/1450 /1470N /P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2460 CODE 39 v Interleaved 2 of 5 v FIM(US - Post Net) v Post Net v EAN8,EAN13, UPC A v UPC E v Codabar v UPS Code128 set A v UPS Code128 set B v UPS Code128 set C v ISBN(EAN) v ISB N(UPC - E) [...]

  • Page 377

    10/5/2001 APPENDIX A - COMPARISON LIST - 25 HP - GL COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400C/ C e HL - 3400CN HL - 1650/ 1670N HL - 3260N HL - 2460 DF v v v v v v IN v v v v v v IP v v v v v v SC v v v v v v IW v v v v v v RO v v v v v v PG v v v v v v PU v v v v v v PD v v v v v v PA [...]

  • Page 378

    10/5/2001 APPENDIX A - COMPA RISON LIST - 26 COMMAND HL - 1050 HL - 1070 HL - 1250/ 1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e HL - 2060 HL - 2400C/ C e HL - 3400CN HL - 1650/ 1670N HL - 3260N HL - 2460 CA v v v v v v SS v v v v v v SA v v v v v v DT v v v v v v LB v v v v v v DI v v v v v v DR v v v v v v CP v v v v v v SI v v v v v v SR v v v v[...]

  • Page 379

    10/5/2001 APPENDIX A - COMPARISON LIST - 27 PJL PJL commands are supported by HL - 1050, HL - 1070, HL - 1250, HL - 1270N/1450/ 1470N, HL - P2500, HL - 1660e, HL - 2060, HL - 2400C, HL - 2400Ce , HL - 3400CN, HL - 1650, HL - 1670N, HL - 3260N and HL - 2460 . Other our printers does not support PJL. COMMAND HL - 1050 HL - 1070 HL - 1250/1450 HL - 12[...]

  • Page 380

    10/5/2001 APPENDIX A - COMPA RISON LIST - 28 @PJL EXECUTE operation v SHUTDOWN, DEMOPAGE, RESIFONT, PERMFONT, PRTCONFIG , TESTPRINT v DEMOPAG E, TESTPRINT , RESIFONT, PERMFONT , PRTCONFI G, LAMINATE, ROTATERO LLER, BRNETDEF AULT, BRNETINIT , ENTBRNET TEST, EXITBRNE TTEST, ITEM, SERVICEIN IT v TESTPRINT , R ESIFONT, PERMFONT , PRTCONFI G, BRNETDEF A[...]

  • Page 381

    10/5/2001 APPENDIX A - COMPARISON LIST - 29 COMMAND HL - 1050 HL - 1070 HL - 1250/1450 HL - 1270N/ 1470N HL - P2500 HL - 1660e , HL - 2060 HL - 2400C /Ce/, 34 00CN HL - 1650/ 1670N HL - 3260N HL - 2460 @PJL JOB [NAME = "job name"] [START = first page] [END = last page] [PASSWOR D = "password"] [<CR>] <LF> v [NAME = &[...]

  • Page 382

    10/5/2001 APPENDIX A - COMPA RISON LIST - 30 @ PJL SET [LPARM : personality] variable = value [<CR>]<LF> v <… <… <… <… <… <… <… @PJL INQUIRE [LPARM : personality] variable [<CR>]<LF> v <… <… <… <… <… <… <… COMMAND HL - 1050 HL - 1070 HL - 1250/1450 HL - 12[...]

  • Page 383

    10/5/2001 APPENDIX A - COMPARISON LIST - 31 @PJL INFO STATUS [<CR>]<LF> v <… <… <… <… <… <… <… <… <… <… @PJL INFO VARIABLES [<CR>] <LF> v <… <… <… <… <… <… <… <… <… <… @PJL INFO USTATUS [<CR>]<LF> v DEVICE, JOB, PA[...]

  • Page 384

    10/5/2001 APPENDIX A - COMPA RISON LIST - 32 @PJL RDYMSG DISPLAY = "message" [<CR>]<LF> v <… <… <… <… <… <… <… <… <… <… @PJL OPMSG DISPLAY = "message" [<CR>]<LF> v <… <… <… <… <… <… <… <… <… <… @PJL STMSG D[...]

  • Page 385

    10/5/2001 APPENDIX A - COMPARISON LIST - 33 General PJL Environment Variables GENERAL PJL ENVIRONME NT VARIABLES HL - 1050 HL - 1070 HL - 1250 / 1270N /1450/ 1470N HL - P2500 HL - 1660e / 2060 HL - 2400C /Ce HL - 3400CN HL - 1650/ 1670N HL - 3260N HL - 2460 COPIES 1~200 1~200 1~999 1~999 1~999 1~999 1~999 1~ 999 1~999 1~999 PAPER LETTER, LEGAL, A4,[...]

  • Page 386

    10/5/2001 APPENDIX A - COMPA RISON LIST - 34 RESOLUTION 300, 600 300, 600 300, 600,1200 300, 600 300, 600 (HL - 1660e) 300, 600, 1200 (HL - 2060) 300, 600 300, 600 300, 600, 1200 300, 600 300, 600, 1200 PERSONALIT Y AUTO, PCL, IBM, EPSON AUTO, PCL, IBM, EPSON, POS TSCRIP T AUTO, PCL, IBM, EPSON PCL AUTO, PCL, POSTSCRIP T, IBM, EPSON, HPGL AUTO, PCL[...]

  • Page 387

    10/5/2001 APPENDIX A - COMPARISON LIST - 35 INTRAY1SIZE LETTER, LEGAL, A4, EXECUTIVE , COM10, MONARCH, C5, DL, B5, A5, A6, B6 LETTER, LEGAL, A4, EXECUTIVE , COM10, DL, B5 LETTER, LEGAL, A4, EXICUTIVE, B5 , JIS B5, LEDGER, A3, JIS B4, A3PLUS, COM10, DL, LTRS, A4S LETTER, LEGAL, EXECUTIVE , A3, A4, B5, A5, A6, COM10, C5, DL, MONARCH, LEDGER, JISB4, L[...]

  • Page 388

    10/5/2001 APPENDIX A - COMPA RISON LIST - 36 ECONOLEVE L 0~3 0~3 0~3 0~3 0~3 0~3 0~3 0~3 0~3 0~3 XOFFSET - 500~500 - 500~500 - 500~500 - 500~500 - 500~500 - 500~500 - 500~500 - 500~500 - 104 ~500 - 500~500 YOFFSET - 500~500 - 500~500 - 500~500 - 500~500 - 500~500 - 500~500 - 500~500 - 500~500 - 500~500 - 500~500 TIMEOUTEM U 1~99 1~99 1~99 1~99 1~99[...]

  • Page 389

    10/5/2001 APPENDIX A - COMPARISON LIST - 37 KEEPPCL ON, OFF ON, OFF (HL - 1270N only) ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF DOUBLESTRI KE ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF DUPLEX ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF BINDING LONGEDGE, SHORTEDG E LONGEDGE, SHORTEDG E LONGEDGE LONGEDGE LONGEDGE FIRSTPRINT NORMAL, MIDDLE, HIG[...]

  • Page 390

    10/5/2001 APPENDIX A - COMPA RISON LIST - 38 PCL Specific Variables PCL SPECIFIC VARIABL ES HL - 1050 , HL - 1070 , HL - 1250 , HL - 1270N/1450/1470N , HL - P2500 HL - 1660e , HL - 2060, HL - 2400C/Ce, HL - 3400CN HL - 1650/1670N HL - 3260N , HL - 2460 FONTSOURCE I, S I, C, C1, S I, S I, C 1 , C 2 , S FONTNUMBER 0,1,2, ...n 0,1 ,2, ...n 0 - 0x7FFFF[...]

  • Page 391

    10/5/2001 APPENDIX A - COMPARISON LIST - 39 AUTOSKIP ON, OFF ON, OFF ON, OFF ON, OFF[...]

  • Page 392

    10/5/2001 APPENDIX A - COMPA RISON LIST - 40 PostScript Specific Variables POSTSCR IPT SPECIFIC VARIABLES HL - 1050 HL - 1070 HL - 1250/1450 HL - 1270N/1470N HL - P2500 HL - 1660e , HL - 2060, HL - 2400C/Ce, HL - 3400CN HL - 1650/1670N HL - 3260 HL - 2460 PRTPSERRS ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF ORIENTATION PORTRAIT, LANDSCAP E POR[...]

  • Page 393

    10/5/2001 APPENDIX A - COMPARISON LIST - 41 EPSON Specific Variables EPSON SPECIFIC VARIABLES HL - 1050 , HL - 1070, HL - 1 250, HL - 1270N/1450/1470N HL - P2500 HL - 1660e , HL - 2060, HL - 2400C/Ce, HL - 3400CN HL - 1650/1670N HL - 2460 HL - 3260N ORIENTAION PORTRAIT LANDSCAPE PORTRAIT LANDSCAPE PORTRAIT LANDSCAPE PORTRAIT LANDSCAPE PORTRAIT LAND[...]

  • Page 394

    10/5/2001 APPENDIX A - COMPA RISON LIST - 42 IBM Specific Variables IBM SPECIFIC VARIABLES HL - 1050 , HL - 1070, HL - 1250, HL - 1270N/1450/1470N HL - P2500 HL - 1660C , HL - 2060, HL - 2400C/Ce, HL - 3400CN HL - 1650/1670N HL - 3260N HL - 2460 ORIENTATION PORTRAIT, LANDSCAPE PORTRAIT, LANDSCAPE PORTRAIT, LANDSCAPE PORTRAIT, LANDSCAPE PORTRAIT, LA[...]

  • Page 395

    2001/10/02 APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 1 APPENDIX B FLASH/PCMCIA CARD COMMANDS <For HL - 1270N/1470N/ 1660e/2060/2400C/2400Ce/3400CN /1650/1670N/2460/3260N Only>[...]

  • Page 396

    2001/10/02 APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 2 C ONTENTS 1. INTRODUCTION .......................................................................................................................... 3 2. HOW TO READ THE C ARD C OMMANDS SPECIFICATIO N .............................................. 4 2.1 Commands ................................[...]

  • Page 397

    2001/10/02 APP ENDIX B - FLASH/ PCMCIA CARD C OMMANDS - 3 1. INTRODUCTION The Flash/Card Commands described in this chapter are applicable to the HL - 1270N / 1470N / 1660e / 2060 / 2400C / 2400Ce / 3400CN / 1650 / 1670N / 2460 / 3260N printers only. The following types of devices can be us ed for the printers; 1) Flash memory card (HL - 1660e / 20[...]

  • Page 398

    2001/10/02 APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 4 2. HOW TO READ THE CARD COMMAN DS SPECIFICATION Each command is described in the following four sections of this manual. 2.1 Commands Command data sequences and syntax. ESC or CR stands for 0x1b or 0x0d as follows; ESC ----0x1b CR ---- 0x0d 2.2 Available Devices The suppo rted memory card devic[...]

  • Page 399

    2001/10/02 APP ENDIX B - FLASH/ PCMCIA CARD C OMMANDS - 5 3. COMMANDS 3.1 Select Storage Device Command (For HL - 2060/ 2400C/ 2400Ce/3400CN/2460/3260N O nly) Command ESC CR ! 12358F Slot No ** Slot No = 1 Slot No = 2 ( Slot No. 2 is not used for the HL - 2460/3260N. ) Slot No = 3 (Internal HDD) Default = 1 Available Devices F, A, H Description The[...]

  • Page 400

    2001/10/02 APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 6 3.2 Format Command 3.2.1 Physical format Command ESC CR ! 12340F Available Devices F, A, H, I Description This command executes a physical format for the storage device . This will delete all existing data on the device . When two devices are install ed into the printer, the command formats the[...]

  • Page 401

    2001/10/02 APP ENDIX B - FLASH/ PCMCIA CARD C OMMANDS - 7 3.3 Save Data Command 3.3.1 Save specified type Command ESC CR ! 12345F type(4byte) size(4byte) data... ** type = MCRO, DATA Available Devices F, A, H Description This command saves data of the spe cified type with the data ID which is set with the ESC & f # Y (Macro ID Configuration) co[...]

  • Page 402

    2001/10/02 APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 8 3.4 Data 3.4.1 Save data Command ESC CR ! 12347F ID(2byte) size(4byte) data... Available Devices F, A, H Description This command saves data wh ich is sent from the PC with the specified ID onto the device . If there is insufficient memory in the printer to store the data, a memory full error o[...]

  • Page 403

    2001/10/02 APP ENDIX B - FLASH/ PCMCIA CARD C OMMANDS - 9 3.5 Font 3.5.1 Save primary font Command ESC CR ! 12343F Available Devices F, A, H, I Description This command saves the primary font which is currently selected into the device . The primary font can also be saved by control panel operation. The ID specified with the ESC * c # D (Font ID ) [...]

  • Page 404

    2001/10/02 APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 10 3.5.3 Delete all download fonts Command ESC * c 1028F Available Devices F, A, H, I Description This command deletes all the download fonts which are saved in the device . When two devices are installed into the printer, the command deletes the download fonts in the device specified by the sele[...]

  • Page 405

    2001/10/02 APP ENDIX B - FLASH/ PCMCIA CARD C OMMANDS - 11 3.5.5 Save download font with specified ID Command ESC * c 1029F Available Devices F, A, H, I Description This command saves the font with the ID which is specified with the ESC * C # D (Font ID) command. When two devices are installed into the printer, the command saves the download fonts [...]

  • Page 406

    2001/10/02 APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 12 3.6 Macro 3.6.1 Delete all macros Command ESC & f 1030X Available Devices F, A, H, I Description This command deletes all t he macros which are saved in the device . When two device s are installed into the printer, the command deletes all the macros in the device specified by the select s[...]

  • Page 407

    2001/10/02 APP ENDIX B - FLASH/ PCMCIA CARD C OMMANDS - 13 3.6.3 Save macro with spec ified ID Command ESC & f 1038X Available Devices F, A, H, I Description This command saves a macro with the ID which is specified with the ESC & f # Y (Macro ID Configuration) command on the device . When two device s are installed into the p rinter, the c[...]

  • Page 408

    2001/10/02 APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 14 3.6.5 Save image (Printing location not fixed) Command ESC CR ! 12350F Available Device F Description After transferring the l ast print data into the image data area, this command saves the data with the ID which is specified with the ESC & f # Y (Macro ID Configuration) command as a PCL [...]

  • Page 409

    2001/10/02 APP ENDIX B - FLASH/ PCMCIA CARD C OMMANDS - 15 3.7 Copy Card (For HL - 1660e/2060/2400C/2400Ce/3400CN /2460/3260N Only) Command ESC CR ! 12357F Available Devices F, A Description 1) Flash memory card After executing a logical format on the transfer device , this command co pies to the transfer device only when the two device s have the [...]

  • Page 410

    2001/10/02 APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 16 4. USE CARD COMMANDS FR OM PCL 4.1 Execute Macros Command ESC & l 2 X Execute Macro ESC & l 3 X Call Macro ESC & l 4 X Macro Overlay Available Devices F, A, H, I Description The macros saved in the device can be executed from the PCL command language as well as saving macros in the[...]

  • Page 411

    2001/10/02 APP ENDIX B - FLASH/ PCMCIA CARD C OMMANDS - 17 4.2 Use Download Fonts Command ESC ( # X Designates soft font # as Primary ESC ) # X Designates soft font # as Secondary ** # = font ID number Available Devices F, A, H, I Description The download fonts saved in the device can be selected from the PCL command language as well as saving down[...]

  • Page 412

    2001/10/02 APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 18 5. USE CARD COMMANDS FR OM POSTSCRIPT The PostScript emulation recogni z es the storage device as a hard disk (except a Flash memory card) and the PostScript file operation allows you to read/write data on these devic e s. (i.e.) Create the file named “test” and write the data, “This is [...]

  • Page 413

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 1 APPENDIX C HBP MODE COMMANDS <For HL - 820/1020/1040 Only>[...]

  • Page 414

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 2 C ONTENTS 1. DESCRIPTIONS ..................................................................................................................................... 3 2. COMMAND TO ENTER HBP MODE .................................................................................................. 4 3. HBP COMMAND[...]

  • Page 415

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 3 1. DESCRIPTIONS The HBP mode commands can be used for the HL - 820/1020/1040 printers only. The following commands and syntax are used in these specifications. Description: meaning or code <Esc>: 0 x 1b <Space>: 0 x 20 <LF>: 0 x 0a *: 1byte of data +: sign for combining data ( This is no[...]

  • Page 416

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 4 2. COMMAND TO ENTER HBP MODE Command <ESC>%-12345X@PJL<LF> @PJL<Space>ENTER<Space>LANGUAGE<Space>=<Space>HBP<LF> Function The printer enters the HBP mode when this comma nd is received. Explanation The printer can receive this command when it is in the idle condit[...]

  • Page 417

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 5 3. HBP COMMANDS An HBP command is composed of ‘@’ + an Uppercase Alphabetic character + parameters (not necessary for some commands). 3.1 Command List <Character string> <Functions> @A Reserved @B Reserved @C Not used @D Speed setting for Centronics I/F @E Economy mode setting @F Form feed[...]

  • Page 418

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 6 3.2 Commands (Detailed Explanation) 3.2.1 Resolution setting commands Command @L + * Function This command sets the printer resoluti on. Command Resolution @ L+ (00000000)B 600dpi (Default) @ L+ (00000101)B 300dpi @ L+ (00001010)B 150dpi Explanation The resolution is set when the printer receives this com[...]

  • Page 419

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 7 3.2.3 Sleep mode setting commands Command @T+ * Function This command sets the sleep time in m inutes. Explanation This command is valid immediately after the printer receives the command. The command is valid until one of the following occurs. (1) The printer receives the Exit command. (2) The printer re[...]

  • Page 420

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 8 3.2.4 Mode setting commands Command @M+* Function This command allows various error mode operations to be set. 1 byte, used as 8 bits, that follows the @M command select the settings for each mode. Bit0:0 = The printer clears the input buffer when a Paper Jam error or Undefined Code error occurs. The prin[...]

  • Page 421

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 9 3.2.5 Engine related setting commands Command @J+* Function This command allows the setting of engine related commands. Each setting depends on the value of the 3 byte command string. @J+CHR$ (0) +CHR$ (n): Sets Media Type This command allows the printer to change the temperature control for the fuser uni[...]

  • Page 422

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 10 3.2.7 Graphic data input commands Command @G+[data length(3bytes)]+data Function The 3 bytes of data following the @G command shows the length of the data, N. The N bytes following this 3 byte header is handled as graphic data. (Example) fprintf(fp,”@G%c%c%c”, (char)((data_length>>16)&0xff)[...]

  • Page 423

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 11 3.3 Graphic Dat a Format The data format, which follows the @G+ [number of data bytes (3 bytes)] command, is as shown below. the number of command bytes for raster 1 command byte 1 modified data 1 command byte 2 modified data 2 the number of command bytes for raster 2 command byte 1 modified data 1 modif[...]

  • Page 424

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 12 The 5th byte data onward is replaced by the twelve data bytes AAh. 11101010b,02h,Aah When the replacement position and the amount of replacement data are overflow, the next data byte becomes an Expansion Offset Byte. However, if the number is FFh, 00h is added . The number of command bytes = 300, FFh+2Dh[...]

  • Page 425

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 13 4. RECOMMENDED COMMAND STRING The command strings below shows the recommended command stream for two pages of a print job. <Esc>% - 12345X@PJL<LF> used for HL - 820/1020/1040 @PJL DEFAULT AUTOSLEEP=0<L F> used for HL - 820/1020/1040 @PJL DEFAULT TIMEOUTSLEEP= 15<LF> used for HL - [...]

  • Page 426

    2001/10/02 APPENDIX C HBP MODE COMMANDS - 14[...]

  • Page 427

    2001/10/02 APPENDIX D REFERENCE LIST OF MX - 2000 /4000/5000 SERIES UNIQUE COMMANDS - 1 APPENDIX D REFERENCE LIST OF MX - 2000 /4000/5000 SERIES UNIQUE COMMANDS[...]

  • Page 428

    2001/10/02 APPENDIX D REFERENCE LIST OF MX - 2000 /4000/5000 SERIES UNIQUE COMMANDS - 2 C ONTENTS 1. INTRODUCTION ............................................................................................................. 3 2. GENERAL SPECIFICATIO N ........................................................................................ 4 3. COMM[...]

  • Page 429

    2001/10/02 APPENDIX D REFERENCE LIST OF MX - 2000 /4000/5000 SERIES UNIQUE COMMANDS - 3 1. INTRODUCTION This manual covers the general specifications and the command reference list of the MX - 2000 series ( MX - 2001 / MX - 2002 / MX - 2003 ), MX - 4000 series (MX - 4100 / MX - 4200 / MX - 4300) and MX - 5000 Mailbox units . The MX - 2000 series Ma[...]

  • Page 430

    2001/10/02 APPENDIX D REFERENCE LIST OF MX - 2000 /4000/5000 SERIES UNIQUE COMMANDS - 4 2. GENERAL SPECIFICATIO N The Mailbox unit is an option for the HL - 2060 , HL - 2460 or HL - 3260 printer and the MX - 2000/4000 series composed of three types of units. The MX - 2001 /4100 Lower Mailbox unit consists of five bins. The MX - 2002 /4200 Upper Mai[...]

  • Page 431

    2001/10/02 APPENDIX D REFERENCE LIST OF MX - 2000 /4000/5000 SERIES UNIQUE COMMANDS - 5 3. COMMAND REFERENCE LI ST This section describes the specific commands as listed below used to support the functions of the Mailbox unit. 1) PJL output tray & mode setting 2) PJL mailbox protection & bin number setting 3) PJL avoidance of output bin ful[...]

  • Page 432

    2001/10/02 APPENDIX D REFERENCE LIST OF MX - 2000 /4000/5000 SERIES UNIQUE COMMANDS - 6 3.1.2. PJL mailbox protection & bin number setting Format @PJL SET/DEFAULT MAILBOXPROTECT= TrayNumber Parameter TrayNumber <HL - 2060/2460> • Lower unit: #1 to 5 from bottom to top • Lower unit + Upper unit: #1 to 10 from bottom to top <HL - 326[...]

  • Page 433

    2001/10/02 APPENDIX D REFERENCE LIST OF MX - 2000 /4000/5000 SERIES UNIQUE COMMANDS - 7 3.1.4. PCL output tray setting Command Esc&l#G (27)(38)(108)#(71) <1Bh><38h><6ch>#<47h> Parameter # denotes the output tray. • 1: Select the printer face - down output tray. • 3: Select #1 bin of the Mailbox unit. • 4: Select #2[...]

  • Page 434

    2001/10/02 APPENDIX D REFERENCE LIST OF MX - 2000 /4000/5000 SERIES UNIQUE COMMANDS - 8 Explanation • This operator selects the specified output tray and output mode. • This operator is ignored when no tray is specified. • The ‘1’ and ‘2’ parameters are executed for all output trays other than ones which are defined and protected as m[...]

  • Page 435

    2001/10/02 APPENDIX D REFERENCE LIST OF MX - 2000 /4000/5000 SERIES UNIQUE COMMANDS - 9 3.1.6. PS mailbox protection & bin number setting Command <HL - 2060> # setoutputprotect <HL - 2460/3260> <</BROutbinProtect # >> setpagedevice Parameter # <HL - 2060/2460> • Lower unit: #1 to 5 from bo ttom to top • Lower u[...]

  • Page 436

    2001/10/02 APPENDIX E REFERENCE LIST OF FS - 5050 SERIES UNIQUE COMMAN DS - 1 APPENDIX E REFERENCE LIST OF FS - 5050 UNIQUE COMMANDS[...]

  • Page 437

    2001/10/02 APPENDIX E REFERENCE LIST OF FS - 5050 SERIES UNIQUE COMMANDS - 2 C ONTENTS 1. INTRODUCTION ................................................................................................................ 3 2. GENERAL SPECIFICATIO N ........................................................................................... 3 3. COMMAND R[...]

  • Page 438

    2001/10/02 APPENDIX E REFERENCE LIST OF FS - 5050 SERIES UNIQUE COMMAN DS - 3 1. INTRODUCTION This manual covers the general specifications and the command reference list of the FS - 5050 Finisher/Stapler units, which are optionally installed onto the HL - 3260 printer. 2. GENERAL SPECIFICATIO N The Finisher/Staple r unit is an option for the HL - [...]

  • Page 439

    2001/10/02 APPENDIX E REFERENCE LIST OF FS - 5050 SERIES UNIQUE COMMANDS - 4 3.1. Commands Descriptions 3.1.1. PJL output tra y Format @PJL SET/DEFAULT OUTBIN= TrayName Parameter TrayName* • FINISHER : Select the tray of the Finisher/Stapler unit Default = ALLSTACKER Explanation • This command selects the Finisher/Stapler unit . • This comman[...]

  • Page 440

    2001/10/02 APPENDIX E REFERENCE LIST OF FS - 5050 SERIES UNIQUE COMMAN DS - 5 3.1.4. PJL staple on/off Format @PJL SET/DEFAULT STAPLE= StapleName Parameter StapleName* • UPPER LEFT : Select the upper left of the Finisher/Stapler unit • UPPER RIGHT: Select the upper right of the Finisher/Stapler unit • LOW ER LEFT: Select the lower left of the[...]

  • Page 441

    2001/10/02 APPENDIX E REFERENCE LIST OF FS - 5050 SERIES UNIQUE COMMANDS - 6 3.1.6. PJL job offset on/off Format @PJL SET/DEFAULT JOBOFFSET=ON/OFF Parameter • ON : Paper is ejected offset by each j ob. • OFF: Paper is ejected together. Default = ON Explanation • This command selects the job offset . • This command is ignored when the Finish[...]