Homelite 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

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Homelite 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 Homelite 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 Homelite 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 Homelite HL-2400CE should contain:
- informations concerning technical data of Homelite HL-2400CE
- name of the manufacturer and a year of construction of the Homelite HL-2400CE item
- rules of operation, control and maintenance of the Homelite 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 Homelite 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 Homelite 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 Homelite 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 Homelite 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 Homelite 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

    Trademark ackno wledgments Brother is a registered trademark of Bro ther Industries Ltd. PostScript is a registered trademark of Adobe Incorporat ed. Epson is a reg istered trademark and FX- 850 a trad emark of Seiko Epso n Corporation . Hewlett Packard, HP, LaserJet and PCL are registered tr ademarks and LaserJet, HP-GL, and HP-GL /2 are trademark[...]

  • Page 3

    i T ABLE OF CONTENTS GLOSSARY CHAPTER 1 INTRODUCTION 1. ABOUT THE MANUAL ------------ ------------- -------------- ------------- ---------- ----------- ---------- 3 2. AREAS OF USE ------------ ------------- ----------- ------------- ------------- ----------- ----------- ------- 4 CHAPTER 2 PCL 1. COMMAND LIST -- ------------- ------------ --------[...]

  • Page 4

    i i CHAPTER 6 EPSO N FX-850 1. COMMAND LIST -- ------------- ------------ --------- ------------- ------------- -------------- ---------- ---- 3 2. INTRODUCTION ------------ ---------- ------------ ---------- ------------- ----------- ------------- --------- 5 3. EMULATION DETAILS ----------------- ------------- ----------- ----------- ------------[...]

  • Page 5

    iii GLOSSAR Y Absolute plotting A method of plotting in the HP-GL and HP-GL/2 graphics language where coordinates are sp ecified relative to th e orig in of the coor dinate system currently in use. Anchor point The top left-hand corner of the PCL picture frame. Y ou can position this on the page using a PCL command. Anisotropic scaling A form of im[...]

  • Page 6

    iv Control panel reset A reset or facto ry reset pe rformed using the printer control panel. Cross-hatching A method of shad ing using per pendicular d iagonal lines th at cross one anoth er. Current units The current unit ty pe in use in HP-GL an d HP-GL/2 mode. Current u nits are either user units or graphics un its depending on whether an SC c o[...]

  • Page 7

    v Font A collection of c haracte rs that are designed to wor k in harmony togeth er. A font has several characteristics that identify it uniquely: character or symbol set, spacing, pitch, h eight or point size, style, stroke weight and typeface. Fonts can either be resident in the pr inter's ROM, installed on car tridge or downloaded from your[...]

  • Page 8

    vi Logical page The area of the physical page on which the cursor can be positioned in LaserJet mode. You can use PCL comm ands to specify the positio n of the logical page on the phy sical page. Also k nown as the PCL addressable area. LSB i) The least significant by te of a set of data bytes. ii) The least significant bit of a single byte of data[...]

  • Page 9

    vii Physical pa ge The paper or en velope on which the printer prints. Picture frame The area of the physical p age in which HP-GL and HP-GL/2 g raphic images can be printed. Pitch The number of characters in o ne inch of te xt. Only applicable to monospaced (fixed pitch fonts.) Plot A drawing pr oduced us ing the HP-GL and HP-GL/2 grap hics langua[...]

  • Page 10

    viii Reset When you reset the printer yo u restore a ba se set of conditions. A reset can either be perform ed using the control pa nel or by sending the printer a reset command. There are two ty pes of reset, the normal reset and facto ry reset. A norm al reset simply restores the cur rent emulation mode with the most recent con trol panel setting[...]

  • Page 11

    ix Stick font The d efault HP-GL and HP-GL/2 fon t consisting of thin lined characters. Stroke weight The thickness of the lines that comprise the chara cters in a particu lar font. Medium , bold and light str oke weights a re com monly used. Sub-polygon A shape consisting o f a closed group of points connected by lines. Several sub- polygo ns can [...]

  • Page 12

    [...]

  • Page 13

    10/10/03 CHAPTER 1 INTRODUCTI ON - 1 CHAPTER 1 INTRODUCTION[...]

  • Page 14

    10/10/03 CHAPTER 1 INTRODUCTI ON - 2 CONTENTS1. ............................................ ................................................. ABOUT THE MANUAL 3 2. AREAS OF U SE ............... ................ ............. ................ ................ ............ ................4 2.1 Using Word Processing Pa ckages and Spreadsheets ......[...]

  • Page 15

    10/10/03 CHAPTER 1 INTRODUCTI ON - 3 1. ABOUT THE MANUAL This technic al referenc e manual is intended to help you get the most out of each of the emulat ion modes supported by your HL-Series la ser printer. It is divided i nto nine sections - this int roductory se ction and one section for each of the emul ation m odes. Each emul ation m ode secti[...]

  • Page 16

    10/10/03 CHAPTER 1 INTRODUCTI ON - 4 2. AREAS OF USE There are several different applica tions for which you may want to use your HL-Series laser printer. Four general areas are out lined in the following se ctions. 2.1 Usi ng Word Pr ocessing Packages a nd Spreadsheets You may sim ply wish to use the pri nter with your softwa re application packag[...]

  • Page 17

    10/10/03 CHAPTER 1 INTRODUCTI ON - 5 2.4 Font Development In LaserJet m ode you can send your own character designs to an HL-Series laser pri nter and print text using them. To do this you need fi rst to design your charact ers on paper. Having done this you can then eithe r input and download y our characte rs using a com merci al software pac kag[...]

  • Page 18

    10/10/03 CHAPTER 1 INTRODUCTI ON - 6[...]

  • Page 19

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

  • Page 20

    10/10/03 CHAPTER 2 "PCL " - 2 C ONTENTS 1. COMMAND LIS T ............... ................ ............. ................ ................ ............ ................ .......... 7 2. INTRODUCT ION ............ ................ ............ ................ ................ ............. ................ ........... 10 3. CONTROLLIN G THE[...]

  • Page 21

    10/10/03 CHAPTER 2 "PCL " - 3 4.2.9. Units .. ............... ................. ............... ................. ............... ................. ............... ............................ .....25 4.2.10. Unit of mea sure ........................... .................. .................. .............. .................. ..............[...]

  • Page 22

    10/10/03 CHAPTER 2 "PCL " - 4 5.2.9. Scaling th e scalab le fonts vertically o r horizo ntally ...... .................. ................. .................. ............... 45 5.2.10. Selectin g the style ...... .................. .............. .................. .............. .................. .................... ............ .....4[...]

  • Page 23

    10/10/03 CHAPTER 2 "PCL " - 5 6.5.4. Set pic ture fr ame h orizon tal size ............. .................. .............. .................. .............. ................. ........ 87 6.5.5. Specify ve rtical plo t size ............. .................. .................. ................. .................. ................. ..........[...]

  • Page 24

    10/10/03 CHAPTER 2 "PCL " - 6 8.5.18. Memory s tatus res ponse ........................ .............. .................. .............. .................. .............. ... .......101 8.5.19. Memory er ror res ponse ........................ ................. ............... ................. ............... ................. . ........1[...]

  • Page 25

    10/10/03 CHAPTER 2 "PCL " - 7 1. COMMAND LIST Control Codes 11 Escape sequences 12 Esc&k#G Line termina tion 12 Esc&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 16 Esc&l#H Paper source 17 Esc&l#U Left long[...]

  • Page 26

    10/10/03 CHAPTER 2 "PCL " - 8 Esc(s#V, Esc)s#V Selecting t he height 46 EscCR!#H, EscCR!#V Scaling the scalabl e fonts verticall y or horizontally 46 Esc(s#S, Esc)s#S Selecting the style 46 Esc(s#B, Esc)s#B Selecting t he stroke weight 47 Esc(s#T, Esc)s#T Selecting t he typeface 47 Esc&p#X Transparent print data 49 Esc&d#D, Esc&am[...]

  • Page 27

    10/10/03 CHAPTER 2 "PCL " - 9 Status Readback 95 Esc*s#T Set status re adback location type 96 Esc*s#U Set status readback loca tion unit 96 Esc*s#I Inquire stat us readback entit y 97 Esc*s1M Free space com mand 101 Esc&r#F Flush all pages comm and 102 Esc*s#X Echo command 102[...]

  • Page 28

    10/10/03 CHAPTER 2 "PCL" - 10 2. INTRODUCTION This laser printe r provides a compl ete em ulation of the supported Hewle tt Packard LaserJet printer. Feat ures include raster and vector graphic s, support for bitmap and scal able fonts and page control . There are many resident font s in the print er and you can gai n access to m ore by i[...]

  • Page 29

    10/10/03 CHAPTER 2 "PCL " - 11 3. CONTROLLING THE PRINTER 3.1. Control Codes Control codes are AS CII codes that te ll the printer t o perform a gi ven function, such as a carriage ret urn. You can send these codes to the printer as part of a program. 3.1.1. Backspace (08) <08h> ASCII code 8. This code moves the cursor one col umn t[...]

  • Page 30

    10/10/03 CHAPTER 2 "PCL" - 12 3.2. Escape Seque nces Escape sequences, al so known as PCL (Printer C ontro l Language) com mands, tel l the printer which operations to perform. An esca pe sequence consists of the Esc character fol lowed by a string of chara cters which define t he operation to be performed. Some esc ape sequences require [...]

  • Page 31

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

  • Page 32

    10/10/03 CHAPTER 2 "PCL" - 14 3.3. Environment s 3.3.1. Factory default envi ronment The factory defaul t environment is the collection of print er settings program med into the pri nter before it leaves the factory. You can restore the fact ory default environm ent using the print er’s control panel. See the User's Guide to fi nd [...]

  • Page 33

    10/10/03 CHAPTER 2 "PCL " - 15 4. JOB CONTROL 4.1.1. Page size Esc& l #A (27)(38)(108)#(65) <1Bh><26h><6Ch>#<41h> # stands for the t ype of paper or e nvelope to be used. Values for # corre spond to the paper or envelope sizes s hown i n the table. Envelopes sizes are show n in the shaded part of the table. Mod[...]

  • Page 34

    10/10/03 CHAPTER 2 "PCL" - 16 • When the printer recei ves this com mand any unpri nted pages are printed and the l eft, right and top m argins 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 are a on the new page. • Depending on your model, you may also [...]

  • Page 35

    10/10/03 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 # m ay be 0, 1, 2, 3, or 4. • If # = 0 the current page is ejected and the paper source rem ains the sam e. • If # = 1 the current page is printed and the upper casset[...]

  • Page 36

    10/10/03 CHAPTER 2 "PCL" - 18 HL-1050 HL-1 060/ 1070 HL-1250/ 1270N/ P2500 HL- 1660e /2060 HL- 2400C HL- 2400Ce HL- 3400C N HL- 1450 /1470N #=0 Eject ← ← ← ← ← ← ← #=1 Sheet Fe eder Tray 1 ← ← ← ← ← ← #=2 Manual Feed ← ← ← ← ← ← ← #=3 N/A ← ← Envelope ← ← ← N/A #=4 N/A Tray 2 ← MP Tray T[...]

  • Page 37

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

  • Page 38

    10/10/03 CHAPTER 2 "PCL" - 20 • # = 2 indicates the back face. If the currently processing page is an odd page, the print er finishes the processing of the page. If the odd page has already be en processed onto t he page and the e ven page has not been processed y et, this comm and is ignore d. If the currently processing page is an eve[...]

  • Page 39

    10/10/03 CHAPTER 2 "PCL " - 21 4.1.13. Exit current emulation mode Esc%-12345X (27)(37)(45)(49)(50)(51)(52)(53)(88) <1Bh><25h><2Dh><31h><32h><33h><34h><35h><58h> • When the printer recei ves this com mand, all page da ta already re ceived is printed out. • All setti ngs are re set [...]

  • Page 40

    10/10/03 CHAPTER 2 "PCL" - 22 4.2. The Page 4.2.1. Physical page The physical pa ge refers to the size of the pa per or envelope currently in use: A4, Letter, B 5, JIS B5, Legal a nd Executiv e are the pe rmitted pape r sizes: Mona rch, COM -10, In ternatio nal DL and Interna tional C5 ar e the allowable envelope sizes. 4.2.2. Printable a[...]

  • Page 41

    10/10/03 CHAPTER 2 "PCL " - 23 4.2.6. Portrait page dimensions (DEFA ULT VAL UES) 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 physica l edge of logical page PAPER SIZE A B C D E F G H LETTER 2550 3300 2400 3[...]

  • Page 42

    10/10/03 CHAPTER 2 "PCL" - 24 4.2.7. Landscape page dimensions (DEFA ULT VAL UES) 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 B Physical page length D Maximum logical page len F Distance from edge of ph page to edge of logical PAPER SIZE A B C D E F G H LETTER 3300 2550 3180 2550 60 0 50 1[...]

  • Page 43

    10/10/03 CHAPTER 2 "PCL " - 25 4.2.8. Coordinates The printer control language coordinate system has its origin at the intersecti on of the left edge of the logic al page and the top margin. The x-coordinate value of the current cursor position increa ses as the cursor moves from left to right, the y-coordina te value increase s as the cu[...]

  • Page 44

    10/10/03 CHAPTER 2 "PCL" - 26 • If the current cursor position is to the right of your new right m argin setting, t he cursor will be moved to t he new right m argin. • The factory default left and ri ght margi n settings are at the le ft and right edges of the logica l page respectively . • Depending on your model , margi n setti n[...]

  • Page 45

    10/10/03 CHAPTER 2 "PCL " - 27 4.2.14. Setting the vertical motion index (VMI) Esc& l #C (27)(38)(108)#(67) <1Bh><26h><6Ch>#<43h> # stands for the height of one row in 1/48". • # can have any value in the range 0-32767. • The distance specifi ed by the VMI is the vertical dista nce moved down the page [...]

  • Page 46

    10/10/03 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 LPRINT [...]

  • Page 47

    10/10/03 CHAPTER 2 "PCL " - 29 Top margin Bottom margin Text length Page leng t 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 VM I). • If you specify a page l ength greater t han is allowed by the phy sical size of the[...]

  • Page 48

    10/10/03 CHAPTER 2 "PCL" - 30 4.2.20. Positioning t he cursor You can position the cursor anywhere on the logic al page . In addition, the cursor posit ion is automat ically changed when text or graphics are print ed. You can e ither position the cursor usi ng absolute PCL coordina te values or position it rela tive to the current cursor [...]

  • Page 49

    10/10/03 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 c olumns param eter indicates that t he cursor is t o be positioned relative to its curren t [...]

  • Page 50

    10/10/03 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 pos itioning - decipoints Esc&a#H (27)(38)(97)#(72) <1Bh>< 26h><61h>#<48h&g[...]

  • Page 51

    10/10/03 CHAPTER 2 "PCL " - 33 4.2.25. Half line f eed Esc= (27)(61) <1Bh><3Dh> This comm and moves the cursor down half a row as defined by the la st VMI or li ne spacing com mand (Esc&l#C ). 4.2.26. Logical pa ge orientation Esc& l #O (27)(38)(108)#(79) <1Bh><26h><6Ch>#<4Fh> # = 0, 1, 2 or 3 ?[...]

  • Page 52

    10/10/03 CHAPTER 2 "PCL" - 34 • All subsequent text is printed in the newly selected orient ation. • The PCL coordinate system and margin settings are rot ated through the specified angl e. Hence the cursor coordinates will change. • HP-GL/2 graphics images cannot be rotated usi ng this com mand. • The factory default orienta tion[...]

  • Page 53

    10/10/03 CHAPTER 2 "PCL " - 35 5. USING FONTS 5.1. Introduction A font is a collecti on of characters tha t have com mon c haracteristic s, such as size , style and t ypeface, and which ranges over a given set of symbol s. For exampl e, 12 point Tennessee B old in the Rom an-8 symbol set is a typical HL Series font. Differe nt sorts of fo[...]

  • Page 54

    10/10/03 CHAPTER 2 "PCL" - 36 Microsoft Window s 3.1 True Type Compatible Fonts: HL-1050/1070/1250/1270N/1450/1470N/P2500/ 1660e/2060/2400C/2400Ce/3400CN/1650/1670N/ 3260N/2460/7050/1850/1870N/5040/5050/ 5070N/2600CN/3450CN Tennessee Roman, Italic, Bold, Bold It alic  Helsinki Medium, Obl ique, Bold, Bol dOblique  BR Sym bol  W D[...]

  • Page 55

    10/10/03 CHAPTER 2 "PCL " - 37 5.1.8. Card/cartridge fonts You can buy cart ridge/card -base d bitmap fonts and scalable typefaces. Pl ug the cartridge/ card into one of the printer’s cart ridge/card slot s and then sele ct any font from them as if it were in t he printer’s RO M. Depending on your model , you can al so save bitm ap fo[...]

  • Page 56

    10/10/03 CHAPTER 2 "PCL" - 38 5.1.15. Criter ia for font selection The printer wi ll try to m atch your stated font requi rements as best it can wi th the fonts a vailable to it in any of the three possible font locations. In most cases you will be specifyi ng a font you know to be present in one of the locations and the result ing printe[...]

  • Page 57

    10/10/03 CHAPTER 2 "PCL " - 39 5.1.22. Stroke w eight Stroke weight refers to the thickness of the lines w hich make up the printed c haracters. Characte rs of normal line thickness are calle d medium . Thicker li nes are referre d to as bold or bl ack and thinner l ines as light or thin. You can specify 15 different stroke weights - 0 de[...]

  • Page 58

    10/10/03 CHAPTER 2 "PCL" - 40 5.2. Font Selection Com mands 5.2.1. User- defined symbol sets User-defined sym bol sets can be use d with Unbound scal abl e fonts. Three new comm ands below are prepared for use to control a user-defined symbol set. To define a symbol set, its ID code must first be de fined. Next, a list of sym bols for the[...]

  • Page 59

    10/10/03 CHAPTER 2 "PCL " - 41 0 -1: He ader size (UI) - set t o 18 or greater. This val ue stands for the num ber of header bytes. 2 -3 : Encode d Symbol S et Designator (UI) - shoul d be as sam e as the ID code which is defi ned by ESC*c#R . 4 : Fo rmat (UB) - 1 for MSL (In tellifont) , 3 for Un icode (Tr ueType) . 5 : Symbol Se t Type [...]

  • Page 60

    10/10/03 CHAPTER 2 "PCL" - 42 Symbol map (Array of UI ) The symbol m ap, which has a list of symbol index numbers, is used to define t he symbols for the symbol set. This map de fines the com binations 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 61

    10/10/03 CHAPTER 2 "PCL " - 43 User-defined symbol sets are defined by the com mand ESC ( f # W. Esc)symbol set ID (27)(41) <1Bh>< 29h> • This comm and selects t he symbol set (characte r set) for the secondary font. • To select any of t he above sym bol sets for the secondary font simply subst itute ‘)’ for ‘(’ i [...]

  • Page 62

    10/10/03 CHAPTER 2 "PCL" - 44 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 CHR[...]

  • Page 63

    10/10/03 CHAPTER 2 "PCL " - 45 • The selection will apply to whichever font you are currentl y specifying (prim ary or secondary). • If the printer doesn't have the specifie d size font, the next largest siz e font is used. If the printer doesn't have a large r sized font, t he next sma llest one i s used. • This value is [...]

  • Page 64

    10/10/03 CHAPTER 2 "PCL" - 46 Value Font Style 0 1 4 5 8 24 32 64 128 160 Upright & solid Italic Condensed Condensed italic Compresse d, or extra condensed Expanded Outlin e Inline Shadowed Outline shadowe d 10 REM ****** PRINT IN ITALIC & UPRIGHT STYLE ** **** 20 ESC$=CHR$(27) 30 WIDTH "LPT1:",255 40 REM --- PRINT USING[...]

  • Page 65

    10/10/03 CHAPTER 2 "PCL " - 47 • The available values vary with t he printer model. The foll owing table shows the value for each typeface and availabi lity. Typeface Se t primary font Set secondary font HL-1050/1250/ P2500/1230/1440 HL-1070/1270N/1660e/2060/ 2400C/ 2400Ce/3400CN/1450/1470N/1650/ 1670N/2460/3260N/7050/1850/ 1870N/5040/5[...]

  • Page 66

    10/10/03 CHAPTER 2 "PCL" - 48 5.2.14. Transpa rent print data Esc&p#X (character codes) (27)(38)(112)#(88) <1Bh><26h><70h>#<58h> • This comm and enables you to print c haracters whi ch are norm ally unprint able. • # is the number of bytes of data that follow t he comm and. • Each byte of data i s interpr[...]

  • Page 67

    10/10/03 CHAPTER 2 "PCL " - 49 5.3. Downloadable font manipulation Fonts that y ou have bought on diske tte can be downloaded to the printer from diskette or hard disk using the DOS COPY com mand or a font downloading appl ications program. To creat e your own fonts you can use PCL comma nds to send the various blocks of data that com pri[...]

  • Page 68

    10/10/03 CHAPTER 2 "PCL" - 50 5.4. Creating Downlo adable Fonts 5.4.1. Dow nloading You can download exist ing fonts (that is, ones that you have bought or ones that y ou have created previ ously) using either a font downloadi ng application program or the DOS command COPY/b <filename> PRN In addition, som e word-processing and Desk[...]

  • Page 69

    10/10/03 CHAPTER 2 "PCL " - 51 • The Font descri ptor has informa tion for the whol e character set. When this font desc riptor is sent to the printer with a font header t o identify t he font ID, the descriptor paramete rs becom e the basis of the downloaded fonts. • The data format for each ty pe of font descriptor block is shown be[...]

  • Page 70

    10/10/03 CHAPTER 2 "PCL" - 52 <Intellifont Sc alable Bound font> B y te 15 ( MSB ) 8 7 ( LSB ) 0 0 Font Descri p tor Size ( >80 ) 2 Descri p tor Format ( 10 ) Font T yp e 4 St y le MSB Rese rved 6 Base Line Position 8 Cell Width 10 Cell Hei g ht 12 Orientati on S p acin g 14 S y mbol S et 16 Pitch ( Default HM I ) 18 Hei g ht 20 [...]

  • Page 71

    10/10/03 CHAPTER 2 "PCL " - 53 <Intellifont Sc alable Unbound font> Byte 15 (MSB ) 8 7 (LSB) 0 0 Font Descriptor Size (<88) 2 Descri ptor Format (11) Fo nt Type (10) 4 Style MSB Reserve d 6 Base Line Position 8 Cell Width 10 Cell Height 12 Orientati on Spaci ng 14 Symbol Set 16 Pitch (Default HMI) 18 Height 20 x-Height 22 Width T[...]

  • Page 72

    10/10/03 CHAPTER 2 "PCL" - 54 <TrueType Scalable Bound font> Byte 15 (MSB ) 8 7 (LSB) 0 0 Font Descriptor Size (>72) 2 Descri ptor Format (15) Fo nt Type 4 Style MSB Reserve d 6 Base Line Position 8 Cell Width 10 Cell Height 12 Orientati on Spaci ng 14 Symbol Set 16 Pitch (Default HMI) 18 Height 20 x-Height 22 Width Type S tyle L[...]

  • Page 73

    10/10/03 CHAPTER 2 "PCL " - 55 10 Unbound font. Cha racter codes corres pondi ng to MSL numbers are acceptable. 11 Unbound font. Cha racter codes corresponding to Unicode numbers are acceptable. When a 7-bit font or 8-bi t font is se lected, it is pos sible for codes 00H to FFH t o load characters or del ete them. It is also possible to p[...]

  • Page 74

    10/10/03 CHAPTER 2 "PCL" - 56 Symbol set name Symb ol set ID Sy mbol set name Symbol set ID D e fa u lt Se t 0 @ Math- 7 0A Line Draw-7 0B HP Lar g e Characters ( 264x Terminal s ) 0C ISO 60: Danish/N orwe g ian 0D ISO 61: Norwe g ian version 2 1D Roman Extensi ons 0E ISO 4: Unite d Kin g dom 1E ISO 25: Fre nch 0F ISO 69: French 1F HP Ger[...]

  • Page 75

    10/10/03 CHAPTER 2 "PCL " - 57 For Intellifont-scalable fonts only, the defaul t HMI i s calculate d as follows. Default HMI (in dots) = (300 x master design pi tch x required point size) ÷ {Ma ster x Re solution ÷(height x 8)} Default HMI ( in dots ) = (300 x master design pi tch x required poi nt size) ÷ {72.307 x scale factor} Heigh[...]

  • Page 76

    10/10/03 CHAPTER 2 "PCL" - 58 Value Vend or 0 Reserved 1 Agfa Division, Mil es Inc. 2 Bitstre am Inc. 3 Linotype C ompany 4 The Monotype Corporation pl c 5 Adobe System s Inc. The Typeface family number can be 0 to 4095. This value is calcula ted as follows; (TrueType base value) + (Vendor value x 4096) = Typeface Family • Serif style ([...]

  • Page 77

    10/10/03 CHAPTER 2 "PCL " - 59 • Font number (ULI) - i gnored by thes e HL Series pri nters. This 4-by te field spec ifies the num ber assigned to the font by t he vending com pany. The num ber is stored as a hexadecim al value in the lower three bytes, bytes 44, 45 and 46. • Font name (16 bytes) - i gnored by thes e HL Series pri nte[...]

  • Page 78

    10/10/03 CHAPTER 2 "PCL" - 60 Unicode Symbol Index Bit Field Designated Use 32 - 63 28 - 31 22 - 27 3 - 21 0 - 2 Miscellaneous uses (South Asian, Arm enian, other alphabets, bar codes, OCR, Mat h, etc.) Reserved f or Latin font s. Reserved for platform / application variant fonts. Reserved for Cy rillic, Arabic, Greek and Hebrew fonts. Sy[...]

  • Page 79

    10/10/03 CHAPTER 2 "PCL " - 61 5.4.3. Unic ode symbol index character comple ment bits Bit Field Designated Use 31 30 29 28 27 26 25 24 23 22 2,1,0 0 if font is compat ible with 7-bit ASCII; otherwi se set to 1. 0 if font is compati ble with IS O 8859/1 Latin 1 (West Europe) character sets; otherw ise set to 1. 0 if font is compati ble wi[...]

  • Page 80

    10/10/03 CHAPTER 2 "PCL" - 62 *Segment Size (UI) - indica tes the si ze of each ite m in t he data segm ent. *Data seg ment - AP - Application support segm ent (reserved) CC - Characte r Complemen t Function and form are as same as characte r complem ent flag in the font descriptor. This is only for unbound fonts. CP - Copyright Value sho[...]

  • Page 81

    10/10/03 CHAPTER 2 "PCL " - 63 <Bitmap c ontinuation data> Byte Data 0-1 Format Continuation 2 Raster Character Data • The bytes which foll ow the header are the raster da ta that m ake up the c haracter. • Attributes are in one of four numerical form ats. Unsigned integer (UI) 0 to 65535 Signed i nteger (SI) –32768 to 32767 U[...]

  • Page 82

    10/10/03 CHAPTER 2 "PCL" - 64 <Intellifont-scalable contour data> MSB LSB 4 Contour Data size 6 Metr ic data o ffset 8 Char acter I ntellifo nt data o ffset 10 Contour tree offset 12 XY data offset 14 Metric d ata Char acter I ntellifon t Data Contour tree data XY coordinate data <Continuation data for In tellifont sc alable cont[...]

  • Page 83

    10/10/03 CHAPTER 2 "PCL " - 65 [TrueType scalable f ont] <TrueTyp e charac ter descrip tor> Byte Data 0-1 Format (15) Continuat ion (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) Continuat ion (0) 2 - 3 D[...]

  • Page 84

    10/10/03 CHAPTER 2 "PCL" - 66 Paper motion Raster scan Top offset = 22 dots Character height = 31 dots Baseline Cursor position afte r character has been p r Character width = 26 dots Delta X = 30 dots Left offset = 2 dots Character reference point Portrait character[...]

  • Page 85

    10/10/03 CHAPTER 2 "PCL " - 67 Paper motion Raster scan Left offset = 22 dots Character width = 31 dots Baseline Cursor position afte r character has been p r Delta X = 30 dots Character reference point Top offset = 27 dots Character height = 26 dots Landscape character[...]

  • Page 86

    10/10/03 CHAPTER 2 "PCL" - 68 6. USING GRAPHICS This HL Serie s printe r afford s the user consid erable fle xibility in th e creation of grap hic images. V ector, raster and re ctangle graph ics are availabl e, all of which allow a rang e of sha ding and f illing op tions. The HP -GL/2 graphics com mands t hat are supported are descri be[...]

  • Page 87

    10/10/03 CHAPTER 2 "PCL " - 69 For exa mple Pattern Source image Destination image Possible results With transparent source image With opaque source ima g 6.1.2. Set pattern transpa rency Esc*v#O (27)(42)(118)#(79) <1Bh><2Ah><76h>#<4Fh> • This co mmand sets the patter n trans parency . • # is either 0 or 1. Set[...]

  • Page 88

    10/10/03 CHAPTER 2 "PCL" - 70 For exa mple Pattern Source image Destination image Possible results With transparent pattern With opaqu e pattern (Source image is transparent) 6.1.3. Se t area f ill identity Esc*c#G (27)(4 2)(99)#(71) <1Bh><2Ah><63h>#<47h> • This comm and sets the patt ern ID of a shading t one, a[...]

  • Page 89

    10/10/03 CHAPTER 2 "PCL " - 71 6.1.4. User- defined patter n command Esc*c#W [ data ] (27)(4 2)(99)#(87) <1Bh>< 2Ah><63h>#<57h> • # should be in the ra nge 0 ~ 32767. • # stands for the number of pattern data byt es. • User defined patterns can be defined by bi nary data or an 8 byte pat tern descriptor. • [...]

  • Page 90

    10/10/03 CHAPTER 2 "PCL" - 72 6.1.6. User- defined patt ern control Esc*c#Q (27)(42)(99)#(81) <1Bh>< 2Ah><63h>#<51h> • # = 0 deletes all (tem porary and pe rmanent) user-defined patterns from the printer mem ory. • # = 1 dele tes all te mporary u ser-d efined patterns from the print er mem o ry. • # = 2 delet[...]

  • Page 91

    10/10/03 CHAPTER 2 "PCL " - 73 • See the following exam ple for program ming examples usi ng patterns. Pattern example 10 WIDTH "LPT1:", 255 20 ESC$ = CHR$(27) 30 REM --- RESET PRINTER --- 40 LPRINT ESC$; "E"; 50 REM --- SET SOURCE=TRANSPARENT --- 60 REM --- SET PATTERN=OPAQUE --- 70 LPRINT ESC$; "*v0n1O"; [...]

  • Page 92

    10/10/03 CHAPTER 2 "PCL" - 74 6.2. Plotting Rectangles Drawing rectangl es is a basic case of printi ng graphics: the source im age consists sole ly of the re ctangle itsel f. Thus only the pattern transparency has any bearing on the final eff ect - the sou rce tran sparen cy is irreleva nt. 6.2.1. Cursor position Position the curso r usi[...]

  • Page 93

    10/10/03 CHAPTER 2 "PCL " - 75 • See the following exam ple for program ming exa mples using gray scales. Gray scale ex ample 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[...]

  • Page 94

    10/10/03 CHAPTER 2 "PCL" - 76 6.3. Raste r Graphics 6.3.1. Positioning the cursor Position the curso r using the commands d escribed in the chap ter entitl ed “The Pag e”, using dots, dec ipoints or rows and colum ns as coordinat e units. 6.3.2. Set raster reso lution Esc*t#R (27)(42)(116)#(82) <1Bh><2Ah><74h>#<52[...]

  • Page 95

    10/10/03 CHAPTER 2 "PCL " - 77 6.3.5. Set raster are a height Esc*r#T (27)(42)(114)#(84) <1Bh><2Ah><72h>#<54h> • This comm and sets the height of the raster im age to be printed. • # is the number of raster rows. • If you use this command aft er using a Start Raste r Gra phics or a Transfer R aster Data com m[...]

  • Page 96

    10/10/03 CHAPTER 2 "PCL" - 78 • # = 5 indicates that adapti ve compression is to be used. This compre ssion compresses m ultiple rows (a block) int o one transfer gra phics comm and. Most other com pression methods com press only one row to one transfer graphics command. One transfer graphic comm and (ESC *b##W) can contai n only up to [...]

  • Page 97

    10/10/03 CHAPTER 2 "PCL " - 79 If the control bit is 0, replace ment data is not re peated data. Bits 6 to 3 contain the offse t count. This field value is from 0 to 15. If this value is 15, the next by te of t he control byt es is an opti onal offset count. The value of this optional offset count byte is from 0 to 255. If this optional o[...]

  • Page 98

    10/10/03 CHAPTER 2 "PCL" - 80 <Second section 66 66 66 66> Offset count = 2 Replacem ent count = 4 Replacem ent data = 66 1 1100001 76543210 Replacement count = 1 + 2 = 3 Offset count = 3 Optional offset count byte = 0 Replacement data = 11 1 1 00010 76543210 Replacement count = 2 + 2 = 4 Offset count = 2 Replacement data = 66 0 •[...]

  • Page 99

    10/10/03 CHAPTER 2 "PCL " - 81 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 fro m MSB 02 00 : fille d from LSB 80 - 81 01 00 Reserved 82 - 83 00 00 Reserved 84 - 85 01 00 Reserved 86 - 87 Resolution 200, 300,[...]

  • Page 100

    10/10/03 CHAPTER 2 "PCL" - 82 6.3.9. Start rast er transfer Esc*r#A (27)(42)(114)#(65) <1Bh><2Ah><72h>#<41h> • This co mmand signals the sta rt of the tra nsfer o f a raster image to the print er. • # is 0 or 1. • # = 0 denotes that the image will be pri nted starting from t he left edge of the logical page. [...]

  • Page 101

    10/10/03 CHAPTER 2 "PCL " - 83 Raster graphics exam ple 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 102

    10/10/03 CHAPTER 2 "PCL" - 84 6.3.13. Horizontal 1200-dpi image format mode (Raster Graphic Mod e 1027) The printer supports 1200 dpi printing for special ima ge formats in 1200 dpi m ode. We recomm end that the installed print er mem ory is 10 M bytes or m ore for 1200 dpi printing. To set 1200 dpi m ode, 1. Set 1200 dpi pri nting mode b[...]

  • Page 103

    10/10/03 CHAPTER 2 "PCL " - 85 <Compressed Im age Data> Data com pression com presses the original image data word by word (16 bits). The compressed data consi sts of both horizontal com pression which uses 16 bit, 8 bit and 4 bit repeating patterns within 1 word or 2 words of data and vertic al compression which indi cates how many[...]

  • Page 104

    10/10/03 CHAPTER 2 "PCL" - 86 6.4. Vector G raphics For large-scale graphic im ages it is more effic ient to use vector graphics. In LaserJet emulati on mode you can set up the page area on which to print vector gra phics images. The vector graphics c apabiliti es of these HL Series printers working in HP-GL/ 2 mode are descri bed in the [...]

  • Page 105

    10/10/03 CHAPTER 2 "PCL " - 87 6.5. The Picture Frame The PCL picture fram e is the rectangular area of the page on whi ch you can print graphic im ages. You can position and size the picture fram e to suit your requirem ents and achi eve effects such as sca ling or distortion of vector graphics i mages. 6.5.1. The defaul t picture frame [...]

  • Page 106

    10/10/03 CHAPTER 2 "PCL" - 88 7. MACROS 7.1. The Purpose of a Macro A macro i s a sequence of comm ands that you wish to exec ute. You can spe cify the c omm and sequence and download it to the printer after whi ch you can execute it wit h a single comm and. For example, you m ight wish to draw a raster image a t the top of e ach page you[...]

  • Page 107

    10/10/03 CHAPTER 2 "PCL " - 89 7.2. Defining a M acro To define a m acro you must fi rst assign an ID num b er to it, t hen send to the printer a Sta rt Macro De finition comma nd, the m acro defini tion itsel f (consisting of a sequence of PCL c omm ands) and finally a n End Macro Definiti on comm and. 7.2.1. Macro ID Esc&f#Y (27)(38[...]

  • Page 108

    10/10/03 CHAPTER 2 "PCL" - 90 7.3. Running a Macro Macros can be i nvoked in three di fferent ways : they can be ‘executed’, ‘cal led’ or ‘enabled for ove rlay’. When a macro is ' executed' it uses the c urrent modi fied print environment . Any changes it ma kes to the environm ent are permanen t. A macro that i s &a[...]

  • Page 109

    10/10/03 CHAPTER 2 "PCL " - 91 7.4. Handl ing Macros 7.4.1. Delete all mac ros Esc&f6X (27)(38)(102)(54)(88) <1Bh><26h><66h><36 h><58h> • This command de letes all macros from the printer’s mem ory. 7.4.2. Delete all temporary macros Esc&f7X (27)(38)(102)(55)(88) <1Bh><26h><66h>&[...]

  • Page 110

    10/10/03 CHAPTER 2 "PCL" - 92 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 SHAD[...]

  • Page 111

    10/10/03 CHAPTER 2 "PCL " - 93 • If the key is [RENAME] , this com mand allows the pri nter to change t he name field of t he AppleTalk na me binding protocol. <ESC>&b#WRENAME< sp>printerna me printernam e should be specifie d with 1 to 31 characters. The characters $00 to $FF (except for $00, @, : , *, =, $C5) can be us[...]

  • Page 112

    10/10/03 CHAPTER 2 "PCL" - 94 8. STATUS READBACK 8.1. Introduction Status readback features are explained in t his sec tion. The printer sends a sta tus response message after receiving a request for its stat us by these c ommands. You can get t he informat ion as shown below from the printe r. - availabl e printe r (user) m emory - curre[...]

  • Page 113

    10/10/03 CHAPTER 2 "PCL " - 95 8.5. Status Response Syntax All of the st atus responses begin with "PCL", Carriage Return control code and a Line Fe ed control code. The response is ended by a Carriage Return and a Line Feed c ontrol code. At the end of the transaction, status responses are ended by a Form Feed Control code. The[...]

  • Page 114

    10/10/03 CHAPTER 2 "PCL" - 96 4 0 1 2 all downloade d entitie s downloaded entity as te mporary downloaded entity as perma nent 5 0 1 n All cartr idge/c ards the cartridge/card whic h has the highest priority . the cart ridge/ca rd wh ich has the low est prio rity • When the location value i s 0, 1 and 2, it ignores the uni t value (whi[...]

  • Page 115

    10/10/03 CHAPTER 2 "PCL " - 97 In a font status response, the "SELECT=" key word line specifies the indi vidual fonts. The font is ident ified by this line by specifying t he font selec tion characteri stics such a s symbol se t, spacing, pit ch, height, styl e, stroke weight, and ty pefaces. It returns the "S ELECT=" [...]

  • Page 116

    10/10/03 CHAPTER 2 "PCL" - 98 "LOCUNIT=" s pecifies th e location u nit of the font whic h is selected at pr esent. Th e value fie ld of the Set Status Read back U nit command is related to th e value return ed. For instance, if the printer font which is select ed at pr esent is a bold 12 point Presentat ion bitma p font which i[...]

  • Page 117

    10/10/03 CHAPTER 2 "PCL " - 99 For instance, a font extended response with the l ocation type set to 1( select ed at present ) where the font which is selecte d at present is the i nternal Pc Tennessee (18 point identifi ed for printing) bold, ret urns the response as follow s. PCL INFO FONTS EXTENDED SELECT="<Esc>(8U<Esc>[...]

  • Page 118

    10/10/03 CHAPTER 2 "P CL" - 100 Status locat ion type 1 (selected a t present) is an incorrect l ocation for unbound font symbol sets and returns an error. Example responses in thi s section for "SYMBOLSETS=" do not indicat e the complete li st of symbol sets whi ch are available internally , but only a part ial list . The inter[...]

  • Page 119

    10/10/03 CHAPTER 2 "PCL " - 101 8.5.17. Font cache In order to print characters from a scalable font , the printer changes the scalable chara cter outlines into siz ed bitmaps. The se bitma pped characters are produced on a character-by-charac ter basis and the produced bitmappe d characters are stored i n mem ory. As it prints m ore page[...]

  • Page 120

    10/10/03 CHAPTER 2 "P CL" - 102 9. INDEX A adaptive compression ... .......... .......... .......... .......... .......... . 78 anchor point........ .......... ........ ............ .......... .......... ........ ... 87 AppleTalk configura tion ................ ............ .............. ....... 92 APT ................ .......... .......[...]

  • Page 121

    10/10/03 CHAPTER 2 "PCL " - 103 HP-GL/2 m ode ................ .......... .......... .......... ........ .......... 86 I internal font ............ .......... ............ ........ .......... .......... ....... 36 italic ................ .......... .......... .......... .......... ........ .......... ...... 46 J Job separa tion com mand .[...]

  • Page 122

    10/10/03 CHAPTER 2 "P CL" - 104 status re sponse................ .......... ............ .......... .......... ....... 94 mem o ry ................ ........ ............ .......... ........ .......... ..... 101 status re sponse synt ax ................ .......... .......... .......... ....... 95 stroke weight .............. .......... ...[...]

  • Page 123

    10/10/03 CHAPTER 3 "PCL 5C" - 1 CHAPTER 3 PCL5C[...]

  • Page 124

    10/10/03 CHAPTER 3 "PCL 5C" - 2 C ONTENTS 1. INTRODUCT ION.................. ................ ................ ............. ................ ................ ............. ..... 3 2. COLOR MODE S ........................ ................ ............. ................ ............. ................ ............. .. 4 2.1. Using Simple Co[...]

  • Page 125

    10/10/03 CHAPTER 3 "PCL 5C" - 3 1. INTRODUCTION This chapter describes the e nhanced comm ands for the PCL5C em ulation. PCL5C is upwa rds-compati ble with PCL5e . For the comm ands of PCL5e, refe r to “Chapt er 2 PCL” whic h describes the PCL5e em ulation. If you are reading this techni cal manual for the first tim e, it is recommend[...]

  • Page 126

    10/10/03 CHAPTER 3 "PCL 5C" - 4 2. COLOR MODES The PCL5C emul ation provides a B/W mode, whi ch is the default, and three col or modes as follows; 1) Simple C olor Mode 2) PCL Color Mode 3) HP-GL/2 Color Mode Simple C olor Mode al lows you to use a maxim um of 8 colors easily. PCL C olor Mode all ows you to use a maxim um of 16,000,000 co[...]

  • Page 127

    10/10/03 CHAPTER 3 "PCL 5C" - 5 2.2. U sing PCL Color Mode - Set PCL Color Setting Command ESC*v#W (27)(42)(118)#(87) <1Bh><2Ah><76h>#<57h> # = 6, 18 # stands for the number of byte s of data that follow this com mand. This comm and sets the palette si ze and transform ation betwe en the entered val ue and device-s[...]

  • Page 128

    10/10/03 CHAPTER 3 "PCL 5C" - 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/i ndex. (2 4 = 16 Palettes) ESC*r1A Start Raster Transfer ESC*b1V 10101010B Send Plane1 data (The Index No Bi t0 data) ESC*b1V 11001100B Send Plane2 data[...]

  • Page 129

    10/10/03 CHAPTER 3 "PCL 5C" - 7 (i.e.) ESC*b#V r, r, r, r , r... → Plane 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 i ndex No. at t he 4th pixel i n the 1st ra st[...]

  • Page 130

    10/10/03 CHAPTER 3 "PCL 5C" - 8 ♣ Bi ts/index • Specifies the palette si ze at 2 n . n i ndicates bi ts/index. ( n =4  2 4 =16 palet tes) • When the encoding mode is 0 or 1, the palette size selected by t he bits/index value specifi es the range of the index No., which can be used for raster data. • The values specified by the [...]

  • Page 131

    10/10/03 CHAPTER 3 "PCL 5C" - 9 ♣ Black reference for value #1, #2, #3 ♣ This mode specifies the black value (the highest 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. Usin g HP-GL/2 Color Mode Two metho[...]

  • Page 132

    10/10/03 CHAPTER 3 "PCL 5C" - 10 3. COLOR PALETTES 3.1. Set Color #1 Command ESC*v#A (27)(42)(118)#(65) <1Bh><2Ah><76h>#<41h> Range = -32767 ~ 32767 Defau lt value = 0 • This command se ts the red value in the pale tte. Use the Set Color to Palette co mmand to set the v alue • The value range to be set varies d[...]

  • Page 133

    10/10/03 CHAPTER 3 "PCL 5C" - 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 ont o the palet te stack. This comm and does not affect the current palette. • The value of 1 pops [...]

  • Page 134

    10/10/03 CHAPTER 3 "PCL 5C" - 12 4. COLOR GRAPHICS 4.1. Start Rast er Transfe r Command ESC*r#A (27)(42)(114)#(65) <1Bh><2Ah><72h>#<41h> # = 0 * Prints the image from the left edge of the logic al page. = 1 Print s the image fr om the cur rent cur sor po sition. = 2 Executes scali ng. Prints the im age from the lef[...]

  • Page 135

    10/10/03 CHAPTER 3 "PCL 5C" - 13 4.4. Set Scale Algorithm Command ESC*t#K (27)(42)(116)#(75) <1Bh><2Ah><70h>#<4Bh> # = 0 * Takes the li ghter overlying dot s when reducing. = 1 Takes the darker overlying dots when reduci ng. * Default value = 0 • This comm and sets which algorit hm the dat a is reduced by. • An[...]

  • Page 136

    10/10/03 CHAPTER 3 "PCL 5C" - 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 primarie s = 2 Snap black t o white, all other colors to bl ack = 3 * Scatt er dither = 4 Scatter dither = 5 Monochrom e device best di ther = 6 Mono[...]

  • Page 137

    10/10/03 CHAPTER 3 "PCL 5C" - 15 5.3. Set Gamma Correct ion Command ESC*t#I (27)(42)(116)#(73) <1Bh><2Ah><74h>#<49h> # = 0.0 ~ 32767.0 (comm and is ignored for invalid values) Default val ue = 0 (gam ma correct ion off) This comm and does not destroy the conte nts of the current palette, but setting a gamma va lue [...]

  • Page 138

    10/10/03 CHAPTER 3 "PCL 5C" - 16 6. HP-GL/2 A few HP-GL/2 c omm ands are added for t he HL-2400C /Ce, HL-3400CN, HL-2600CN, HL-3450CN color laser printer, and the features of som e existing c ommands a re also expanded. The new or revised HP-GL/2 comm ands as follows are described in this chapt er; ♣ Initialize Set Instructi on (IN) - r[...]

  • Page 139

    10/10/03 CHAPTER 3 "PCL 5C" - 17 • PC [pen;]: se ts the pe n to the defau lt colo r. Number of pens in palet te 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 num ber of pens in t he palette is over 8,[...]

  • Page 140

    10/10/03 CHAPTER 3 "PCL 5C" - 18 7. INDEX A algorithm ................ ............ ............ ............ .............. ....... 13 B B/W mode ............ ........ .......... .......... .......... .......... ........ ..... 4 black value ................ ............ ............ .............. .............. .... 9 blue value ..... .[...]

  • Page 141

    10/10/03 CHAPTER 4 HP-G L/2 - 1 CHAPTER 4 HP-GL/2 GRAPHICS LANGUAGE[...]

  • Page 142

    10/10/03 CHAPTER 4 HP-G L/2 - 2 C ONTENTS 1. COMMAND LIS T ............... ................ ............. ................ ................ ............ ................ .......... 4 2. INTRODUCT ION ........................ ................ ............. ................ ................ ............. ................ 6 3. TERMINOLOGY ..... ......[...]

  • Page 143

    10/10/03 CHAPTER 4 HP-G L/2 - 3 7.6. Character Plot Instructions .................................................................................................... .3 8 7.6. 1. Introduction ..................... .................. ....................... .................. ....................... ............ ................. 39 8. INDEX .......[...]

  • Page 144

    10/10/03 CHAPTER 4 HP-G L/2 - 4 1. COMMAND LIST DF Default set instruction 12 IN Initialize set instr uction 13 IP Input scaling point 14 IR Input relative s caling points 14 SC Scale 15 IW Win dow 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 rel[...]

  • Page 145

    10/10/03 CHAPTER 4 HP-G L/2 - 5 DI Absolute direction 45 DR Relative direction 46 DV Define variab le text pa th 47 CP Relative c haracter movement 47 CF Character fill mode 48 SI Set absolute character size 48 SR Set relative c haracter size 49 SL Character slant 49 SB Scalable or bitmap fonts 50 ES Extra space 50 TD Transparent data 50[...]

  • Page 146

    10/10/03 CHAPTER 4 HP-G L/2 - 6 2. INTRODUCTION Some of the HL series pri nters can be used in HP-GL/2 graphics mode to produce vect or graphics output using the comm ands of the HP-GL/2 graphics language or to print out exi sting HP-GL/2 format images. HP-GL/2 is a part of the P CL emul ation, which incl udes graphics com mand. The Default plott i[...]

  • Page 147

    10/10/03 CHAPTER 4 HP-G L/2 - 7 3. TERMINOLOGY 3.1. Pict ure Frame The printer fram e is the rectangul ar area of the page on which graphic output can be printe d. 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 t op left hand c orner of the fram e. This can be m [...]

  • Page 148

    10/10/03 CHAPTER 4 HP-G L/2 - 8 3.10. Absolute and R elative Plotting Drawing com mands are of two distinct t ypes: absolute com mands, in which the c oordinates specifi ed are the absolute user or graphics coordinat es and re lative comm ands, whose coordinates are relative to the coordinate position at which the previous graphics com mand term in[...]

  • Page 149

    10/10/03 CHAPTER 4 HP-G L/2 - 9 4. COMMAND SYNTAX An HP-GL and HP-GL/ 2 comm and can consist of up to four item s: a mnem onic, a param eter field, a separator and a term inator. 4.1. Mnem onic The two-lett er mne monic is the name of the com mand a nd should help rem ind you of i ts function. 4.2. Pa ramete rs Some commands ha ve parameters follow[...]

  • Page 150

    10/10/03 CHAPTER 4 HP- GL/2 - 10 5. THE HP-GL GRAPHICS WINDOW 5.1. Units When you first ent er graphics m ode, the prevaili ng coordinate sy stem ha s its origin in the bottom left hand corner of the graphics window and has x- and y-uni ts of 1/1016". U sing the SC comm and you can divide the axes into m ore convenient units. The size of t he [...]

  • Page 151

    10/10/03 CHAPTER 4 HP- GL/2 - 11 6. PREPARING TO PRINT GRAPHIC IMAGES 6.1. Setting Up the Graphics Window Before enteri ng HP-GL/2 m ode you will probably want t o set the di mensions a nd position of the PCL picture frame and hence the graphics window. (Remember that when you enter HP-GL/2 mode they are initially the sam e). To do this you will ne[...]

  • Page 152

    10/10/03 CHAPTER 4 HP- GL/2 - 12 7. COMMANDS 7.1. Initialize Commands DF - Default set inst ruction DF[;] • Returns the graphics mode to defaul t conditions. The following are the default set tings. Function Equivalent Instruction Condit ion Plot m ode PA; Absolute plotting Absolute dire ction DI 1,0; Horizontal Line type LT; Solid line Line patt[...]

  • Page 153

    10/10/03 CHAPTER 4 HP- GL/2 - 13 IN - Initialize set instruction IN[;] • Retu rns the graph ics mode to in itial con dition s; Function Equivalent Instruction Condit ion Plot m ode PA; Absolute plot ting Relative character di rection DR 1,0; Horizontal Line type LT; So lid line Line pattern length LT; 4% of distance from P1 to P2 Window IW; Set a[...]

  • Page 154

    10/10/03 CHAPTER 4 HP- GL/2 - 14 7.2. Plot Area and Unit Setting Instructions Instruction Func tion IP Scaling point IR Input relative scal ing points SC Scale IW Input window RO Rotate c oordinate syst em 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 155

    10/10/03 CHAPTER 4 HP- GL/2 - 15 SC - Scal e <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 coordinat e of P1 X max ; X coordinate of P 2 Y min ; Y coordinat e of P1 Y ma[...]

  • Page 156

    10/10/03 CHAPTER 4 HP- GL/2 - 16 • W ith ty pe 1 scaling you can specify the percentage of unuse d space that is to lie below, or to the left of, the isotropic are a. • left specifies the percentage of unused space you want to l ie to the l eft of t he isotropic a rea and can be from 0 to 100. If you do not specify the value for left , it is au[...]

  • Page 157

    10/10/03 CHAPTER 4 HP- GL/2 - 17 IW - Window IW [ X 1 , Y 1 , X 2 , Y 2 ] [;] X 1 -Window lower left X coordi nate Y 1 -W indow 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 ca n be performed (the soft clip lim its). • Coordinates are spe[...]

  • Page 158

    10/10/03 CHAPTER 4 HP- GL/2 - 18 7.3. Pen Control and Plot Instructions Instruction Func tion PU Pen Up PD Pen Down PA Plot Absolute PR Relati ve Coordinat e Pen Move AA Absolute Arc Plot AR Relativ e A rc Plo t AT Absolute Three Point Arc RT Relative Three Po int Arc PE Polyline Encoded CI Circle BR Bezier Relative BZ Bezier Absolute PU - Pen up P[...]

  • Page 159

    10/10/03 CHAPTER 4 HP- GL/2 - 19 PA - Plot abso lute PA [ X, Y [,...]] [;] X ; X coordinate of the cursor movem ent destination Y ; Y coordinate of the cursor movem ent destination • Coordinates are absolute values in user or current units. • Wh ether used with or without para meters the comm and establishes abso lute plotting as the plotting m[...]

  • Page 160

    10/10/03 CHAPTER 4 HP- GL/2 - 20 AA - Draw absolute ar c AA [ X, Y, qc [, qd ]] [;] X ; Arc centre X coordinat e Y ; Arc centre Y coordinate qc ; Arc a ngle in degree s qd ; Chord angle in degrees • Coordinates are absolute coordi nates in current uni ts. • Starting from the current position, thi s comm and plots an arc centred on the absol ute[...]

  • Page 161

    10/10/03 CHAPTER 4 HP- GL/2 - 21 AR - Draw relativ e arc AR X, Y, qc (, qd )[;] X ; Arc centre X coordinat e Y ; Arc centre Y coordinate qc ; Arc angl e in degrees qd ; Chord angle in degrees • Coordinates are relative values in current units. • Starting from the current cursor positi on the comma nd plots an arc whose centre is at the relati v[...]

  • Page 162

    10/10/03 CHAPTER 4 HP- GL/2 - 22 RT - Relativ e arc three point RT X 1 , Y 1 , X 2 , Y 2 [,qd] [;] X 1 ; x-coordinate of interm ediate point Y 2 ; y-coordinate of interm ediate point X 2 ; x-coordinate of end point y 2 ; y-coordina te of end point qd ; the c hord angle used to dra w the arc • The specified coordinates of t he two points a re rela[...]

  • Page 163

    10/10/03 CHAPTER 4 HP- GL/2 - 23 • The followi ng flags are used : ':' - Select pen. The number whi ch follows is the required pen num ber. A PE c ommand that does not include a sele ct pen com mand uses t he currently sel ected pen. '<' - Pen up. The pen is raised and m oved to the speci fied coordinate pair. All coordinat[...]

  • Page 164

    10/10/03 CHAPTER 4 HP- GL/2 - 24 • To avoid placing an unwanted dot at the centre of the circle precede the CI comm and with a PU com mand. 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 &qu[...]

  • Page 165

    10/10/03 CHAPTER 4 HP- GL/2 - 25 7.4. The polygon group Instruction Func tion PM Polygon Mode EA Edge Absolute Rectangle ER Edge Relative Rectangle EP Edge Polygon EW Edge W edge RA Fill Abso lute Rect angle RR Fi ll Relative Rectangle WG Fill Wedge FP Fill Polygon PM - Polygon mode PM [ ms ] [;] • This command i s used for enteri ng and leaving [...]

  • Page 166

    10/10/03 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;115;E[...]

  • Page 167

    10/10/03 CHAPTER 4 HP- GL/2 - 27 • r specifies the radius of the circle. A positive value for r places the 0° reference poi nt onto the positive x- axis and a nega tive value for r places the 0° reference point onto the negat ive x-axis. • The value for q1 is a clampe d real number. q1 qc r 0° reference p current position • q1 specifies th[...]

  • Page 168

    10/10/03 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 opposit e corner for the rectangle Y ; Y coordinate of opposite corne r for the rectangle • Coo rdin ates rel[...]

  • Page 169

    10/10/03 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;&q[...]

  • Page 170

    10/10/03 CHAPTER 4 HP- GL/2 - 30 7.5. Plot Function Instructions Instruction Func tion AC Anchor Corner FT Fill Type LA Line Attribute LT Line Type PW Pen Width RF Raste r Fill D efinition SM Sym bol 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 171

    10/10/03 CHAPTER 4 HP- GL/2 - 31 FT - Fill type FT n (, d (, q ))[;] n ; Fill ty pe d ; option 1 q ; opti on 2 • Sets the fill type, interval and a ngle wh en fillin g an area. This setting is effe ctive fo r the c ommands FP, RA, RR, WG and CF. • The value for n must be a clam ped integer number Fill t ype Description Opti on 1 Option 2 1 Soli[...]

  • Page 172

    10/10/03 CHAPTER 4 HP- GL/2 - 32 LA - Line attribute LA [ l , v [ , l , v [ , l , v ]]] [;] l ; line a ttribut e v : value • This command specifies the shape of li ne joins and line ends. • The se setting s are effec tive for th e line width s thicke r than 0.3 5 mm. • l spec ifies the line attribu te for wh ich you ar e setting a value. • [...]

  • Page 173

    10/10/03 CHAPTER 4 HP- GL/2 - 33 LT - Line type selection LT [, n [, p [, m ]]] [;] n ; Line pa ttern number p ; Line pattern le ngth (p ercenta ge or millimeters of distance be tween P1 a nd P2) m : mode • This command spe cifies the l ine pattern for use when drawing line s with the vector group com mands. • n defines the line type to be used[...]

  • Page 174

    10/10/03 CHAPTER 4 HP- GL/2 - 34 PW - Pen w idth PW [ w , [, p ]] [;] w ; width p ; pen • This command spe cifies the wi dth of the pe n. • Pen width can either be specified as a fixed widt h in milli meters ( the default ) or relative t o the distance between the sca ling points P1 and P2. • If a width of zero is specified the thinnest width[...]

  • Page 175

    10/10/03 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 LPRI[...]

  • Page 176

    10/10/03 CHAPTER 4 HP- GL/2 - 36 • W ith screen type 21 option 1 specifies one of six predefine d PCL cross-hatch patterns (patt erns 1 - 6). option 2 is ignore d. • W ith screen type 22 , option 1 specifies the ID number of PCL user-defined pa ttern which i s defined by the ESC*c#W comm and. option 2 is ignored. • W ith fill scree n type 130[...]

  • Page 177

    10/10/03 CHAPTER 4 HP- GL/2 - 37 170 'Source 2 180 LPRINT "FT1 0,50;PA40 00,5000;RR50 0,500;PA4 500,5500;RR 500,500;" 190 LPRINT "FT1 0,1;PA450 0,5000;RR500 ,500;PA40 00,5500;RR5 00,500;FT; " 200 ' 210 '( POLYGON ) 220 LPRINT "PA2 000,1000; PM0;PDPA4000 ,1000,300 0,3000;PM1; " 230 LPRINT "PA2 500,12[...]

  • Page 178

    10/10/03 CHAPTER 4 HP- GL/2 - 38 • The command sets all pen widt hs to a default of 0.35mm . Hence it should be used before the PW comm and. • Using the comm and with no para mete r defaults t he type t o 0 (met ric) and all pen widths t o 0.35mm . • The unit type is not affected by a DF comm and. 10 '-Pen Width Unit Selection- 20 WIDTH [...]

  • Page 179

    10/10/03 CHAPTER 4 HP- GL/2 - 39 7.6.1. Introduction The character group comm ands enable y ou to print text to accom pany your HP-GL/2 generated graphi cs without leavi ng graphics mode. You can use any font that would be avail able to y ou in LaserJet emulat ion mode and you can modify various printi ng characterist ics of the text such as the si[...]

  • Page 180

    10/10/03 CHAPTER 4 HP- GL/2 - 40 • attribute = 1 : Sym bol set Valu e Name ISO number Valu e Name ISO number 1 Math - 7 - 2 Line Draw - 7 - 3 HP Large Characters - 4 Norwegian v1 60 5 Roman Exte nsions - 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) 8859[...]

  • Page 181

    10/10/03 CHAPTER 4 HP- GL/2 - 41 • attribute = 2 : Spacing Value Me aning 0 Monospacing 1 Proportional spacing • attr ibute = 3 : Pitch Specify pitch in chara cters per inch (cpi). The pitch value you specify can be in the range 0 to 32767.9999. Pitch only applies to m onospaced fonts. • attribute = 4 : He ight Specify height in points. One p[...]

  • Page 182

    10/10/03 CHAPTER 4 HP- GL/2 - 42 AD - Define alternate font AD [ attribute , value ] [..] [;] attribute : a font att ribute to be de fined value : the va lue of the a ttribut e • This comm and allows you t o define the alterna te font and it s attribute. • attribute takes a value from 1-7. 1 = symbol set , 2 = spaci ng, 3 = pitch, 4 = height, 5[...]

  • Page 183

    10/10/03 CHAPTER 4 HP- GL/2 - 43 FI - Select primary font FI font-ID [;] font-ID ; the identit y number of any acc essible font. • This command a llows you to sel ect any ac cessible font, which has pre viously been given an identit y number in LaserJet mode, as the pri mary (standard) f ont . All subsequently print ed labels will appear i n the [...]

  • Page 184

    10/10/03 CHAPTER 4 HP- GL/2 - 44 DT - Defi ne label terminat or DT [ c [, m ]] [;] c : Charact er m : mode • This c ommand allows you to specify th e charact er that terminat es strings p rinted wi th the LB instr uction. • The character imme diately foll owing DT is taken to be the termi nator. Hence, do not put a space between the DT and your[...]

  • Page 185

    10/10/03 CHAPTER 4 HP- GL/2 - 45 • W hen you use a n LO instructi on the carri age return point i s set to be the new la bel origin. To send t he pen back to a labe l's origin when you have fini shed printing it, include a c arriage return betwee n the last chara cter of th e label an d the ter minating ch aracter . • If a label contains e[...]

  • Page 186

    10/10/03 CHAPTER 4 HP- GL/2 - 46 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#&qu[...]

  • Page 187

    10/10/03 CHAPTER 4 HP- GL/2 - 47 DV - Define v ariable text path DV [ path [, line ]] [;] path : te xt printing pat h - horizontal or vertical, and l eft to right, right to l eft, upwards or downwards. line : the ef fect of a lin e feed. • This command de termine s the printi ng direction for l abels and the carriage ret urn point. • Permissibl[...]

  • Page 188

    10/10/03 CHAPTER 4 HP- GL/2 - 48 CF - Character fill mode CF [ fill [, pen ]] [;] fill : the fill pat tern use d to fill char acters pen : the pen used to edge charac ters • This com mand dete rmines how characters are edged and fille d. • Only scal able fonts can be both fille d and edged - bit map fonts and t he stick font cannot be edged a n[...]

  • Page 189

    10/10/03 CHAPTER 4 HP- GL/2 - 49 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,7,[...]

  • Page 190

    10/10/03 CHAPTER 4 HP- GL/2 - 50 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;LBP[...]

  • Page 191

    10/10/03 CHAPTER 4 HP- GL/2 - 51 • mode is set to either 0 or 1. If mode is se t to 0, control codes perform their norm al functions and are not printed. If mode =1, a ll cha racter s ar e pr inted, if p o ssible. No control characters perform any function except the label term inator. Any non-printing or undefi ned characters appear as a space .[...]

  • Page 192

    10/10/03 CHAPTER 4 HP- GL/2 - 52 8. INDEX A Absolute a rc three point .............. ........ .......... .......... ........ 21 absolute comm ands .................. ........ ............ .......... ........ ... 8 Absolute di recti on . ......... .......... .............. .......... .......... ..... 45 Anchor corner ................ ........ ......[...]

  • Page 193

    10/10/03 CHAPTER 4 HP- GL/2 - 53 Select prima ry font ............ ........ .......... ........ .......... .......... 43 Select secondary font .... ............ .............................. ........ 43 Select st andard font ............ .......... ............ ........ .......... ..... 42 Select unit for pen width ........ ............ ..........[...]

  • Page 194

    10/10/03 CHAPTER 4 HP- GL/2 - 54[...]

  • Page 195

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

  • Page 196

    10/10/03 CHAPTER 5 PJL - 2 C ONTENTS 1. INTRODUCT ION ........................ ................ ............. ................ ................ ............. ................ 4 1.1. About PJL ................................................................................................................................... 4 1.2. In Case of Using PJ[...]

  • Page 197

    10/10/03 CHAPTER 5 PJL - 3 6.2. Variables ............................................................................................................................. ...... 18 6.2.1. Variables f or HL-1050/10 70/1250/ 1270N/145 0/1470N/ P2500/1 650/1670N/ 3260N/24 60/ 7050/1 850/18 70N/50 40/5050/ 5070N ...... .............. .................. ..[...]

  • Page 198

    10/10/03 CHAPTER 5 PJL - 4 1. INTRODUCTION 1.1. About PJL Printer Job Language(PJL) provides job status control by sendi ng the printer status inform ation to the applicati on. PJL can be a valuable t ool for the singl e-user environm ent, but is a much m ore useful tool for the networking / sharing environm ent. PJL allows job-level control t hat [...]

  • Page 199

    10/10/03 CHAPTER 5 PJL - 5 1.2. In Case of Using PJL with a Non-P JL Printe r Our recent pri nter model s support PJL, howeve r, earlier models do not . If the PJL c omm ands are sent to a non-PJL printer, t he printer act s as follows; 1.2.1. PCL jobs For a PCL printe r which does not support the PJL language, the PJL com mand i s printed as ASC I[...]

  • Page 200

    10/10/03 CHAPTER 5 PJL - 6 1.3. PJL Syntax and Format Syntax <For Example> @PJL ENTER LANGUAGE = emulation [<CR>]<LF> @PJL PJL Prefix ENTER Comm and name LANGUAGE Option name @PJL ENTER LANGUAGE Enter this portion verbatim [ ] The words in brackets [ ... ] indicates optional parameters. You should not type the b rackets th emselve[...]

  • Page 201

    10/10/03 CHAPTER 5 PJL - 7 1.4. Variabl es PJL can use alphanumeri c variables, nume ric variabless and strings. 1.4.1. Alphanumeric variables The first chara cter m ust alway s be a charact er in the allowable range of letters and di gits. Lette rs consists of the uppercase charact ers (ASCII 65-90) and lowerc ase characters (A SCII 97-122). Digit[...]

  • Page 202

    10/10/03 CHAPTER 5 PJL - 8 2. HOW TO USE PJL 2.1. Overview PJL resides "above" print er languages such as Postscript and PC L. Each job can be distinguished from the other jobs by P JL, and it c an switch between PJL c omma nds and printer l anguage com mands for eac h job. PJL Code PCL Job PJL Code Po stscript Job PJL Code 2.2. PJL Job R[...]

  • Page 203

    10/10/03 CHAPTER 5 PJL - 9 3. COMMAND GROUP Command Group Command Command Description Kernel Com mands UEL Exits current printer l anguage and returns control to PJL. EXECUTE O rders th e printe r to execu te the specifie d operation. SUPERUSER Moves to the SUPERUSER mode. SUPERUS EROFF Exit from the SU PERUSER mode. WNV RAM Write the specif ied da[...]

  • Page 204

    10/10/03 CHAPTER 5 PJL - 10 4. KERNEL COMMANDS 4.1. Introduction This section explains t hree PJL com mand, UE L , ENTER and COMMENT . These comm ands provide the minim um set of tools to operate job control. UEL comm and (Universal Exit Com mand) ENTER comm and COMMENT command 4.2. UEL Command The Universal Exit Com mand causes the print er to exi[...]

  • Page 205

    10/10/03 CHAPTER 5 PJL - 11 Example <ESC>%-12345X@PJL<CR><LF> @PJL EXECUTE DEMOPAGE <CR><LF> <ESC>%-12345X 4.4. ENTER Comm and The ENTER command specifie s which em ulation the printer uses to print data. Syntax @PJL ENTER LANGUAGE = emulation [<CR>]<LF> Parameters • emulation The variables depend o[...]

  • Page 206

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

  • Page 207

    10/10/03 CHAPTER 5 PJL - 13 5. JOB SEPARATION COMMANDS 5.1. Introduction This section explains two P JL comm and, JOB and EOJ . These comm ands are used to determine the boundaries of a job. When these commands are used with status rea dback, the printer also can send status informat ion at the beginning and e nd of each job. 5.2. JOB Command The J[...]

  • Page 208

    10/10/03 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 Posts cript Job <CR><LF> @PJL JOB NAME = "Y YY data from spooler 2" <CR><LF> @PJL ENTER LANGUAG E = POSTSCRI[...]

  • Page 209

    10/10/03 CHAPTER 5 PJL - 15 6. ENVIRONMENT COMMANDS 6.1. Introduction Our recent printe rs have many feat ures which you are able t o set using printer com mands, through the print er control panel or by using the remote print er console program. A combi nation of PJL comm ands and printer emulat ion comma nds allows you to set printer features to [...]

  • Page 210

    10/10/03 CHAPTER 5 PJL - 16 The diag ram below illustr ates how the en viron ments inte ract and how th e modif ied prin t env ironment is affect ed. 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 @[...]

  • Page 211

    10/10/03 CHAPTER 5 PJL - 17 6. Always use the PJL RESET command af ter a job is comple ted if the SET command is used in the PJL job. 6.1.4. PJL environment variables This section l ists the PJL environm ent variabl es. There are two ki nds of PJL environm ent variabl es, General PJL environm ent variabl es and Printer language -specific variables.[...]

  • Page 212

    10/10/03 CHAPTER 5 PJL - 18 6.2. Variabl es 6.2.1. Variables for HL-1050/ 1070/1250/1 270 N/1450/1470N /P2500/165 0/1670N/3260N/24 60/ 7050/1850/18 70N/5040/50 50/5070N 1. Gene ral PJL Env ironmen t Vari ables The PJL environment variables which are not printer la nguage-specific are listed in the following table. When using these variables, do not[...]

  • Page 213

    10/10/03 CHAPTER 5 PJL - 19 Variables Description Sam ple Value Range AUTOSLEEP Sets the automatic sleep mode ON or OFF. ON or OFF TIMEOUTSLEEP Sets the time out value for automatic sleep mode. 1 to 00 m inutes 1 to 99 m inutes (HL-1650/1670N/ 2460/1850/1870N/5040/5050/ 5070N) 1 to 240 m inutes (HL-3260N/ 7050) IBMCHARE1 BETA or ESSZET REPRINT Sets[...]

  • Page 214

    10/10/03 CHAPTER 5 PJL - 20 Variables Description Sam ple Value Range PASSW ORD Password for pan el lock to w rite to the NVRAM wit h the DEFAULT/INITIALIZE comm and. 0 to 65535 (HL-1650/1670N/ 3260N/2460/7050/1850/1870N/ 5040/5050/5070N) BIDI ON or OFF (HL-1650/1670N/ 3260N/2460/7050/1850/1870N/ 5040/5050/5070N) POWERSAVE Sets the power save mode [...]

  • Page 215

    10/10/03 CHAPTER 5 PJL - 21 Variables Description Sam ple Value Range INTRAY1SIZE Selects the paper size in Tray 1. Selects the paper size in M P Tray (HL- 7050). LETTER, LEGAL, EXECUTIVE, A3, A4, B5, A5, A6, COM10, C5, DL, MONARCH, LEDGER, JISB4, LTRS, A4S, XECUTIVES, B5S (HL-3260N) LETTER, LEGAL, EXECUTIVE, A4, JISB5, B 5, A5, B6, A6, COM10, DL, [...]

  • Page 216

    10/10/03 CHAPTER 5 PJL - 22 Variables Description Sam ple Value Range INTRAY4SIZE Selects the paper size in Tray 4. Selects the paper si ze in Tray3 (HL- 7050). 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, B 6, A6, A4LONG, N[...]

  • Page 217

    10/10/03 CHAPTER 5 PJL - 23 Variables Description Sam ple Value Range TRAY1SIZE A3, JISB4, LEDG ER, A4, A4S, A5, B5, B5S, LEGAL, LETTER, LTRS, EXECUTIVE, EXECUTIVES (HL-3260N) ANY, LETTER, LEGAL, A4, EXECUTIVE, B5, A5, A6, B6, JISB5, A4LONG , POSTCARD, FOLIO (HL-1850/1870N/5040/ 5050/5070N) TRAY2SIZE A3, JISB4, LEDG ER, A4, A4S, A5, B5, B5S, A6, LE[...]

  • Page 218

    10/10/03 CHAPTER 5 PJL - 24 Variables Description Sam ple Value Range OEMFONT Enables EC font ON or OFF (HL-1650/1670N/ 2460/7050/1850/1870N/5040/ 5050/5070N) COMPABITMAP ON or OFF (HL-1650/1670N/ 2460/7050/1850/1870N/5040/ 5050/5070N) FSEL300DPI LOW or HIGH (HL-1650/ 1670N/ 1850/1870N/5040/5050/5070N) DEFPAPER A4, LETTER, DEFAULT (HL-1650/1670N/24[...]

  • Page 219

    10/10/03 CHAPTER 5 PJL - 25 Variables Description Sam ple Value Range TRAYPRIORITY MPT1T2T3T4, MPT4T3T2T1, T1T2T3T4 MP, T4T3T2T1MP (HL-2460/7050) MPT1T2, T1T2MP (HL-1850/ 1870N/5040/5050/5070N) FFSUPPRESS ON or OFF (HL-1650/1670N/ 3260N/2460/7050/1850/1870N/ 5040/5050/5070N) LCDDENSITY Sets the LCD angle value. 0 to 2 (HL-1650/1670N/2460/ 7050/1850[...]

  • Page 220

    10/10/03 CHAPTER 5 PJL - 26 Variables Description Sam ple Value Range ZONESET ON or OFF (HL-2460/7050) TIMEZONE -24 to 24 (HL -2460/7050) OUTBIN ALLSTACKER, ALLSORTER, UPPER, OPTIONALOUTPUTBIN1, OPTIONALOUTPUTBIN2, OPTIONALOUTPUTBIN3, OPTIONALOUTPUTBIN4, OPTIONALOUTPUTBIN5, OPTIONALOUTPUTBIN6, OPTIONALOUTPUTBIN7, OPTIONALOUTPUTBIN8, OPTIONALOUTPUTB[...]

  • Page 221

    10/10/03 CHAPTER 5 PJL - 27 Variables Descri ption Sample Value Range PAPER Sets the paper size. LETTER, A4, LEGAL, EXECUTIVE, COM10, MONARCH, C5, DL, JISB 5, A4LONG (All models) B5, A5, A6, B6 (HL-1650/1670N/ 2460/7050/1850/1870N/5040/ 5050/5070N) A3, B5, A5, A6, LEDGER, JISB4, LTRS, EXECUTIVES, B5S (HL-3260N) ANY, DLL, POSTCA RD, ORGANIZERJ, ORGA[...]

  • Page 222

    10/10/03 CHAPTER 5 PJL - 28 Variables Descri ption Sample Value Range SYMSET Sets 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, [...]

  • Page 223

    10/10/03 CHAPTER 5 PJL - 29 Variables Description Sample Value R ange LEFTMARIN Sets the left m argin 0 to 126 (HL-1050/1070/1250/ 1270N/1450/1470N/P2500/3260N/ 2460/7050) 0 to 145 (HL-1650/1670N/1850/ 1870N/5050/5070N) RIGHTMARGIN Sets the right m argin 0 to 136 (HL-1050/1070/1250/ 1270N/1450/1470N/P2500) 10 to 155 (HL-1650/1670N/1850/ 1870N/5050/[...]

  • Page 224

    10/10/03 CHAPTER 5 PJL - 30 Variables Description Sampl e Value R ange PAPER Sets the paper size. LETTER, A4, LEGAL, B5, EXECUTIVE, COM10, MONARCH, C 5, DL, JISB5, A4LONG (All m odels) A5, A6, B6 (HL-1650/1670N/ 2460/7050/1850/1870N/5050/ 5070N) A3, A5, A6, LEDGER, JISB 4, LTRS, EXECUTIVES B5S (HL-3260N) ANY, DLL, POSTCA RD, ORGANIZERJ, ORGANIZ ERK[...]

  • Page 225

    10/10/03 CHAPTER 5 PJL - 31 5. PostScript-Specific Variables The following values are PostScript ( BR-Script ) specific and can be set and request ed using PJL. The BR- Script m ode is standard in som e model s but may be availa ble only w hen the optional BR-Script 2 ROM board is installed into th e prin ter. The se variab les must be s et using t[...]

  • Page 226

    10/10/03 CHAPTER 5 PJL - 32 SYMSET Sets the symbol se t. ANSIASCII, C HRSET9825, FRENCHGERM AN, SCANDINAVIAN, SPANISHLATIN, JISASC II, ROMAN8EXT, ISOIRV, ISOSWEDISH, ISOS WEDISHN, ISONORWAY1, ISOGERM AN, ISOFRENC H, ISOUK, ISOITALIAN, IS OSPANISH, ISOPORTUGUESE, ISONORWAY2 (HL- 3260N/2460/7050)[...]

  • Page 227

    10/10/03 CHAPTER 5 PJL - 33 6.2.2. Variables for HL-166 0e/2060/24 00C/2400Ce /3400CN/2600 CN/3450CN 1. Gene ral PJL Env ironmen t Vari ables The PJL environment variables which are not printer la nguage-specific are listed in the following table. When using these valuables, do not use the LPARM comm and. Variables Descri ption Sample Va lue Range [...]

  • Page 228

    10/10/03 CHAPTER 5 PJL - 34 Variables Descri ption Sample Va lue Range DUPLEX Duplex mode ON, OFF BINDING Returns the setting of bi nding edge selection for duple x printing. LONGEDGE, SHORTEDGE FIRSTPRIN T First p rint mo de. This makes the first print spe ed faster by st arting the polygon mirror m o tor at Power On. Setting to MIDDLE is ef fecti[...]

  • Page 229

    10/10/03 CHAPTER 5 PJL - 35 Variables Descri ption Sample Va lue Range TIMESETMIN * Clock: minut e setting 0 to 59 TIMESETSEC * Clock: second setting 0 to 59 TIMESTYLE * Sets the display sty le of the clock. YMD (YYYY/MM/D D hh/mm ), MDY (MM/DD/ YYYY hh/mm ), DMY (DD/MM/ YYYY hh/m m) SUMMERTIME * Clock: summer tim e setting OFF, ON ZONESET * Clock:[...]

  • Page 230

    10/10/03 CHAPTER 5 PJL - 36 6.3. Default Command The DEFAULT c ommand c hanges the U ser-Default e nvironment which is store d in NV-RAM and it is activate d following a PJL reset condi tion. The curr ent print environment is not affecte d by the DE FAULT comma nd, but when a PJL reset condit ion happens, thi s comm and takes effect . This doesn&ap[...]

  • Page 231

    10/10/03 CHAPTER 5 PJL - 37 6.5. Reset Command The PJL RESE T command re sets the PJ L Curre nt Enviro nment var iables to the Use r Defau lt value s. Use this comm and at the end of any PJL jobs in which the PJL SET comm and was used. Syntax @PJL RESET [<CR>]<LF> Parameters • The RESET comm and has no param eters • W hen an applica[...]

  • Page 232

    10/10/03 CHAPTER 5 PJL - 38 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 <[...]

  • Page 233

    10/10/03 CHAPTER 5 PJL - 39 7. STATUS READBACK COMMANDS 7.1. Introduction Applications ca n request, by sendi ng a PJL com mand to the printer, inform ation such as the configura tion and status of the printer. The printer can be progra m med to send back this inform ation when request ed and also can se nd back voluntari ly unsolic ited inform ati[...]

  • Page 234

    10/10/03 CHAPTER 5 PJL - 40 7.2. Inquire Command The INQUIRE comm and is used in order to get t he informat ion of the current value of a specifie d variable in the PJL DEF AULT setting . (PJL enviro nment). It is po ssible to get the information for var iables the value of which P JL cannot change (Read-only). This INQUIRE command can request only[...]

  • Page 235

    10/10/03 CHAPTER 5 PJL - 41 Example 2 : This exampl e requests the PCL-spec ific 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 236

    10/10/03 CHAPTER 5 PJL - 42 Examples Example 1 : This exampl e requests t he current print environment setti ngs 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><[...]

  • Page 237

    10/10/03 CHAPTER 5 PJL - 43 Response Syntax @PJL ECHO [< words >] <CR><LF> <FF> • < words > The beginning of this param eter must be a printable charact er. Then this paramete r consists of characters from ASCII 33 to 255, space characte rs and horizontal tab characters. This < words > paramete r can be written[...]

  • Page 238

    10/10/03 CHAPTER 5 PJL - 44 Parameters Category Inform ation requesti ng ID The pri nter mode l number. For exam ple the HL-1660e will return 'Brother HL-1660e' . CONFIG A list of the printer c onfiguration inform ation (available opti ons) within the form at of the number of t ypes and/or the descript ion of each available type of; paper[...]

  • Page 239

    10/10/03 CHAPTER 5 PJL - 45 7.5.2. CONFIG ca tegory The applicati on can use @PJL INFO CONFIG com mand to have t he printer return a li st of printer configuration inform ation. The list consists of the informat ion on paper sources, paper sizes, languages, USTATUS (unsolicit ed status) com mands, font sources, RAM size, num ber of lines and charac[...]

  • Page 240

    10/10/03 CHAPTER 5 PJL - 46 Example The applicati on sends the following c ommand to the printer : <ESC>%-12345X@PJL<CR><LF> @PJL INFO CONFIG<CR><LF> <ESC>%-12345X The printer ma y send back the answer for the above INFO command : @PJL INFO CONFIG<CR><LF> IN TRAYS [1 ENUMERATED]<CR><LF> IN[...]

  • Page 241

    10/10/03 CHAPTER 5 PJL - 47 7.5.4. STATUS cat egory The applicati on can use the @PJL INFO STATUS comm and to check the printer on-line/off-line stat us, the current messa ge on the LCD and a status code. The ONLINE=TRUE indicates the printer i s online, whi le the ONLINE=FALSE shows it i s off-line. R efer to the li st of the P JL Status Code s in[...]

  • Page 242

    10/10/03 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><LF[...]

  • Page 243

    10/10/03 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> L[...]

  • Page 244

    10/10/03 CHAPTER 5 PJL - 50 Parameters Variable Value Description DEVICE ON Makes unsoli cited device stat us valid for any status change VERBOSE Makes unsolicit ed device status vali d for any of PJL parser warning, error and status change OFF Makes unsolicited device stat us invalid for any status change JOB ON Makes unsoli cited job status (repo[...]

  • Page 245

    10/10/03 CHAPTER 5 PJL - 51 The printer status to be sent to the host com puter are ; • Device status changes - print er cover open, pape r jams, pa per out, etc • Job status changes - complet ion of the printing of a job, receiving a JOB c omm and • Page status changes - eject ing a printed page All the u nsolicite d status informat ion (UST[...]

  • Page 246

    10/10/03 CHAPTER 5 PJL - 52 35000 - 25999 Errors which may ca use incorrect print i ng results, such as loss of som e print data on a page. The operator's i nterventi on may be required. 40000 - 40999 Errors such as paper empty, cover open or paper jams whi ch suspend printing until the operat or takes the corresponding corrective action. 4100[...]

  • Page 247

    10/10/03 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 com mand allows the pri nter to send t he inform ation about t he print complet ion of a part icular page. Using this com man[...]

  • Page 248

    10/10/03 CHAPTER 5 PJL - 54 7.7. USTATUSOFF Command The @PJL USTATUSOFF comm and makes all unsoli cited stat us reporting inacti ve. Syntax @PJL USTATUSOFF [<CR>]<LF> Parameters There are no para meters for t his comm and. Example <ESC>%-12345X@PJL <CR><LF> @PJL USTATUSOFF <CR><LF> @PJL USTATUS DEVICE = ON [...]

  • Page 249

    10/10/03 CHAPTER 5 PJL - 55 8. DEVICE ATTENDANCE COMMANDS 8.1. Introduction You can change displ ay message s on the print er control panel by using PJL. The Operator ca n be alerted by this feature to what spe cific acti ons should be taken. Thi s chapter shows you three device att endance comma nds. RDYMSG By using this com mand, you can change t[...]

  • Page 250

    10/10/03 CHAPTER 5 PJL - 56 The following is an exam ple of how to restore the display to the normal ready m essage. <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 251

    10/10/03 CHAPTER 5 PJL - 57 Parameters Parame ter Functiona l Range Default DISPLAY = " message " ASCII 33 and ASCII 35 through 255, < SP >, < HT > N/A key ONLINE, RESET N/A DISPLAY = " message " You can use any c ombinati on of characters avai lable on the print er except for the quotation m arks (ASCII 34) up to 16[...]

  • Page 252

    10/10/03 CHAPTER 5 PJL - 58 9. INDEX C COMMENT command ... .......... .......... ........ .......... .......... . 11 conditions .............. .......... .......... ........ .......... .......... .......... .. 8 context switching ........... .......... ........ .......... .......... .......... . 12 D DEFAULT command ......... .......... .......... [...]

  • Page 253

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

  • Page 254

    10/10/03 CHAPTER 6 EPSON - 2 C ONTENTS 1. COMMAND LIS T............... ............. ................ ................ ............ ................ ................ ........... 3 2. INTRODUCT ION .. ................ ............. ................ ................ ............. ................ ................ ....... 5 3. EMULATION DE TAILS .....[...]

  • Page 255

    10/10/03 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-ch aracter space 1 0 Esc a n Select justification mode 10 Esc $ n1 n2 Set absolute print position 10 Esc n1 n2 Set rela tive print position 10 Esc < Select unidirectional printing 10[...]

  • Page 256

    10/10/03 CHAPTER 6 EPSON - 4 Esc H Cancel double-strike mode 18 Esc W n Select / Cancel dou ble-width prin ting 1 8 SO Select single-line doub le-width printing (I) 18 Esc SO Select single-line do uble-width prin ting (II) 18 DC4 Cancel single-line do uble-width printing 18 Esc 4 Select italic mode 18 Esc 5 Cancel italic mode 19 Esc S n Select supe[...]

  • Page 257

    10/10/03 CHAPTER 6 EPSON - 5 2. INTRODUCTION In this mode you can control t he HL-Series printers that support this emula tion directly by i ncorporating control codes and escape sequences int o your program. Alternative ly, applicat ions software (for example, y our word-processing or spreadsheet software) m ay send the nece ssary comm ands to the[...]

  • Page 258

    10/10/03 CHAPTER 6 EPSON - 6 3. EMULATION DETAILS The following poi nts should be borne i n mind whe n using the printe r in Epson FX-850 m ode. 3.1. Ignored Commands The following com mands are ignored: the BEL control code (ASCII code 7) which is norm ally used to sound a printer’s bell , the DC1 (ASCII 17) and DC3 (AS CII 19) control codes, us[...]

  • Page 259

    10/10/03 CHAPTER 6 EPSON - 7 4. TERMINOLOGY 4.1. Syntax The following conventions a re used in this description of the Epson FX-850 mode software comm ands: A single let ter, two or three-lett er control code m nemonic, or num ber in upright bold text is a literal character and shoul d be sent to t he printer as the character code. A lette r or wor[...]

  • Page 260

    10/10/03 CHAPTER 6 EPSON - 8 5. CONTROLLING THE PRINTER Comm ands are invoked using either control codes or escape sequences. You can send them to the printer as part of a program using the sam e command that you woul d use to print a st ring on the printer. For example i n BASIC you woul d use the LPR INT comm and. The printer’s control panel ca[...]

  • Page 261

    10/10/03 CHAPTER 6 EPSON - 9 6. COMMANDS 6.1. Basic printer operations The most c ommon print er operations are described in thi s section. Som e are invoke d using control codes alone - the re st require e scape sequences. For the sake of com pleteness, several instructi ons which are part of the Epson FX-850 mode instruction se ts, but which an H[...]

  • Page 262

    10/10/03 CHAPTER 6 EPSON - 10 Set inter- character spac e EscSPn (27)(32)n <1Bh><20h>n • This command all ows you to set the space between succ essive characters. • 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 sp ace [...]

  • Page 263

    10/10/03 CHAPTER 6 EPSON - 11 Set data MSB to 0 Esc= (27)(61) <1Bh><3Dh> • This command e nables you t o set the m ost signi ficant bit of incom ing data byt es to 0. • This command doe s not affect data com prising a graphic s ima ge or data that de fines a downloada ble character. LPRINT CHR$(27); CHR$(61); 'Set MSB to 0 Set [...]

  • Page 264

    10/10/03 CHAPTER 6 EPSON - 12 Reset printer / cha nge emulation mode EscCR<mode> (27)(13)mode <1Bh><0Dh>mode • This command e nables you to swi tch emul ation m ode or to reset the printer. • Change emulation mode by setting mode to the appr opria te letter o r pai r of le tters. Set mode to ‘D’ to switch to Di ablo mode, [...]

  • Page 265

    10/10/03 CHAPTER 6 EPSON - 13 6.2. Page set up Set page length EscC n (27)(67)n <1Bh>< 43h>n This comm and sets the page length in lines. or EscCNULn (27)(67)(00)n <1Bh><43h><00h>n • This comm and sets the page l ength in inc hes. • The to p of form po sition is set to b e the cu rrent lin e. • n is the number of[...]

  • Page 266

    10/10/03 CHAPTER 6 EPSON - 14 6.3. Line Spacing Select 1 /6" line spacing Esc2 (27)(50) <1Bh><32h> • This c ommand sets the line spacing to 1/6". All su bseque nt line fee d operati ons will move the prin t position 1/6" down the page. • This lin e spacin g is the def ault setting when th e printer is switched on or r[...]

  • Page 267

    10/10/03 CHAPTER 6 EPSON - 15 Perform n/216" reverse line feed Escjn (27)(106)n <1Bh><6Ah>n This comm and performs a single reverse line feed, m oving the pri nt position up t he page by n /216". • This command doe s not perform a carriage return. • The current line spacing sett ing is not a ffected. • n must be in the r[...]

  • Page 268

    10/10/03 CHAPTER 6 EPSON - 16 Set vertical channel tab stops Escbnm1m2m3...NUL (27)(98)nm1m2m3...(00) <1Bh><62h>nm1m2m3...<00h> • You can set up to eight different sets of verti cal tab stops and select any of these sets for use at any time. Each set of tab stops is call ed a channel - channels are num bered from 0 to 7. • Cha[...]

  • Page 269

    10/10/03 CHAPTER 6 EPSON - 17 Set pitch to 12 ch aracters per in ch EscM (27)(77) <1Bh><4Dh> This comm and sets the printing pi tch to 12 charac ters per inch (cpi). LPRINT CHR$(27); CHR$(77); 'Set pitch to 12 cpi Select / cancel proportional spacing Escpn (27)(112)n <1Bh><70h>n • This command a llows you to t urn pro[...]

  • Page 270

    10/10/03 CHAPTER 6 EPSON - 18 Cancel double-st rike mode EscH (27)(72) <1Bh><48h> This comm and turns double-strike m ode off. Subsequent t ext is print ed with a m edium stroke widt h. LPRINT CHR$(27); CHR$(72); 'Turn double-strike printing mode off Select / cancel doubl e-w idth printing EscWn (27)(87)n <1Bh>< 57h>n ?[...]

  • Page 271

    10/10/03 CHAPTER 6 EPSON - 19 Cancel ital ic mode Esc5 (27)(53) <1Bh><35h> This comm and cancels the ital ic printi ng mode. Subseque nt text i s printed upright. LPRINT CHR$(27); CHR$(53); 'Cancel italic mode Select supers cript / subscript mode EscSn (27)(83)n <1Bh>< 53h>n • This c ommand allows you to print su pers[...]

  • Page 272

    10/10/03 CHAPTER 6 EPSON - 20 Select printing mode Esc!n (27)(33)n <1Bh>< 21h>n • This command a llows you to sel ect a com bination of printing modes with just one com mand. • The various modes are weighted as shown. Add the numbers that correspond to each m ode you require and set n to the total. 10 characters per i nch 0 12 chara[...]

  • Page 273

    10/10/03 CHAPTER 6 EPSON - 21 Select inte rnational ch aracter set EscRn (27)(82)n <1Bh>< 52h>n • This c ommand selects one of the avail able intern ational ch aracter se ts, refer to the print er User Gu ide for supported character sets. • Each characte r set varies slightly fro m the others and contains a small number of speci al [...]

  • Page 274

    10/10/03 CHAPTER 6 EPSON - 22 • Proportionally spaced charact ers are subject to the same height const raints (that is, eight dots high and either ascending or descending). The width of proport ionally spaced charact ers is specified by the valu e in n3. • n 1 is the character code of the first character in the sequence t o be defined. • n 2 [...]

  • Page 275

    10/10/03 CHAPTER 6 EPSON - 23 6.7. Graphics Select image mode Esc*mn1n2<image data> (27)(42)mn1n2.. .. <1Bh><2Ah>mn1n2.... • This command e nables you to define and print a si ngle line rast er bit im age on a si ngle text line at a selected horizonta l resolut ion. • n 1 and n 2 define the number of by tes that com prise the [...]

  • Page 276

    10/10/03 CHAPTER 6 EPSON - 24 Print 9 bit i mage Esc^an1n2 (27)(92)an1n2 <1Bh><5Eh>an1n2 • This command e nables you to define and print a single line rast er bit im age on a single text line. • n 1 and n 2 define the num ber of verti cal 9-dot c olumns that c omprise the image. • a defines the horizontal density of t he ima ge. S[...]

  • Page 277

    10/10/03 CHAPTER 6 EPSON - 25 Print single-density image EscKn 1 n 2 <image data> (27)(75)n1n2.... <1Bh><4Bh>n1n2.... • This command e nables you to define and print a single line rast er bit im age on a single text line. • n 1 and n 2 define the num ber of byte s that compri se the im age. • The image consists of 256* n 2 +[...]

  • Page 278

    10/10/03 CHAPTER 6 EPSON - 26 Print double-speed doubl e-density image EscYn 1 n 2 <image data> (27)(89)n1n2.... <1Bh>< 59h>n1n2.... • This command e nables you to define and print a single line rast er bit im age on a single text line. • n 1 and n 2 define the number of bytes t hat comprise the image. • The image consists o[...]

  • Page 279

    10/10/03 CHAPTER 6 EPSON - 27 7. INDEX 9 9 bit im age .................. .......... ............ ........ .......... .......... ... 24 A absolute print position ..... .......... ..................... .......... ....... 10 B Backspace ....... ........ .......... ........ .......... .......... ........ .......... ... 9 C Carria ge return ............[...]

  • Page 280

    10/10/03 CHAPTER 6 EPSON - 28[...]

  • Page 281

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 1 CHAPTER 7 IBM PROPRINTER XL[...]

  • Page 282

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 2 C ONTENTS 1. COMMAND LIS T............... ............. ................ ................ ............ ................ ................ ........... 3 2. INTRODUCT ION .. ................ ............. ................ ................ ............. ................ ................ ....... 5 3. EMULATION DE T[...]

  • Page 283

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 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 Dis able printe r 9 EscQ3 Di sable pr inter 9 EscCRmode Reset printer / change emula tion mode 9 EscCR!#R User rese t 9 EscEMn [...]

  • Page 284

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 4 EscKn1n2<image data> 18 Set single-density image mode EscLn1n2<image data> 18 Set double-density ima ge mode EscYn1n2<image data> 19 Set double-speed , double-density ima ge mode EscZn1n2<image data> 20 Set quadruple-density image mode[...]

  • Page 285

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 5 2. INTRODUCTION Some of the se HL Series printers offer a com p lete em ulation of the IBM Propri nter. In Proprinter XL mode you can drive the printer dire ctly by incorporating control codes and escape sequences in your program, or alternat ively, appl ications software (for exampl e, your word-processing so[...]

  • Page 286

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 6 3. EMULATION DETAILS The following poi nts should be borne i n mind whe n runn ing the HL Series printe rs in IBM Proprint er XL mode. 3.1. Ignored Commands A few IBM P roprinter XL com mands have reduced effect, or no effect a t all. In some cases t his is due to the physical nature of an HL Serie s printer. [...]

  • Page 287

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 7 4. NOTATION USED IN THIS EMULATION DESCRIPTION 4.1. Syntax The following conventions a re used in this description of the Proprinter XL software comm ands. A letter, word or number in upri ght bold text is the lite ral character wh ich and should be sent to the printer as a character code. A letter o r word in[...]

  • Page 288

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 8 5. COMMANDS 5.1. Basic Printer Operat ion The most comm on printer operations are described i n this section. Most are invoked usi ng control codes. For the sake of completeness the i nstructions which HL Seri es printers ignore are included. Null NUL (0) <0h> NUL (ASCII 0) i s ignored. Bell BEL (07) <[...]

  • Page 289

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 9 Automatic l ine feed Esc5n (27)(53)n <1Bh>< 35h>n • W hen au tomatic line feed is ON, a line fee d is auto matically p erfor med ever y time a car riage r eturn is sent to the p rinter. • To tu rn the auto matic line fee d func tion ON , set n to 1. • To tur n the auto matic line fee d functi[...]

  • Page 290

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 10 Paper input control EscEMn (27)(25)n <1Bh><19h>n n Value HL-1660e/2060/2400C/2400Ce/3400CN/3260N/2460/ 7050/2600CN/3450CN n = 0 Initialize the feeder m ode. n = 1 Feed from the M P tray. n = 2 Feed from Tray 1. n = 3 Feed from Tray 2. n = 4 Feed from T ray 3. n = 5 Feed from Tray 4. n = R Eject pa[...]

  • Page 291

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 11 5.2. Page Format Set page length EscCn (27)(67)n <1Bh>< 43h>n This comm and sets the page length in lines. or EscCNULn (27)(67)(0)n <1Bh>< 43h><00h>n • This comm and sets the page l ength in inc hes. • n is the number of lines that m ake up one page, or the length of the page[...]

  • Page 292

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 12 Line spacing and tabs Set 1/8" line s pacing Esc0 (27)(48) <1Bh><30h> This comm and sets the line spacing to 1/ 8". All subsequent line feed operations will m ove the print position 1/8" down the page. LPRINT CHR$(27); CHR$(48); 'Set line spacing to 1/8". Set 7/72" li[...]

  • Page 293

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 13 Set horizontal tabs EscD<n1><n2><n3>...NUL (27)(68)n1n2n3...(00) <1Bh><44h>n1n2n3...<00h> • This comm and enables you t o set up to 28 horiz ontal t ab stops using the current character pi tch. • The tab stops should be set i n ascending order. • Esc D 0 clears all ho[...]

  • Page 294

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 14 5.3. Usi ng Characters Select c haracter set I Esc7 (27)(55) <1Bh><37h> This comm and selects IBM Charact er set I for use i n subsequent printing ope rations. LPRINT CHR$(27); CHR$(55); 'Select character set I Select c haracter se t II Esc6 (27)(56) <1Bh><36h> This comm and selec[...]

  • Page 295

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 15 Set enlarged character mode for a single line SO (14) <0Eh> • This command turns enl arged character m ode on for one line only. The subsequent li ne of text is printed using doubl e-width charact ers and with the line space setting doubled. • The following comma nds cancel enlarged chara cter mode [...]

  • Page 296

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 16 Underline mode Esc-n (27)(126)n <1Bh><7Eh>n • This command turns charact er underlining on or off. • If n is set t o 1 subsequent t ext is unde rlined. • Horizontal tab spaces are not underline d irrespective of whether underlini ng mode is on or off. • If n is set t o 0 subsequent t ext i[...]

  • Page 297

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 17 Select a cha racter fr om the All C haracter C ode table Esc^<char-code> (27)(94)<Char-code> <1Bh><5Eh><Char-code> • This co mmand enable s you to pr int a singl e characte r fro m the All Charac ter Code ta ble. • A control code is not executed if the code is se nt imm ediat[...]

  • Page 298

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 18 • If bits 1 and 2 of n 4 are 01 the least significa nt bit of e ach data byt e is repli cated in rows 9 t o 12 of the grid. • If bits 1 and 2 of n 4 are 10 the bits 1 t o 4 of each da ta byte are replicat ed in rows 9 to 12 of the grid. • Bits 5 to 7 of n 5 specify the num ber of columns l eft blank to [...]

  • Page 299

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 19 • Images are printed at an approxim ate horizonta l resoluti on of 120 dots per inch and at an approxim ate vertical re solution of 72 dots pe r inch. • Each byte represents a vertical column of eight dots, the most signi ficant bit repre senting the dot at the top. Simply se t a bit to 1 if you want a do[...]

  • Page 300

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 20 Set quadruple-density image mode EscZn 1 n 2 <image data> (27)(90)n1n2<image data> <1Bh><5Ah>n1n2<ima ge data> • This comm and enables you t o define and print a single li ne raster bit image on a single te xt line. • n 1 and n 2 define the num ber of bytes that com prise the[...]

  • Page 301

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 21 6. INDEX A Automa tic l ine feed .......... ........ .......... ............ .......... ........ . 9 B Backspace ....... ........ .......... ........ .......... .......... ........ .......... ... 8 C cancel .... .......... .......... ............ ........ .......... .......... ........ ...... 15 Carria ge ret[...]

  • Page 302

    10/10/03 CHAPTER 7 IBM PR OPRINTER - 22[...]

  • Page 303

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

  • Page 304

    10/10/03 CHAPTER 8 BAR CODE CONTROL - 2 C ONTENTS 1. INTR ODUCTION ............... ................ ............. ................ ................ ............ ................ ........ ...... 3 2. PRINT BAR CO DES OR E XPANDE D CHAR ACTERS ..................... ................ ................ ...... 4 3. DEFIN ITION OF P ARAME TERS ............[...]

  • Page 305

    10/10/03 CHAPTER 8 BAR CODE CONTROL - 3 1. INTRODUCTION Some of the HL series pri nters can print bar codes in the HP LaserJet, EPSON FX-850, and IBM Proprinte r XL emulat ion modes, refer to the printe r User guide for informat ion.[...]

  • Page 306

    10/10/03 CHAPTER 8 BAR CODE CONTROL - 4 2. PRINT BAR CODES OR EXPANDED CHARACTERS ESC i n ... n (27)(1 05)n ... n (92) <1Bh><69h>n ... n <5Ch> Creates bar codes or expa nded characters according to the param eters “n ... n”. For further inform ation about the par ameters, see the follow ing “D efinitio n of P arameters .?[...]

  • Page 307

    10/10/03 CHAPTER 8 BAR CODE CONTROL - 5 3. DEFINITION OF PARAMETERS This bar code com mand can have the fol lowing param eters in the parameter segment (n ... n). Parameters are effective only within the si ngle comm and sequence using the synt ax ESC i n ... n . They do not take effect in any subsequent bar code com mands. If any paramete rs are[...]

  • Page 308

    10/10/03 CHAPTER 8 BAR CODE CONTROL - 6 y Line Bloc k Drawing & Box Drawing Shading “S” 1 = Black 2 = Verti cal stripes 3 = Horizontal stripes 4 = Cross hatch 3.3. Bar Code Scalin g (Width only ) n = “mnnn” or “Mnnn” (nnn = 0 ~ 32767) This parameter spec ifies the bar code width scali ng. The unit of "nnn" is %. The defaul[...]

  • Page 309

    10/10/03 CHAPTER 8 BAR CODE CONTROL - 7 3.7. Bar Code, Expanded Charac ter, Line, Block Drawing & Box Drawing Offset in the X-axi s n = “xnnn” or “Xnnn” This parameter specifies the offset fr om the curren t print p osition in th e “u”- o r “U”-spe cified units . 3.8. Bar Code & Expanded Character Off set in the Y-ax is n = [...]

  • Page 310

    10/10/03 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 m ust end with the “ ” code (5CH), which also term inates this comm and. The acceptable ba r code data is subject to the bar c ode mode sel ected by “t” or “T ” as[...]

  • Page 311

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

  • Page 312

    10/10/03 CHAPTER 8 BAR CODE CONTROL - 10 4. EXAMPLE PROGRAM LISTINGS 10 ' Barcode 20 WIDTH "LPT1:", 255 30 ' CODE 39 40 LPRINT CHR$(27); "it0r1s0x00y 00b123456"; 50 'INTER LEAVED 60 LPRINT CHR$(27); "it1r1s0x70y 00b123456"; 70 ' EAN-13 80 LPRINT CHR$(27); "it5r1s0x00y 020b123456789012?"[...]

  • Page 313

    10/10/03 CHAPTER 9 HP-G L - 1 CHAPTER 9 HP-GL GRAPHICS LANGUAGE[...]

  • Page 314

    10/10/03 CHAPTER 9 HP-G L - 2 C ONTENTS 1. COMMAND LIS T ............... ................ ............. ................ ................ ............ ................ .......... 3 2. INTRODUCT ION ........................ ................ ............. ................ ................ ............. ................ 4 2.1. HP-GL Syntax ...........[...]

  • Page 315

    10/10/03 CHAPTER 9 HP-G L - 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 coordina te pen move 10 AA Draw absolute arc 11 AR Draw relative arc 1 1 CI Circle plot[...]

  • Page 316

    10/10/03 CHAPTER 9 HP-G L - 4 2. INTRODUCTION The HP-GL graphics mode em ulates 40 out of 56 instructi ons for the HP 7475A plotter made by Hewlett- Packard. Default m easurement unit in the HP-GL graphics m ode is 1/1016"(0.025m m). 2.1. HP-G L Syntax A comma nd consists of a two-letter inst ruction mnem onic, a parameter field (not needed fo[...]

  • Page 317

    10/10/03 CHAPTER 9 HP-G L - 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/3450CN) Letter 6 5 5 5 Legal 6 5 5 5[...]

  • Page 318

    10/10/03 CHAPTER 9 HP-G L - 6 3. COMMANDS 3.1. Initialization and D efault Setting In structions DF - Default set inst ruction DF[;] • Returns the graphics mode to the default condi tions. • The following are the default settings. Function Equivalent Instruction Condit ion Plot m ode PA; Absolute plotting Relative character di rection DR 1,0; H[...]

  • Page 319

    10/10/03 CHAPTER 9 HP-G L - 7 Function Equivalen t Instruction Condit ion Fill type FT; Bi-d irection al fill, type 1 Fill dista nce FT; 1% of distance from P1 to P2 Fill slant FT; 0 degrees Pen thickness PT; Set at 0.3 mm Pen conditi on PU; Pen up Rotation RO; Set at 0 degrees Scaling points IP; Initia lized acc ording to paper size 3.2. Plot Area[...]

  • Page 320

    10/10/03 CHAPTER 9 HP-G L - 8 IW - Input window IW [ X 1 , Y 1 , X 2 , Y 2 ] [;] X1-Window lower left X coordinate Y1-W indow lower left Y coordinate X2-Window upper right X coordinate Y2-Window upper right Y coordinate • This instruction sets the window inside whi ch plotti ng can be perform ed. • Graphic units are alway s used. • Coordinate[...]

  • Page 321

    10/10/03 CHAPTER 9 HP-G L - 9 PU - Pen up PU [ X,Y [,...]] [;] X ; X coordinate of the cursor movem ent destination Y ; Y coordinate of the cursor movem ent destination • X and Y are either relati ve or absolute, depending on whether a PA or a PR was the la st plot comm and executed. The absol ute coordinates are set as default. • Moves the cur[...]

  • Page 322

    10/10/03 CHAPTER 9 HP-GL - 1 0 Current position (X1, Y1) (X2,Y2) (X3, Y3) (Xn, Y n 10 '*** PAEX1 *** 20 LPRINT "IN;SP1;" 30 LPRINT "PA2000,6000;PD0,6000,2000,7500,2000,6000;PU 2500,6000;" 40 LPRINT "PAPD4500,6000,2500,7500,2500,6000;PU10365,5 00;" 50 END <Sample 62> 10 ' *** PAEX2 *** 20 LPRINT "IN[...]

  • Page 323

    10/10/03 CHAPTER 9 HP-GL - 1 1 AA - Draw absolute ar c AA [ X, Y, qc [, qd ]] [;] X ; Arc centre X coordinat e Y ; Arc centre Y coordinat e qc ; Arc angle i n degrees qd ; Chord angle in degrees • X and Y coordinates are absolute coordinates in use r units or graphic s units. • Starting from the current position, plot s an arc centred on the ab[...]

  • Page 324

    10/10/03 CHAPTER 9 HP-GL - 1 2 • Plotting is performed only when the pen is down. • W hen the pen is up, plotting i s not perform ed but the cursor posi tion moves to the plot end point. • W hen scaling has been performed, the cursor is m oved by relative coordina tes in user units. • Also, when scaling has been performed, the values for X [...]

  • Page 325

    10/10/03 CHAPTER 9 HP-GL - 1 3 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 '*** CIEX[...]

  • Page 326

    10/10/03 CHAPTER 9 HP-GL - 1 4 • W hen there is no scaling, the coordinate val ues 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 327

    10/10/03 CHAPTER 9 HP-GL - 1 5 EW - Edge w edge EW r,q1,qc(,qd)[;] r ; Radi us in user units or graphics units q1; Sta rt point angl e qc ; Arc angle qd ; Chord angle • Plots a wedg e centred on the cu rrent po sition with radiu s r , start point angle q1 , arc angle qc and chord angle qd . • After plotti ng, the cursor returns to its poi nt of[...]

  • Page 328

    10/10/03 CHAPTER 9 HP-GL - 1 6 RA - Fill rectangle absolute RA X, Y[;] X ; X coordinate of opposite angl e for the rectangle Y ; Y coordinate of opposite angl e for the rectangle • X and Y coordinates are absolute coordinates in use r units or graphic s units. • Fill in the rectangle form ed by the current position and the opposite angle speci [...]

  • Page 329

    10/10/03 CHAPTER 9 HP-GL - 1 7 WG - Fill w edge 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 positi on with radius r , start point angle q1 , arc angle qc and chord angle qd . • After plotting, the cursor returns to its poi nt of ori[...]

  • Page 330

    10/10/03 CHAPTER 9 HP-GL - 1 8 3.5. Plot Function Instructions Instruction Func tion FT Fill Type LT Line Type PW Pen Width SM Sym bol 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 interva l (inter val betw een the para llel lines o f the area be ing fille d) q :[...]

  • Page 331

    10/10/03 CHAPTER 9 HP-GL - 1 9 PW-Pen width PW n[;] w ; width (unit = 1/300 inch) • This command spe cifies the wi dth of the c urrently sele cted pen. • The value of w is an integer number from 1 to 10. SM - Symbol mode SM c[;] c ; ASCII chara cter or sym bol code • The command specifie s the sym bol to be drawn. • W hen the PA, PR, P D or[...]

  • Page 332

    10/10/03 CHAPTER 9 HP-GL - 2 0 XT - X- axis tic k XT [;] • Plots vertical ti ck marks a s specified by the TL inst ruction from t he current posi tion. • After plotting, the cursor returns to its point of origin. • Plotting is performed whet her the pen is up or down. YT - Y- axis tic k YT [;] • Plo ts horizo ntal tick mark s as specifie d [...]

  • Page 333

    10/10/03 CHAPTER 9 HP-GL - 2 1 n Character Set 0 ANSI ASCII 1 9825 Character Set 2 Fren ch/Ger man 3 Scandinavian 4 Spanis h/Latin Americ an 6 JIS ASCII 7 ROMAN 8 Extensions 9 ISO IRV 30 ISO Swedish 31 ISO Swedish for Names 32 ISO Norway, Ve rsion 1 33 ISO German 34 ISO French 35 ISO Kingdom 36 ISO Italian 37 ISO Spanish 38 ISO Portuguese 39 ISO No[...]

  • Page 334

    10/10/03 CHAPTER 9 HP-GL - 2 2 LB - Character plot LB [ cs ] < terminator > [;] cs : character st ring • Plots character st rings, numerical expre ssions, variables etc. • Plotting i s performed whether t he pen is up or down. • After plott ing, the cursor m oves to the position of the next character. 10 '*** LBEX1 *** 20 LPRINT &q[...]

  • Page 335

    10/10/03 CHAPTER 9 HP-GL - 2 3 DR - Relativ e direction DR [ run, rise ] [;] run : X direction component rise : Y direction com ponent • A percentage of the distance in the X and Y directi ons between P1 and P2 is used as the units • Sp ecifies t he cha racter p lot dir ection . • Values for the run and rise are c lamped real numbers. • The[...]

  • Page 336

    10/10/03 CHAPTER 9 HP-GL - 2 4 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 "I[...]

  • Page 337

    10/10/03 CHAPTER 9 HP-GL - 2 5 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 - Us er-defined c haracter UC X1, Y1, X2, Y2..., Xn, Yn[;] Xi : Num ber of grids in X dire ction Yi : Number of gr ids[...]

  • Page 338

    10/10/03 CHAPTER 9 HP-GL - 2 6 3.7. Dual Context Extensions Set High resolution control (Brother original) EscCRRO This comm and sets high resolution control off. EscCRRL This comm and sets high resolution control light leve l. EscCRRM This comm and sets high resolution control medi um level . EscCRRD This comm and sets high resolution control dark[...]

  • Page 339

    10/10/03 CHAPTER 9 HP-GL - 2 7 4. INDEX A Absolute di rection ............ .......... .............. .......... .......... ... 22 Alterna te chara cter se t .................. .......... ............ .......... ... 20 C Charact er plot .............. .......... ........ .......... .......... ........ 22, 23 characte r set.................. ........[...]

  • Page 340

    10/10/03 CHAPTER 9 HP-GL - 2 8[...]

  • Page 341

    10/10/03 APPENDIX A -COMPARI SON LIST-1 APPENDIX A COMPARISON LIST[...]

  • Page 342

    10/10/03 APPENDIX A -C OMPARISO N LIST-2 C ONTENTS PCL5/5E ......................................................................... 3 Typeface Selection (PCL) .. ............. ................ ............. ................ .16 HP-GL/2 ....................................................................... 18 EPSON FX-850 .........................[...]

  • Page 343

    10/10/03 APPENDIX A -COMPARI SON LIST-3 In this chapter , you can find whic h comm ands ar e supporte d by your printer. PCL5/5e COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc&k#G[...]

  • Page 344

    10/10/03 APPENDIX A -C OMPARISO N LIST-4 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc&l45A Paper Size JIS B5 √ √ √ √ √ √ √ √ √ √ √ Esc&l46A Paper Size [...]

  • Page 345

    10/10/03 APPENDIX A -COMPARI SON LIST-5 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc&l1036A Paper Size Organizer M √ Esc&l1037A Paper Size DL Long Edg e Feeding √ Esc&am[...]

  • Page 346

    10/10/03 APPENDIX A -C OMPARISO N LIST-6 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc&l1H Primary Tray √ √ Feeder 1 √ Upper Cassett e √ √ Tray1 √ Tray1 √ Tray1 √[...]

  • Page 347

    10/10/03 APPENDIX A -COMPARI SON LIST-7 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc&l101H Tray ID 2 √ Tray ID 2 √ Tray ID 2 √ Tray ID 2 Esc&l102H Tray ID 3 √ Tray I[...]

  • Page 348

    10/10/03 APPENDIX A -C OMPARISO N LIST-8 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc&u#D Unit of Measure √ √ √ √ √ √ √ √ √ √ √ √ √ √ Esc&a#L Lef[...]

  • Page 349

    10/10/03 APPENDIX A -COMPARI SON LIST-9 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc&a#H Horizontal Position(decipoint) √ √ √ √ √ √ √ √ √ √ √ √ √ √ E[...]

  • Page 350

    10/10/03 APPENDIX A -COMPAR ISON LIST -10 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc*c#R Symbol Set ID Set √ √ √ √ √ √ √ √ √ √ √ √ √ √ Esc(f#W Define S[...]

  • Page 351

    10/10/03 APPENDIX A -COMPARI SON LIST- 11 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc&d#D, Esc&d@ Auto Underline √ √ √ √ √ √ √ √ √ √ √ √ √ √ Esc[...]

  • Page 352

    10/10/03 APPENDIX A -COMPAR ISON LIST -12 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc*v#O Select Pattern Tran sparency Mode √ √ √ √ √ √ √ √ √ √ √ √ √ √ [...]

  • Page 353

    10/10/03 APPENDIX A -COMPARI SON LIST- 13 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc*t#R Resolution Setting √ #:75,10 0,150, 200, 300,60 0 √ #:75,10 0,150, 200, 300,60 0 √ #[...]

  • Page 354

    10/10/03 APPENDIX A -COMPAR ISON LIST -14 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc*rC End Raster Graphics √ √ √ √ √ √ √ √ √ √ √ √ √ √ Esc%#B Enter HP[...]

  • Page 355

    10/10/03 APPENDIX A -COMPARI SON LIST- 15 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450/ P2500 HL- 1270N/ 1470N HL- 1660e/ 2060 HL- 2400 C/Ce HL- 3400 CN HL- 1650/ 1670N HL- 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 HL- 2600 CN HL- 3450 CN Esc&f7X Delete Temporary Macro √ √ √ √ √ √ √ √ √ √ √ √ √ √ Esc&[...]

  • Page 356

    10/10/03 APPENDIX A -COMPAR ISON LIST -16 Typeface Selectio n (PCL) COMMAND TYPEFACE HL- 1050 HL- 1070 HL- 1250/ 1450 HL- 1270N/ 1470N HL- P2500 HL- 1660e HL- 2060 HL- 2400 C/Ce/ 2600 CN HL- 3400 CN/ 3450 CN HL- 1650/ 1670N/ 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 E s c ( s 1 2 9 T A n e l i a Esc(s1 28T Brougham Esc(s130T Letter[...]

  • Page 357

    10/10/03 APPENDIX A -COMPARI SON LIST- 17 COMMAND TYPEFACE HL- 1050 HL- 1070 HL- 1250/ 1450 HL- 1270N/ 1470N HL- P2500 HL- 1660e HL- 2060 HL- 2400 C/Ce/ 2600 CN HL- 3400 CN/ 3450 CN HL- 1650/ 1670N/ 1850/ 1870N/ 5040/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 Esc(s4 297T Maryland √ √ √ √ √ √ √ √ √ √ √ √ √ Esc(s411 3T Oklahom[...]

  • Page 358

    10/10/03 APPENDIX A -COMPAR ISON LIST -18 HP-GL/2 COMMAND HL-1050/10 70/1250/127 0N/1450/14 70N/P2500/166 0e/2060/2400 C/2400Ce/340 0CN/1650/1670N /3260N/2460/7 050/1850/ 1870N/5050/5 070 N/ 2600CN/3450CN DF √ IN √ IP √ IR √ SC √ IW √ RO √ PU √ PD √ PA √ PR √ AA √ AR √ AT √ RT √ PE √ CI √ BR √ BZ √ PM √ EA ?[...]

  • Page 359

    10/10/03 APPENDIX A -COMPARI SON LIST- 19 COMMAND HL-1050/10 70/1250/127 0N/1450/14 70N/P2500/166 0e/2060/2400 C/2400Ce/340 0CN/1650/1670N /3260N/2460/7 050/1850/ 1870N/5050/5 070 N/ 2600CN/3450CN RF √ SM √ SP √ SV √ TR √ UL √ WU √ SD √ AD √ SS √ SA √ FI √ FN √ LB √ DT √ LO √ DI √ DR √ DV √ CP √ CF √ SI √[...]

  • Page 360

    10/10/03 APPENDIX A -COMPAR ISON LIST -20 Epson FX-850 COMMAND HL-1050 /1070/125 0/1270N/1450 /1470N/P2500 /1660e/206 0/2400C/2400Ce/3 400CN/1650/16 70N/3260N/24 60/7050/1 850/1870N/ 5050/5070N/26 00CN/3450CN SP √ BS √ CR √ LF √ FF √ Esc SP n √ Esc a n √ Esc $ n1 n2 √ Esc n1 n2 √ Esc < √ Esc > √ Esc # √ Esc @ √ Esc[...]

  • Page 361

    10/10/03 APPENDIX A -COMPARI SON LIST- 21 COMMAND HL-1050 /1070/125 0/1270N/1450 /1470N/P2500 /1660e/206 0/2400C/2400Ce/3 400CN/1650/16 70N/3260N/24 60/7050/1 850/1870N/ 5050/5070N/26 00CN/3450CN Esc / n √ VT √ Esc P √ Esc M √ Esc p n √ SI √ Esc SI √ DC2 √ Esc E √ Esc F √ Esc G √ Esc H √ Esc W n √ SO √ Esc SO √ DC4 √[...]

  • Page 362

    10/10/03 APPENDIX A -COMPAR ISON LIST -22 COMMAND HL-1050 /1070/125 0/1270N/1450 /1470N/P2500 /1660e/206 0/2400C/2400Ce/3 400CN/1650/16 70N/3260N/24 60/7050/1 850/1870N/ 5050/5070N/26 00CN/3450CN Esc L n1 n2 √ Esc Y n1 n2 √ Esc Z n1 n2 √[...]

  • Page 363

    10/10/03 APPENDIX A -COMPARI SON LIST- 23 IBM ProPrinter X L COMMAND HL-1050/1 070/1250/1 270N/1450/1 470N/P2500/16 60e/2060/2 400C/2400Ce/340 0CN/1650/1670 N/3260N/2460/7 050/1850 /1870N/ 5050/5070N/26 00CN/3450CN ESC √ SP √ BS √ CR √ LF √ FF √ Esc 5 n √ DC1 √ Esc Q 22 √ Esc Q 3 √ Esc C R ! #R √ Esc EM n √ Esc C n √ Esc C[...]

  • Page 364

    10/10/03 APPENDIX A -COMPAR ISON LIST -24 COMMAND HL-1050/1 070/1250/1 270N/1450/1 470N/P2500/16 60e/2060/2 400C/2400Ce/340 0CN/1650/1670 N/3260N/2460/7 050/1850 /1870N/ 5050/5070N/26 00CN/3450CN SI √ Esc E √ Esc F √ SO √ DC4 √ CAN √ Esc W n √ Esc S n √ Esc T √ Esc - n √ Esc _ n √ Esc [ @ n1n2n 3n4n5n6 √ Esc n1 n2 √ Esc [...]

  • Page 365

    10/10/03 APPENDIX A -COMPARI SON LIST- 25 BAR CODE COMMAND HL-1050/1 070/1250/12 70N/1450/147 0N/P2500/1660 e/2060/240 0C/2400Ce/3400 CN/1650/1670N/3 260N/2460/705 0/1850/18 70N/5050/ 5070N/2600C N/3450CN CODE 39 √ Interleav ed 2 of 5 √ FIM(US-Post Net) √ Post Net √ EAN8,EAN13, UPC A √ UPC E √ Codabar √ UPS Code128 set A √ UPS Code1[...]

  • Page 366

    10/10/03 APPENDIX A -COMPAR ISON LIST -26 HP-GL COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450 HL- 1270N/ 1470N HL- P2500 HL- 1660e HL- 2060 HL- 2400C/ Ce/ 2600CN HL- 3400CN /3450 CN HL- 1650/ 1670N/ 1850/ 1870N/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 DF √ √ √ √ √ √ √ IN √ √ √ √ √ √ √ IP √ √ √ √ √ √ √ SC √ √[...]

  • Page 367

    10/10/03 APPENDIX A -COMPARI SON LIST- 27 COMMAND HL- 1050 HL- 1070 HL- 1250/ 1450 HL- 1270N/ 1470N HL- P2500 HL- 1660e HL- 2060 HL- 2400C/ Ce/ 2600CN HL- 3400CN /3450 CN HL- 1650/ 1670N/ 1850/ 1870N/ 5050/ 5070N HL- 3260N HL- 2460 HL- 7050 PT √ √ √ √ √ √ √ CS √ √ √ √ √ √ √ CA √ √ √ √ √ √ √ SS √ √ √ ?[...]

  • Page 368

    10/10/03 APPENDIX A -COMPAR ISON LIST -28 PJL PJL commands are supported by HL-1 050, HL-107 0, HL-1250, HL -1270N/14 50/1470N, HL-P2500, HL-166 0e, HL-2060, HL-2400C, HL-2400Ce, HL-3 400CN, HL-1650, HL-1 670N, HL-326 0N, HL-2460, HL-7 050, HL-185 0, HL-1870N, HL-5050, HL-504 0, HL-5070N, HL-2600CN and HL -3450CN. Other o ur printers does not suppo[...]

  • Page 369

    10/10/03 APPENDIX A -COMPARI SON LIST- 29 COMMAND HL-105 0 HL- 1070 HL-1250/ 1450 HL-1270N/ 1470N HL- P2500 HL- 1660e HL- 2060 HL-2400C/Ce / 3400CN/ 2600C N/ 3450CN HL-1650/167 0N/ 1850/ 1870N/ 5040/5050/ 5070N HL- 3260N HL- 2460 HL- 7050 @PJL JOB [NAME = "job name" ] [S TART = firs t page] [END = last page] [PASSWORD = "password&quo[...]

  • Page 370

    10/10/03 APPENDIX A -COMPAR ISON LIST -30 COMMAND HL-105 0 HL- 1070 HL-1250/ 1450 HL-1270N/ 1470N HL- P2500 HL- 1660e HL- 2060 HL-2400C/Ce / 3400CN/ 2600C N/ 3450CN HL-1650/167 0N/ 1850/ 1870N/ 5040/5050/ 5070N HL- 3260N HL- 2460 HL- 7050 @PJL INFO STATUS [<CR>] <LF> √ <… <… <… <… <… <… <… <… &l[...]

  • Page 371

    10/10/03 APPENDIX A -COMPARI SON LIST- 31 General PJL Environment Variables GENERAL PJL ENVIRONMENT VARIABLES HL-1050 HL-1 070 HL-1 250/ 1270N/ 1450/ 1470N HL-P2500 HL -1660e/ 2060 HL- 2400C/Ce/ 2600CN HL- 3400CN/ 3450CN HL-1650/ 1670N HL-1850/ 1870N/ 5040/ 5050/ 5070N HL-3260N HL-246 0 HL-7050 COPIES 1~200 1~20 0 1~999 1~99 9 1~999 1~999 1~999 1 ~[...]

  • Page 372

    10/10/03 APPENDIX A -COMPAR ISON LIST -32 GENERAL PJL ENVIRONMENT VARIABLES HL-1050 HL-1 070 HL-1 250/ 1270N/ 1450/ 1470N HL-P2500 HL -1660e/ 2060 HL- 2400C/Ce/ 2600CN HL- 3400CN/ 3450CN HL-1650/ 1670N HL-1850/ 1870N/ 5040/ 5050/ 5070N HL-3260N HL-246 0 HL-7050 HRC LI GHT, MEDIUM, DARK, OFF LIGHT, MEDIUM, DARK, OFF LIGHT, MEDIUM, DARK, OFF PAGEPROT[...]

  • Page 373

    10/10/03 APPENDIX A -COMPARI SON LIST- 33 GENERAL PJL ENVIRONMENT VARIABLES HL-1050 HL-1 070 HL-1 250/ 1270N/ 1450/ 1470N HL-P2500 HL -1660e/ 2060 HL- 2400C/Ce/ 2600CN HL- 3400CN/ 3450CN HL-1650/ 1670N HL-1850/ 1870N/ 5040/ 5050/ 5070N HL-3260N HL-246 0 HL-7050 INTRAY5 LOCKED, UNLOCK ED LOCKED, UNLOCK ED LOCKED, UNLOCK ED AUTOCONT ON, OFF ON, OFF O[...]

  • Page 374

    10/10/03 APPENDIX A -COMPAR ISON LIST -34 GENERAL PJL ENVIRONMENT VARIABLES HL-1050 HL-1 070 HL-1 250/ 1270N/ 1450/ 1470N HL-P2500 HL -1660e/ 2060 HL- 2400C/Ce/ 2600CN HL- 3400CN/ 3450CN HL-1650/ 1670N HL-1850/ 1870N/ 5040/ 5050/ 5070N HL-3260N HL-246 0 HL-7050 INTRAY2SIZE . . . . A4 LETTER, B5 EXECUTI VE, ENVELO PES, LEGAL A5, B6, A6, A4 LONG, NO [...]

  • Page 375

    10/10/03 APPENDIX A -COMPARI SON LIST- 35 GENERAL PJL ENVIRONMENT VARIABLES HL-1050 HL-1 070 HL-1 250/ 1270N/ 1450/ 1470N HL-P2500 HL -1660e/ 2060 HL- 2400C/Ce/ 2600CN HL- 3400CN/ 3450CN HL-1650/ 1670N HL-1850/ 1870N/ 5040/ 5050/ 5070N HL-3260N HL-246 0 HL-7050 YOFFSET -500~500 -500~500 -500~500 -500~500 -500 ~500 -500~500 -500~500 -500~500 -500~50[...]

  • Page 376

    10/10/03 APPENDIX A -COMPAR ISON LIST -36 GENERAL PJL ENVIRONMENT VARIABLES HL-1050 HL-1 070 HL-1 250/ 1270N/ 1450/ 1470N HL-P2500 HL -1660e/ 2060 HL- 2400C/Ce/ 2600CN HL- 3400CN/ 3450CN HL-1650/ 1670N HL-1850/ 1870N/ 5040/ 5050/ 5070N HL-3260N HL-246 0 HL-7050 KEEPPCL ON, OFF ON, OFF (HL- 1270N only) ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF[...]

  • Page 377

    10/10/03 APPENDIX A -COMPARI SON LIST- 37 GENERAL PJL ENVIRONMENT VARIABLES HL-1050 HL-1 070 HL-1 250/ 1270N/ 1450/ 1470N HL-P2500 HL -1660e/ 2060 HL- 2400C/Ce/ 2600CN HL- 3400CN/ 3450CN HL-1650/ 1670N HL-1850/ 1870N/ 5040/ 5050/ 5070N HL-3260N HL-246 0 HL-7050 MEDIATYPE REGULA R, THICK, THICK2, TRANSP ARENCY REGULA R, THICK, THICK2, TRANSP ARENCY [...]

  • Page 378

    10/10/03 APPENDIX A -COMPAR ISON LIST -38 PCL Specific Variables PCL SPECIFIC VARIABLES HL-1050, HL -1070, HL- 1250, HL- 1270N/145 0/1470N, HL-P2500 HL-1660e, HL-2060, HL-2400C/Ce, HL- 3400CN/2600CN/ 3450CN HL-1650/167 0N HL-1850/187 0N/5040/ 5050/5070N HL-3260N, HL-2460, HL-7050 FONTSOURCE I, S I, C, C1, S I, S I, S I, C1, C2, S FONTNUMBER 0,1,2, [...]

  • Page 379

    10/10/03 APPENDIX A -COMPARI SON LIST- 39 PCL SPECIFIC VARIABLES HL-1050, HL -1070, HL- 1250, HL- 1270N/145 0/1470N, HL-P2500 HL-1660e, HL-2060, HL-2400C/Ce, HL- 3400CN/2600CN/ 3450CN HL-1650/167 0N HL-1850/187 0N/5040/ 5050/5070N HL-3260N, HL-2460, HL-7050 SYMSET ROMAN8, ISOL1, ISOL2, ISOL5, ISOL6 , PC8, PC8DN, PC850, PC852, PC8TK, PC7 75, PC1004,[...]

  • Page 380

    10/10/03 APPENDIX A -COMPAR ISON LIST -40 PCL SPECIFIC VARIABLES HL-1050, HL -1070, HL- 1250, HL- 1270N/145 0/1470N, HL-P2500 HL-1660e, HL-2060, HL-2400C/Ce, HL- 3400CN/2600CN/ 3450CN HL-1650/167 0N HL-1850/187 0N/5040/ 5050/5070N HL-3260N, HL-2460, HL-7050 RIGHTMA RGIN 10 ~155 columns 10 ~136 colum n s 10 ~155 colum ns 10 ~155 columns 10 ~136 colu[...]

  • Page 381

    10/10/03 APPENDIX A -COMPARI SON LIST- 41 PostScript Specific Variables POSTSCRIPT SPECIFIC VARIABLES HL-1050 HL -1070 HL- 1250/ 1450 HL-1270N/ 1470N HL- P2500 HL-1660e/ 2060/ 2400C/Ce/ 3400CN/ 2600C N/ 3450CN HL- 1650/1670N/ 1850/1870N/ 5050/5070N HL-3260 HL-2460 HL-7 050 PRTPSERRS ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF ON, OFF ORIENTATIO[...]

  • Page 382

    10/10/03 APPENDIX A -COMPAR ISON LIST -42 EPSON Specific Variables EPSON SPECIFIC VARIABLES HL-1050, HL-1 070, HL-1250, HL- 1270N/145 0/1470N HL-P2500 HL -1660e/206 0/ 2400C/Ce/3400CN/ 2600CN/3450CN HL-1650/1670N/ 1850/1870N/ 5050/5070N HL-3260N HL-2 460, HL -7050 ORIENTAION PORTRAIT LANDSCAPE PORTRAIT LANDSCAPE PORTRAIT LANDSCAPE PORTRAIT LANDSCAP[...]

  • Page 383

    10/10/03 APPENDIX A -COMPARI SON LIST- 43 IBM Specific Variables IBM SPECIFIC VARIABLES HL-1050, HL-1 070, HL-1250, HL- 1270N/145 0/1470N HL-P2500 H L-1660e/20 60/ 2400C/Ce/3400CN/ 2600CN/3450CN HL-1650/1670N/ 1850/1870N/ 5050/5070N HL-3260N HL-246 0, HL-7050 ORIENTATION PORTRAIT, LANDSCAPE PORTRAIT, LANDSCAPE PORTRAIT, LANDSCAPE PORTRAIT, LANDSCAP[...]

  • Page 384

    10/10/03 APPENDIX B - FLASH/PCMCI A CARD COMMANDS - 1 APPENDIX B FLASH/PCMCIA CARD COMMANDS <For HL-1270N/1470N/1660e /2060/2400C/2400Ce/3400CN /1650/1670N/2460/3260N/7050/1850/1870N/5070N /2600CN/3450CN Only>[...]

  • Page 385

    10/10/03 APPENDIX B - FLASH/PCMCI A CARD COMMANDS - 2 C ONTENTS 1. INTRODUCT ION ............ ................ ............ ................ ................ ............. ................ ..... 3 2. HOW TO READ TH E CARD COMMANDS SPEC IFICATION ............... ................... ... 4 2.1 Commands .................................................[...]

  • Page 386

    10/10/03 APPENDIX B - FLASH/PCM CIA CARD COMMANDS - 3 1. INTRODUCTION The Flash/C ard Comm ands described i n this chapt er are applicable to the HL-1270N/ 1470N/1660e/2060/ 2400C/2400Ce/3400CN/ 1650/1670N/2460/3260N/7050/1850/ 1870N/5070N/2600CN/3450CN pri nters only. The following types of device s can be used for the printers; 1) Flash me mory c[...]

  • Page 387

    10/10/03 APPENDIX B - FLASH/PCMCI A CARD COMMANDS - 4 2. HOW TO READ THE CARD COMMANDS SPECIFICA TION Each comm and is described in the following four sect ions of this manual . 2.1 Commands Comm and data sequence s and syntax. ESC or CR st ands for 0x1b or 0x0d as follows; ESC ----0x1b CR ---- 0x0d 2.2 Avai lable Devices The supported m emory card[...]

  • Page 388

    10/10/03 APPENDIX B - FLASH/PCM CIA CARD COMMANDS - 5 3. COMMANDS 3.1 Select Storage Devi ce Command (For HL-2060/240 0C/2400Ce/3400CN/24 60/3260N/705 0/2600CN/3450 CN Only) Command ESC CR ! 12358F Slot No ** Slot No = 1 Slot N o = 2 (Slot No. 2 is not used for the HL-2460/3260N.) Slot No = 3 (Interna l HDD) Default = 1 Availa ble Dev ices F, A, H [...]

  • Page 389

    10/10/03 APPENDIX B - FLASH/PCMCI A CARD COMMANDS - 6 3.2 Format Command 3.2.1 Physical format Command ESC CR ! 12340F Availa ble Dev ices F, A, H, I Description This comm and executes a physi cal forma t for the st orage device. This will delete a ll existi ng data on t he device. When two devices are i nstalled into the printer, the comm and form[...]

  • Page 390

    10/10/03 APPENDIX B - FLASH/PCM CIA CARD COMMANDS - 7 3.3 Save Data Comm and 3.3.1 Save specified type Command ESC CR ! 12345F type(4byte) size(4byte) data... ** type = MCRO, DATA Availa ble Dev ices F, A, H Description This command saves d ata of the sp ecified typ e with the data ID which is set with the ESC & f # Y (Macro ID Confi guration) [...]

  • Page 391

    10/10/03 APPENDIX B - FLASH/PCMCI A CARD COMMANDS - 8 3.4 Dat a 3.4.1 Save data Command ESC CR ! 12347F ID(2byte) size(4byte) data... Availa ble Dev ices F, A, H Description This comm and saves data which is sent from the PC with t he specified ID ont o the device. If the re is insu fficien t memory in the pr inter t o store t he data, a memory fu [...]

  • Page 392

    10/10/03 APPENDIX B - FLASH/PCM CIA CARD COMMANDS - 9 3.5 Font 3.5.1 Save primary font Command ESC CR ! 12343F Availa ble Dev ices F, A, H, I Description This comm and saves the primary font which is currently selecte d into the device. The prima ry font can also be saved by control panel operation. The ID specified with the ESC * c # D (Font ID ) [...]

  • Page 393

    10/10/03 APPENDIX B - FLASH/PCMCI A CARD COMMANDS - 10 3.5.3 Delete all dow nload fonts Command ESC * c 1028F Availa ble Dev ices F, A, H, I Description This comm and deletes all the download fonts whi ch are saved i n the device. When two dev ices are inst alled into the prin ter, the command deletes th e downl oad fo nts in the dev ice specified [...]

  • Page 394

    10/10/03 APPENDIX B - FLASH/PCM CIA CARD COMMANDS - 11 3.5.5 Save download font w ith specified ID Command ESC * c 1029F Availa ble Dev ices F, A, H, I Description This command saves th e font with the ID whic h is specif ied with the ESC * C # D (Font ID) comm and. When two devices are i nstalled int o the printer, t he comm and saves the downloa [...]

  • Page 395

    10/10/03 APPENDIX B - FLASH/PCMCI A CARD COMMANDS - 12 3.6 Macro 3.6.1 Delete all macros Command ESC & f 1030X Availa ble Dev ices F, A, H, I Description This comm and deletes all the macros which are saved in the device. When two devices are instal led into the pr inter, the co mmand delete s all the mac ros in the d evice specified by the sel[...]

  • Page 396

    10/10/03 APPENDIX B - FLASH/PCM CIA CARD COMMANDS - 13 3.6.3 Save macro w ith spec ified ID Command ESC & f 1038X Availa ble Dev ices F, A, H, I Description This command saves a macro with the I D which is sp ecified wit h the ESC & f # Y (Macro ID Configuration) c omm and on the device. When two dev ices are instal led into the printe r, t[...]

  • Page 397

    10/10/03 APPENDIX B - FLASH/PCMCI A CARD COMMANDS - 14 3.6.5 Save i mage (Printing locatio n not fixe d) Command ESC CR ! 12350F Availa ble Devi ce F Description After transfe rring the last p rint d ata into the image data ar ea, th is command sa ves the data w ith the I D which i s specifie d with th e ESC & f # Y (Macro ID Configuration) c o[...]

  • Page 398

    10/10/03 APPENDIX B - FLASH/PCM CIA CARD COMMANDS - 15 3.7 Copy Card (For HL-1660e/ 2060/2400C/ 2400Ce/340 0CN/2460/3 260N/7050 /2600CN/3450 CN Only) Command ESC CR ! 12357F Availa ble Dev ices F, A Description 1) Flash me mory card After executi ng a logical format on the transfer devi ce, this com mand copies to the t ransfer device only when the[...]

  • Page 399

    10/10/03 APPENDIX B - FLASH/PCMCI A CARD COMMANDS - 16 4. USE CARD COMMANDS FROM PCL 4.1 Execute Macr os Command ESC & l 2 X Execute Macro ESC & l 3 X Call Macro ESC & l 4 X Macro Overlay Availa ble Dev ices F, A, H, I Description The macros saved in the device c an be execute d from the PCL comm and language as well as saving macros in[...]

  • Page 400

    10/10/03 APPENDIX B - FLASH/PCM CIA CARD COMMANDS - 17 4.2 Use Dow nload Fonts Command ESC ( # X Designates soft font # as Primary ESC ) # X Designates soft font # as Secondary ** # = font ID num ber Availa ble Dev ices F, A, H, I Description The download fonts saved in the device can be select ed from the PCL com mand language as well as saving do[...]

  • Page 401

    10/10/03 APPENDIX B - FLASH/PCMCI A CARD COMMANDS - 18 5. USE CARD COMMANDS FROM POSTSCRIPT The PostScript em ulation recognizes the storage device as a hard disk (except a Flash m emory ca rd) and the PostS cript f ile oper ation allows you to r ead/wr ite data on the se devic es. (i.e.) Create t he file nam ed “test” and writ e the data , “[...]

  • Page 402

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

  • Page 403

    10/10/03 APPENDIX C HB P MODE COMMAN DS - 2 C ONTENTS 1. DESC RIPTION S ............ ................ ............ ................ ................ ............. ................ ........... ...... 3 2. COMMAND TO ENTE R HBP MODE..................... ............. ............. ................ ................ ........ 4 3. HBP COMMANDS .........[...]

  • Page 404

    10/10/03 APPENDIX C HBP M ODE COMMANDS - 3 1. DESCRIPTIONS The HBP m ode comm ands can be used for the HL-820/1020/1040 print ers only. The following com mands and syntax are use d in these spec ifications. Descripti on: meaning or code <Esc>: 0 x 1b <Space>: 0 x 20 <LF>: 0 x 0a *: 1byte of data +: sign for combining data ( This i[...]

  • Page 405

    10/10/03 APPENDIX C HB P MODE COMMAN DS - 4 2. COMMAND TO ENTER HBP MODE Command <ESC>%-12345X@PJL<LF> @PJL<Space>ENTER <Space>LANGUA GE<Space>=<Spa ce>HBP<LF> Function The printe r enters the HBP mode whe n this command is re ceived. Explanation The printer can receive t his comm and when it is in the idle[...]

  • Page 406

    10/10/03 APPENDIX C HBP M ODE COMMANDS - 5 3. HBP COMMANDS An HBP comm and is composed of ‘@’ + a n Uppercase Alphabet ic charact er + param eters (not necessary for some comman ds) . 3.1 Command List <Character stri ng> <Functions> @A Reserved @B Reserved @C Not used @D Speed setti ng for Centronics I/F @E Economy mode setting @F F[...]

  • Page 407

    10/10/03 APPENDIX C HB P MODE COMMAN DS - 6 3.2 Commands (Detailed Explanation) 3.2.1 Resolution setting comm ands Command @L + * Function This command sets the pr inter resol ution. Command Resolution @ L+ (00000000)B 600dpi (Default) @ L+ (00000101)B 300dpi @ L+ (00001010)B 150dpi Explanation The res olution is set whe n the p rinter receive s th[...]

  • Page 408

    10/10/03 APPENDIX C HBP M ODE COMMANDS - 7 3.2.3 Sleep mode setting commands Command @T+ * Function This command sets the sle ep time in minutes. Explanation This comm and is valid imm ediately after t he printer receives t he comm and. The command is valid until one of the follo wing o ccurs. (1) The pr inter r eceives t he Exit command. (2) The p[...]

  • Page 409

    10/10/03 APPENDIX C HB P MODE COMMAN DS - 8 3.2.4 Mode setting commands Command @M+* Function This comm and allows various error m ode operations to be set. 1 byt e, used as 8 bit s, that follows the @M comma nd select t he settings for eac h mode. Bit0:0 = The printer clears t he input buffer when a Paper Jam error or Undefined Code error occurs. [...]

  • Page 410

    10/10/03 APPENDIX C HBP M ODE COMMANDS - 9 3.2.5 Engine related setting commands Command @J+* Function This comm and allows the setting of engine relat ed comm ands. Each se tting depends on the value of t he 3 byte comma nd string. @J+CHR$ (0) +CHR$ (n): Sets Media Type This command allo ws the pr inter to ch ange th e temperatur e contro l for th[...]

  • Page 411

    10/10/03 APPENDIX C HB P MODE COMMA NDS - 10 3.2.7 Graphic data input commands Command @G+[data length(3bytes)]+data Function The 3 bytes of da ta following t he @G com mand shows the length of the dat a, N. The N byte s following thi s 3 byte heade r is handle d as graphic dat a. (Example) fprintf(fp,”@G%c %c%c”, (char)((data_length> >16[...]

  • Page 412

    10/10/03 APPENDIX C HBP MODE COMMANDS - 11 3.3 Graphic Data Format The data format , which follows the @G+ [num ber of data bytes (3 byte s)] command, is as shown below . the number of comma nd bytes for raster 1 comma nd byte 1 modified data 1 comm and byte 2 modified data 2 the number of comma nd bytes for raster 2 comma nd byte 1 modified data 1[...]

  • Page 413

    10/10/03 APPENDIX C HB P MODE COMMA NDS - 12 The 5th byte dat a onward is repl aced by the t welve data by tes AAh. 11101010b,02h,Aah When the replacement position and the am ount of replacem ent data are overflow, t he next data byte becomes an Expansi on Offset Byte. Howeve r, if the numbe r is FFh, 00h is added. The numbe r of command byt es = 3[...]

  • Page 414

    10/10/03 APPENDIX C HBP MODE COMMANDS - 13 4. RECOMMENDED COMMAND STRING The comm and strings bel ow shows the recom mended comma nd 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-820/1[...]

  • Page 415

    10/10/03 APPENDIX C HB P MODE COMMA NDS - 14[...]

  • Page 416

    10/10/03 APPENDI X D REFERENCE LI ST OF MX-2000/40 00/5000/7 000 SERIES UNIQUE COMMANDS - 1 APPENDIX D REFERENCE LIST OF MX-2000/4000/5000/ 7000 SERIES UNIQUE COMMANDS[...]

  • Page 417

    10/10/03 APPENDIX D REFERENCE LI ST OF MX-2000/40 00/5000/7 000 SERIES UNIQUE COMMANDS - 2 C ONTENTS 1. INTRODUCT ION ............... ............. ................ ................ ............ ................ ..........3 2. GENERAL SPECIFICATION ..... .......................................................... ................4 3. COMMAND RE FERE[...]

  • Page 418

    10/10/03 APPENDI X D REFERENCE LI ST OF MX-2000/40 00/5000/7 000 SERIES UNIQUE COMMANDS - 3 1. INTRODUCTION This manual covers t he general specificat ions and th e comm and reference list of the MX-2000 se ries (MX-2001 / MX-2002 / M X-2003), MX-4000 series (M X-4100 / MX-4200 / MX-4300), MX-5000 and M X-7000 series (MX-7000 / MX-7005 / MX-7010 ) [...]

  • Page 419

    10/10/03 APPENDIX D REFERENCE LI ST OF MX-2000/40 00/5000/7 000 SERIES UNIQUE COMMANDS - 4 2. GENERAL SPECIFICA TION The Mailbox unit is an option for the HL-2060, HL- 2460, HL-3260 or HL-7050 prin te r and the MX-2000/ 4000/ 7000 series compose d of three types of uni ts. The MX-2001/4100/7000 Lower M ailbox unit consists of five bins. The MX-2002[...]

  • Page 420

    10/10/03 APPENDI X D REFERENCE LI ST OF MX-2000/40 00/5000/7 000 SERIES UNIQUE COMMANDS - 5 3. COMMAND REFERENCE LIST This section describes t he specific comm ands as listed below used to support the functions of the Mailbox unit . 1) PJL output tray & mode setting 2) PJL mailbox protection & bin num ber setting 3) PJL avoidance of output [...]

  • Page 421

    10/10/03 APPENDIX D REFERENCE LI ST OF MX-2000/40 00/5000/7 000 SERIES UNIQUE COMMANDS - 6 3.1.2. PJL mailbox protection & bin number setting Format @PJL SET/DEFAULT MAILBOXPROTECT= TrayNumber Parameter TrayNumber <HL-2060/2460/7050> • Lower unit: #1 to 5 from bottom to to p • Lower unit + U pper un it: #1 to 10 f rom botto m to top &[...]

  • Page 422

    10/10/03 APPENDI X D REFERENCE LI ST OF MX-2000/40 00/5000/7 000 SERIES UNIQUE COMMANDS - 7 3.1.4. PCL out put 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 tra y. • 3: Select #1 bi n of the Mail box unit. • 4: Se[...]

  • Page 423

    10/10/03 APPENDIX D REFERENCE LI ST OF MX-2000/40 00/5000/7 000 SERIES UNIQUE COMMANDS - 8 Explanation • This operator select s the specifie d output tray and output m ode. • This operator is ignored when no tray is specified. • The ‘1’ and ‘2’ parameters are execut ed for all output tray s other than ones which are defined and protec[...]

  • Page 424

    10/10/03 APPENDI X D REFERENCE LI ST OF MX-2000/40 00/5000/7 000 SERIES UNIQUE COMMANDS - 9 3.1.6. PS mailbox prot ec tion & bin number setting Command <HL-2060> # setoutputprotect <HL-2460/3260/7050> <</BROutbinProtect # >> setpagedevice Parameter # <HL-2060/2460/7050> • Lower unit: #1 to 5 from bottom to to p ?[...]

  • Page 425

    10/10/03 APPENDIX D REFERENCE LI ST OF MX-2000/ 4000/5000/ 7000 SERIES UNIQUE COMMANDS - 1 0[...]

  • Page 426

    10/10/03 APPENDIX E REFERENCE LIST OF FS-5050 SERI ES UNIQUE COMMA NDS - 1 APPENDIX E REFERENCE LIST OF FS-5050 UNIQUE COMMANDS[...]

  • Page 427

    10/10/03 APPENDIX E REFERENCE LIST OF FS-5050 SERI ES UNIQUE COMMA NDS - 2 C ONTENTS 1. INTR ODUCTION ............ ................ ................ ............ ................ ................ .............3 2. GENERAL SPECIFICATION .. ................................................... .............................3 3. COMMAN D REFERE NCE L IST[...]

  • Page 428

    10/10/03 APPENDIX E REFERENCE LIST OF FS-5050 SERI ES UNIQUE COMMA NDS - 3 1. INTRODUCTION This manual covers the ge neral specificat ions and the c ommand refe rence list of the FS-5050 Finisher/S tapler units, which are optionally i nstalled onto the HL-3260 printe r. 2. GENERAL SPECIFICA TION The Finisher/ Stapler unit is an option for the HL-32[...]

  • Page 429

    10/10/03 APPENDIX E REFERENCE LIST OF FS-5050 SERI ES UNIQUE COMMA NDS - 4 3.1. Commands Descriptions 3.1.1. PJL output tray Format @PJL SET/DEFAULT OUTBIN= TrayName Parameter TrayName* • FINISHER: Select the tray of the Finisher/Stapler unit Default = ALLSTACKER Explanation • This command se lects the Fini sher/Stapler unit. • This command i[...]

  • Page 430

    10/10/03 APPENDIX E REFERENCE LIST OF FS-5050 SERI ES UNIQUE COMMA NDS - 5 3.1.4. PJL staple on/off Format @PJL SET/DEFAULT STAPLE= StapleName Parameter StapleName* • UPPER LEFT: Select the upper l eft of the F inisher/Staple r unit • UPPER RIGHT: Select the upper right of t he Finisher/ Stapler unit • LOWER LEFT: Se lect the lower le ft of t[...]

  • Page 431

    10/10/03 APPENDIX E REFERENCE LIST OF FS-5050 SERI ES UNIQUE COMMA NDS - 6 3.1.6. PJL job offset on/off Format @PJL SET/DEFAULT JOBOFFSET=ON/OFF Paramete r • ON: Paper is ejected offset by ea ch job. • OFF: Paper is ejected together. Default = ON Explanation • This command sele cts the job offset. • This command is ignored when the Fi nishe[...]