Genicom GEK 00031B 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

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Genicom GEK 00031B, 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 Genicom GEK 00031B 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 Genicom GEK 00031B. 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 Genicom GEK 00031B should contain:
- informations concerning technical data of Genicom GEK 00031B
- name of the manufacturer and a year of construction of the Genicom GEK 00031B item
- rules of operation, control and maintenance of the Genicom GEK 00031B 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 Genicom GEK 00031B 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 Genicom GEK 00031B, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Genicom 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 Genicom GEK 00031B.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Genicom GEK 00031B 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

    GEnicom 5000 Series Programmer’s Manual GEK – 00031B[...]

  • Page 2

    5000 Programmer’s Manual GEK-00029B 2 Table of C ontents Page Chapter 1.Introduction.................................................................... 8 overview of printer emulation ...............................................................8 Control Codes ....................................................................................[...]

  • Page 3

    GEK-00029B Table of Contents 3 Table of C ontents Page Chapter 2. ANSI Emulation (Continued) ANSI 4800/4410 Strap 1 OUT ........................................................ 46 ANSI 4800/4410 Strap 1 IN ........................................................... 46 Setting Bar Code Parameters .....................................................[...]

  • Page 4

    5000 Programmer’s Manual GEK-00029B 4 Table of C ontents Page Chapter 3.Printronix P300/P600 Emulation .................................. 66 Introduction ...................................................................................... 66 Control Codes .................................................................................... 66 Pr[...]

  • Page 5

    GEK-00029B Table of Contents 5 Table of C ontents Page Chapter 4.Printronix P-Series Emulation (Continued) Postnet Bar codes (SFCC |p*xxxxx-yyyy-zz*) .............................. 104 Ribbon Minder Enable/Disable (SFCC r E/SFCC r D) ................ 104 Ribbon Minder Set Job Rate (SFCC r J nnnn E) ......................... 104 Ribbon Minder Worn M[...]

  • Page 6

    5000 Programmer’s Manual GEK-00029B 6 Table of C ontents Page Chapter 6.Epson FX286-e Emulation (Continued) Miscellaneous Commands ............................................................... 149 FX-286e Dot Graphics ..................................................................... 150 Specifying Graphics Line Length ......................[...]

  • Page 7

    GEK-00029B Table of Contents 7 Table of C ontents Page Chapter 8.PPL3 Plus Emulation (Continued) Printable Area ............................................................................ 253 Positioning and Movement ............................................................ 253 Horizontal Advance Increments .....................................[...]

  • Page 8

    Chapter 1. Introduct ion GEK-00029B 8 CHAPTER 1. INTROD UCTI ON OVERVIEW OF PRINTER EMULATION Commands ar e sent to t he printer in t he form of contr ol codes and escape seq uences. The se differ from normal data to b e printed in th at they give inst ructions to the pr inter on paper movement, st yle of print, size, density, and many other select[...]

  • Page 9

    GEK-00029B 5000 Seri es Programmer’s Manual 9 Examples ar e shown belo w of escap e sequen ces as writt en in the text: with parameters filled in and written in the BASIC p rogramming language ass uming the use of th e LPRINT instr uction. The par ameter values are act ualized in these exam ples, but will be shown as para meters there after. No t[...]

  • Page 10

    Chapter 1. Introduct ion GEK-00029B 10 LINE TERM INATORS Some control c odes and esc ape seque nces act as line t erminators. Line terminator s cause all dat a receive d since the last ter minator to be printed. Witho ut a terminator, da ta will remain buffered. DECIPOINTS Throughout this manual de cipoints are u sed as a unit of measure. A decipoi[...]

  • Page 11

    GEK-00029B 5000 Seri es Programmer’s Manual 11 CHAPTER 2. ANSI EMULATI ON CONTROL CODE AND ESCAPE SEQUENCE ACTIVITY LEVELS ANSI contr ol codes an d escape se quences ar e assigne d activity levels depending on which p rint mode is currently active. The follo wing charts prov ide inform ation on what t o expect f rom the contr ol codes and escape [...]

  • Page 12

    Chapter 2. ANSI Emulation GEK-00029B 12 Control Code Activity Levels Contro l Code Acti vity Lev els Contro l Code Line Terminato r Norma l Dot Graphics Bar Codes Over size POSTNET BEL No A A D A Note 4 BS Yes A I I I Note 4 CR Yes A A I A Not e 4 DC1 No A A D A Note 4 DC3 No A A D A Note 4 DEL No Note 3 Note 3 D Note 3 Note 4 FF Yes A A I A Note 4[...]

  • Page 13

    GEK-00029B 5000 Seri es Programmer’s Manual 13 Escape Sequence Activity Levels Escape Seq uen ce Line Terminato r Norma l Dot Graphics Bar Codes Over size POSTNET DC S (G ra ph ics ) No A I I A I Font Load No A I I A I GENB CS No A A A A I G E N F D N o A AAA I GENGR M No A V A A I GENHT S No A A A A I GENOS M No A V V A I GENS LR No A A A A I GE[...]

  • Page 14

    Chapter 2. ANSI Emulation GEK-00029B 14 CONTR OL C ODE DE FI NITI ONS BEL Bell (07H): Receipt of a BEL c ode ca uses th e beeper t o sound for appro ximately 1/2 s econd af ter any precedi ng pr int able dat a has been process ed. BS Back Space (08H) : Line terminato r. The pa per po sition rema ins unchang ed an d the pri nt po sition i s mov ed l[...]

  • Page 15

    GEK-00029B 5000 Seri es Programmer’s Manual 15 FF Form Fe ed (0CH): Line termina tor. The paper is a dvanced to the next top-of- form position. When the E VFU is en abled and pr ogramm ed, paper will advance to the next stop in channel 1. HT Horizontal Tab (09H): Advance s the p rint positio n to the ne xt horizontal tab lo cation. I f no tabs ar[...]

  • Page 16

    Chapter 2. ANSI Emulation GEK-00029B 16 ESCAPE SEQUENCE DIRECTORY Seq uen ce Meaning Page CSI or ESC [ Contr ol Sequ ence In trodu cer 19 CSI p1 p2 SP ~ GENEMU: Selects emul ation 21 ESC [p 1 ; p2 SP B GSM: Modi fies v erti cal (p1) an d hori zont al (p 2) character size 31 ESC [p 1 ; p2 SP G SPI: Sets lpi (p1) an d/or cpi ( p2) in decip oint s 32 [...]

  • Page 17

    GEK-00029B 5000 Seri es Programmer’s Manual 17 Seq uen ce Meaning Page ESC [ p1;… pn u GENHTS: Sets horizontal tabs (p1 , etc.) in decipoints or col umns 30 ESC [ p1 ;… p12;v GENVT S: Sets vertic al tab s (p1, etc .) in decipo ints or lines 30 ESC [ p1 x GENSNC: Selects internat ional charact er sets 22 ESC [ p1 ; ...; p10 } Selects bar code [...]

  • Page 18

    Chapter 2. ANSI Emulation GEK-00029B 18 ANSI ESCAPE SEQUENCE CATEGORIES The ANSI esca pe sequenc es have been se parate d accor ding to functionality. Spe cial areas of interest, such as graphics an d the electronic ver tical format unit (EVFU), have been d escribe d in separate sect ions. The f unctional gr oups are: ▪ Housekee ping ▪ Paper an[...]

  • Page 19

    GEK-00029B 5000 Seri es Programmer’s Manual 19 Housekeeping Sequences ESC [ CSI (Con trol Sequen ce Intr oducer ): T his seque nce i s used to b egi n sequences, that generally have multiple parameters. ESC ] OSC ( Operatin g System Comman d): This is an other special sequence int roducer. Sequences which begin with OSC r equire th e ST string te[...]

  • Page 20

    Chapter 2. ANSI Emulation GEK-00029B 20 ESC Q GENTST (Self-Test): This sequen ce is ignored. Decima l: 27 102 or 12 0 Hex: 1B 5C or 9C BASIC: CHR $( 27);" Q";[...]

  • Page 21

    GEK-00029B 5000 Seri es Programmer’s Manual 21 CSI p1 p2 SP ~ GENEM U (Emu lati on Con trol): Switches the contro l of the p rinter to another em ulation. Th e paramet ers in the seq uence are def ined a s follows: p1 Emulation identi fier. This p arameter sel ects th e particular emulation by a reference number supplied by GEN ICOM engineering. [...]

  • Page 22

    Chapter 2. ANSI Emulation GEK-00029B 22 Character Set Selection ESC [ p1 x G ENSNC (S elec t Nati onal Cha racter s): This sequ ence select s the nationa l charac ter sub stitutio n if the cu rrently sel ected c haracte r style sup ports it. T he follo wing values may be u sed for p1 . p1 Count ry Map or Charact er Set 0 USA (ISO) 1 German (ISO) 2 [...]

  • Page 23

    GEK-00029B 5000 Seri es Programmer’s Manual 23 p1 Count ry Map or Charact er Set 8593 I SO 8859 -3 Lati n Alph abet #3 8594 I SO 8859 -4 Lati n Alph abet #4 8595 ISO 8859-5 Latin/Cyrillic 8596 I SO 8859 -6 Lati n/Ar abi c 8597 I SO 8859 -7 Latin /Gr eek 8598 I SO 8859 -8 Latin /He brew 8599 I SO 8859 -9 Lati n Alph abet #5 Character Map Load OSC [...]

  • Page 24

    Chapter 2. ANSI Emulation GEK-00029B 24 p5 Reserved. This param eter is marke d by inserting a semic olon (;) in the command sequence. p6 A literal str ing indicating th e GENSNC s elect paramet er of an existin g char act er map (s uch a s 437 or 850) to be us ed as a base in which su bstitut ions f rom this com mand seq uence may be m ade. Th is [...]

  • Page 25

    GEK-00029B 5000 Seri es Programmer’s Manual 25 Paper and Print Position Movements ESC K PLD (Parti al Line Down): Line terminator. Moves the print line down 3/72 inch fo r subscript printing. Also returns to the o riginal line following a part ial line up (<ESC> L - superscr ipt) sequ ence. See note below. Decimal : 27 75 Hex: 1B 4B BASIC: [...]

  • Page 26

    Chapter 2. ANSI Emulation GEK-00029B 26 ESC [ p1 d VPA (Vertical P ositio n Absolut e): Line terminator. Se ts the ver tical positio n to the value spec ified b y <p1>, moving p aper fo rward or backwar d to the new po sition. The distance sp ecified by th e <p1> param eter i s in deci points. Thi s comman d can be used t o print inside[...]

  • Page 27

    GEK-00029B 5000 Seri es Programmer’s Manual 27 ESC [ p1 k VPB ( Vertical P osition B ackwar ds): Line terminator. Mo ves the paper in r everse by th e distance specif ied by p1. Valu es can be sent as dec ipoints. T he paper po sitio n is set to the top margin if the p 1 value excee ds the mar gin. A V PB with a p 1 value of 5 decipoint s or less[...]

  • Page 28

    Chapter 2. ANSI Emulation GEK-00029B 28 Margins and Tabs ESC H HTS (Hori zontal Tab Set): Sets a tab at the c urrent p rint positio n and upd ates a ny existing ho rizontal ta b tab le. A tota l of 22 ta bs can be set. If this number is ex ceeded, the leftmost 22 tabs will be retained . Decimal : 27 72 Hex: 1B 48 BASIC: CHR $( 27);" H"; E[...]

  • Page 29

    GEK-00029B 5000 Seri es Programmer’s Manual 29 Seq uen ce Explanati on ESC [ r Default values of 11-inch form length, zero to p and bo ttom margins. ESC [ 82 80 r 11.5-i nch for m leng th, defaul t top an d bottom margins of zero ESC [ ; 720 r Default l engt h of 11 in ches, top mar gin of 1-inch . Default bo ttom m argin of zero . ESC [ ; ; 720 [...]

  • Page 30

    Chapter 2. ANSI Emulation GEK-00029B 30 ESC [ p1 ; ... p22 ; u GENHTS ( Multiple Horizont al Tab S et): Sets up to 22 horizontal tabs. The p para meter s are set in decip oints. If mor e than 22 tabs are set , the highest numbered t abs (fart hest right) will be pu shed out of the tab table. Tabs set in front o f the left margin, or b eyond the rig[...]

  • Page 31

    GEK-00029B 5000 Seri es Programmer’s Manual 31 Font Handling and Enhancements ESC [ p1; p2 SP B GSM (Graphic Size M odification): This se quence mo difies the vert ical <p1> and hor izont al <p2> si ze of expan ded an d oversi ze characters. W hen using expan ded chara cters, the cur rently selecte d font style is use d. Oversize us e[...]

  • Page 32

    Chapter 2. ANSI Emulation GEK-00029B 32 ESC [ p1 ; p2 SP G SPI (Spacing Increme nt): This sequenc e is used to s et line spacing (p1) an d chara cter spa cing or pitc h (p2). If the para meter i s missing or zero, th e spacing remains un changed. I n the nat ive mode, p1 can range from 1 t o 17,820 decipoint s (24 inches). The printabl e area (betw[...]

  • Page 33

    GEK-00029B 5000 Seri es Programmer’s Manual 33 ESC [ p1 ; p ... m (continu ed) *A do wnload fo nt (if load ed) override s any o ther font. Se e Charac ter Map Loa d on page 23. Examples: For Gothic NLQ font u nderlined send: ESC [ 4 ; 13 m To cancel underlining and retain Gothic NLQ - send one of the following: ESC [ ; 13 m ESC [ 0 ; 13 m ESC [ 0[...]

  • Page 34

    Chapter 2. ANSI Emulation GEK-00029B 34 ESC [ p1; ... pn h SM (Set Mode): Sets the mo de or mo des spe cifie d by th e param eters listed b elow. P aramet ers pr ecede d by the 'g reater than' si gn are privat ely defined mo des and sh ould b e sent separ ately. Parameter Number Mode Mnemonic Mode Functi on 20 LNM Line Feed New Line Mode [...]

  • Page 35

    GEK-00029B 5000 Seri es Programmer’s Manual 35 ESC ] 5 BFL (Be gin F ont Lo ad): This seq uence is n ot honored w hen self-test determines that the do wnload font op tion is not installed. Pe rmits downloa ding of customer -defined font character s into printer nonvola tile memory fro m the ho st. Loading is terminated when an ESC sequence is r[...]

  • Page 36

    Chapter 2. ANSI Emulation GEK-00029B 36 GRAPHICS The ANSI emul ation graphi cs mode prov ides both horizontal an d vert ical dot plotting met hods. Th ese met hods enable th e printing of ASCII char acters in their binary code form. Since each charact er has a unique p att ern of 1s an d 0s (d ots an d voids) t hat ma ke up its binary code, the cor[...]

  • Page 37

    GEK-00029B 5000 Seri es Programmer’s Manual 37 This c hart sho ws the do t patterns for the A SCII c haracte rs nee ded to cover all dot/void combinations. O ther valid characters (although they are r epeat patter ns of th e characters in t he chart) are 20H-3F H. Charac ter Va lue Dots Chara cter Va lu e Dots @4 0 H 000000 ’6 0 H 00000X A4 1 H[...]

  • Page 38

    Chapter 2. ANSI Emulation GEK-00029B 38 Horizontal Format Graphics d ata print ed in horizont al format is co mprised of a str eam of bytes fr om left to r ight across each dot row. This char t show s that byte 1 (or characte r 1) in r ow 1 pr ints i ts six bits fro m left to right in a single dot ro w. The nex t byte (b yte 2) prints its six bits,[...]

  • Page 39

    GEK-00029B 5000 Seri es Programmer’s Manual 39 Eight-Bit Graphics Horizontal Format Graphics d ata print ed in horizont al format is co mprised of a str eam of bytes fr om left to r ight across each dot row. This char t show s that byte 1 (or characte r 1) in r ow 1 pr ints i ts eight bits fro m left to right in a single dot ro w. The nex t byte [...]

  • Page 40

    Chapter 2. ANSI Emulation GEK-00029B 40 Other Graphics Considerations In horizonta l forma t, an LF c auses the pap er to a dvance o ne or two dot rows base d on t he ver tical dot densit y, re gardle ss of wh ether 6-bit or 8-bit graphics has be en selected. In vertic al form at, the pa per is adva nced a s the dot ro ws (6 or 8, depen ding on gra[...]

  • Page 41

    GEK-00029B 5000 Seri es Programmer’s Manual 41 ESC [ p1 ; p2 ; p3 q GENGRM – Select G raphic s Mod e: Select s the graphi cs mode, format, and hor izontal or vertical densit y for dot gr aphics. The first parameter sel ects th e graphics mo de: the sec ond par ameter selects the v ertical spacing, and the thir d selects the hori zontal dot spac[...]

  • Page 42

    Chapter 2. ANSI Emulation GEK-00029B 42 ELECTRONIC VERTICAL FORMAT UNIT - EVFU Downline vertical tab loading is accomplished through the EVFU. The EVFU allo ws loading a fo rm table with a m inimum fo rm length of .33 inches (240 decipoints) and a maximum length of 24 inches (17, 280 deci poi nts). Since the maximu m length is 24 inch es, the numb [...]

  • Page 43

    GEK-00029B 5000 Seri es Programmer’s Manual 43 Each "channel control code" pair of b ytes has the capability to indicate multipl e channels since each chann el indication has a unique bit pos ition, which is e ither ON =1 or OFF=0 . TABLE OF CHANNEL CODES Decimal Val ue Binary Val ue ASCII Charac ter 1 2 1 2 1 2 Remarks 64 64 1000000 10[...]

  • Page 44

    Chapter 2. ANSI Emulation GEK-00029B 44 EVFU Default The default EVFU will be generated based on the cu rrent form length and lpi setting und er the following conditio ns: ▪ When the printer is initialized ▪ When either t he forms definiti on or lpi setting is change d ▪ When the star t EVFU load esca pe sequ ence ESC ] is immediat ely follow[...]

  • Page 45

    GEK-00029B 5000 Seri es Programmer’s Manual 45 BASIC Programming Example for Skip to Channel This is a sampl e program show ing the use of the ski p-to-channel comman d. I t makes use of the prev iously loa ded EVFU pr ogram. PROGRAM INSTRUCTION REM ARKS 10 WIDTH “ LPT1:”, 255 Requir ed by s om e BASIC la nguag es to av oid auto LF at co lum [...]

  • Page 46

    Chapter 2. ANSI Emulation GEK-00029B 46 BAR CODES Thirteen diff erent styles of bar codes an d POSTNET are av ailable. Each st yle (ex cept POS TNE T) ca n be rotat ed 9 0, 180, or 27 0 degre es and prin ted w ith or wit hout a human -re adabl e line (HR L). Th e bar code symb ol size and den sity are also a djusta ble. Entering and Exiting Bar Cod[...]

  • Page 47

    GEK-00029B 5000 Seri es Programmer’s Manual 47 SI LPRI NT CHR$( 15); Deacti vat es bar code s and all ows pr intin g of nor mal text . ESC [ 0 t LPRI NT CHR$( 27); "[0t "; Deselects bar codes. When an ESC [ 0 t is receiv ed bef ore the SI code, bar cod es are both deacti vat ed and des electe d. Setting Bar Code Parameters Select the st[...]

  • Page 48

    Chapter 2. ANSI Emulation GEK-00029B 48 Bar Code Dimensions p2 Bar code h eight i n 1/12 -inch i ncrem ents Minimum: 1=l/12 inch Maxim um: 120= 10 inch es Defaul t: 9=9/ 12 in ch (3 / 4 in ch) Human-readable line is not included in height. p3 Human-re adable line 0=Do not p rint human-readable line 1=Print human-readable line (default) p4 Narrow ba[...]

  • Page 49

    GEK-00029B 5000 Seri es Programmer’s Manual 49 p9 Bar cod e rotation and human-readable line (HRL) font style (if used). 0 No rotation - use c urrently select ed font style, cpi, and lpi. This is the de fault setting. 1 No rotation - use specia l HRL font. 2 90-degree r otation use s pecial HRL font 3 180-degree rotat ion use sp ecial FIRL font. [...]

  • Page 50

    Chapter 2. ANSI Emulation GEK-00029B 50 Default Bar Code Characteristics p1=4 Code 39 p2=9 3/4 inch height p3=1 Human-r eada ble line print ed p4=2 Narrow bar w idth 1/60 in ch p5=6 Wide bar widt h 1/20 i nch p6=2 Narrow s pace w idth 1/ 60 inch p7=6 Wide spac e widt h 1/ 20 inch p8=2 I nterchar acter space wi dth 1/60 inch p9=0 No r otation, use c[...]

  • Page 51

    GEK-00029B 5000 Seri es Programmer’s Manual 51 Bar Code Readability Statement The following informatio n is provided to ensure that the best resu lts are obtain ed from y our pr inted bar codes. Use bar cod e readers de signed to operate in t he visible light frequency range. Optiona l infrared-r eadable r ibbon car tridges are available. Use bar[...]

  • Page 52

    Chapter 2. ANSI Emulation GEK-00029B 52 Bar Code Program Examples The following pr ogram exa mples ar e prov ided to hel p you beco me familiar with the bar cod e escape sequences. The programs are written in BASIC and p rinted using the LUST command. All bar codes are a ctual size. Test Program This is t he minim um code n eede d to prin t a bar c[...]

  • Page 53

    GEK-00029B 5000 Seri es Programmer’s Manual 53 Changing Parameters This example ch anges the st yle p1, height p2, an d the HRL f ont p9 of the bar co de. Notice t hat semic olons are use d as place h olders for the param eters n ot being chang ed. Line 10 - chan ges st yle to C ode 128, chang es height to 1/ 4" (3/ 12"). and use the sp[...]

  • Page 54

    Chapter 2. ANSI Emulation GEK-00029B 54 Horizontal Spacing Use horizontal t abs for sp acing bar code sym bols acr oss the page. Line 10 sets ho rizontal tab s at 14 40 and 28 80 dec ipoints (2 a nd 4-inches). The HT co des in lines 40 an d 60 caus e a jump to th e next tab. 10 LPR INT CHR$( 27); "[14 40;2 880; u"; 20 LPR INT CHR$( 27); &[...]

  • Page 55

    GEK-00029B 5000 Seri es Programmer’s Manual 55 Printer Option Strap 11, Group 2 IN Print er cont rol str ap 11 is u sed f or posi tionin g the pa per af ter print ing a bar code. St rap 11 I N sets th e paper t o the t op of the bar code aft er prin ting ; Str ap 11 OU T leaves t he paper positi on as is af ter prin ting a bar co de. (See Ap pend[...]

  • Page 56

    Chapter 2. ANSI Emulation GEK-00029B 56 EXAMPLE 3: Strap 11 OUT with no suppression of LF/CR on line 30 10 LPR INT CHR$( 27); " [3t" ; 20 LP RINT "123 4567890 "; 30 LPR INT CHR$( 27); "[0t " 40 LPR INT "S TRA P 11 OU T"[...]

  • Page 57

    GEK-00029B 5000 Seri es Programmer’s Manual 57 Vertical Bar Codes ▪ Line 10 s ets par amet er p9 f or 90-d egre e rot ation usin g th e special font for the HRL. ▪ Line 20 tur ns on the bar co de mo de. ▪ Line 30 is t he dat a to be prin te d as a bar co de symb ol. ▪ Line 40 tur ns of f th e bar code mo de. 10 LPRIN T CH R$(27); "[;[...]

  • Page 58

    Chapter 2. ANSI Emulation GEK-00029B 58 COMMAS: Without HRL 10 LPR INT CHR $( 27); " [;; 0}"; 20 LPR INT CHR$( 27); " [3t" ; 30 LP RINT "123 4,5678 ,9012 "; 40 LPR INT CHR$( 27); "[0t " SPACES: With HRL 10 LPR INT CHR $( 27);" [;; 1}"; 20 LPR INT CHR$( 27); " [3t" ; 30 LPR INT " 1234 [...]

  • Page 59

    GEK-00029B 5000 Seri es Programmer’s Manual 59 Horizontal Tabs ▪ Line 10 s ets hori zontal t ab st ops at 108 0 and 2 160 deci poin ts (1. 5 and 3 in ches). ▪ Lines 40 and 60 are I TT code s that cause a jum p to the next t ab stop. Line 90 i s a line of text to show p ositi onin g on th e paper. The ver tical separatio n betwee n the bar co [...]

  • Page 60

    Chapter 2. ANSI Emulation GEK-00029B 60 OVERSIZE CHARACTER FONT The oversize f ont is compose d of special block-style chara cters t hat can be expan ded 156 ti mes the size of standard font s. This will produc e letters up to 15 .25-inc hes (388m m) high by 13 inches (330m m) wide. Oversi ze char acters can be rot ate d 90, 18 0, or 2 70 degrees. [...]

  • Page 61

    GEK-00029B 5000 Seri es Programmer’s Manual 61 Selecting Size ESC [p1;p2 B is t he sequen ce used to set the ver tical (p1) and horizontal (p 2) size of t he oversize char acters. A p1 value of 300 would incr ease the v ertical size of the char acter 300% or 3 t imes. The last two digit s of each par ameter are nec essary t o comply with the ANSI[...]

  • Page 62

    Chapter 2. ANSI Emulation GEK-00029B 62 Sample Programs Example 1 The first example sh ows the c ode used t o print oversize. Line 10 sets the size to X3 vertical (V) and X3 horizontal (H ). Line 20 enters over size printing wit h no rotation. Line 30 is the data to be printed. Line 4 0 exits ov ersize printing. Line 50 returns t he size param eter[...]

  • Page 63

    GEK-00029B 5000 Seri es Programmer’s Manual 63 Example 3: Showing the Importance of Resetting Scaling Factors If line 50, which sets th e size to X1 V and X1 H. is r emoved, t he data print ed in li ne 60 is n ow subj ect to t he expan ded mo de of pr int ing. Notice (below) that the 1234 printed line is expanded vertically by X3 10 LPR INT CHR$([...]

  • Page 64

    Chapter 2. ANSI Emulation GEK-00029B 64 Printer Control Strap GenPrtOpts/Group 2/Strap 13 This pri nter contr ol strap i s us ed for p ositi oning the pa per aft er printing ov ersize character s. When th is strap is set t o IN, the paper is positione d at the t op of the over size charact er after printing; when set to OUT , the pape r position re[...]

  • Page 65

    GEK-00029B 5000 Seri es Programmer’s Manual 65 Example 4: GenPtrOpts | Group 2 Strap 13 IN The oversize ch aracter s and th e first line of normal print ing are aligned at the fi rst print line. The second line of nor mal print ing (Text Text Te xt . . .) st arted pr inti ng one l ine below S trap 13 IN an d overpr ints th e oversized t ext. 100 [...]

  • Page 66

    Chapter 3. Printroni x P300/P600 Emulation GEK-00029B 66 CHAPTER 3. PRINTRONIX P300/P600 EM UL ATION INTROD UCTION This pr inte r is pl ug-c ompat ible w ith the Pr intr onix 30 0/60 0 fami ly of line printers. It accepts and acts upon all control codes utilized by this family of printers in a manner that is as functionally equivalent as possible. [...]

  • Page 67

    GEK-00029B 5000 Seri es Programmer’s Manual 67 DC3 Busy/Select (13H): A receiv ed DC3 can be us ed to rem otely desel ect the printer in both serial and p arallel interfaces. A serial int erface protoc ol ca n be used to tra nsmit a DC 3 cod e to info rm the ho st of a busy condit ion. DEL Delete (7F H): In graphics mode, the delete c harac ter i[...]

  • Page 68

    Chapter 3. Printroni x P300/P600 Emulation GEK-00029B 68 SI Shift In (0FH): An SI code anywhere in the line ca uses the r emainder of the line and all follo wing lines to be printed in the stand ard font. SO Shift Out (0EH). An SO code anyw here in the line causes th e remainder of the line of the line and all subsequent lines (until an SI code is [...]

  • Page 69

    GEK-00029B 5000 Seri es Programmer’s Manual 69 PRINTRONIX GRAPHICS The Printroni x emulation gr aphics mo de prov ides a hori zontal dot placeme nt plotting method . This method enab les the printing o f ASCH charact ers in their binar y code form. Since each ch aracter has a unique p att ern of 1s an d 0s (d ots an d voids) t hat ma ke up its bi[...]

  • Page 70

    Chapter 3. Printroni x P300/P600 Emulation GEK-00029B 70 Dot Patterns This chart show s the dot p atter ns for the ASCI I char acters neede d to cover a ll dot/vo i d comb inations. Chara cters fro m 20H to 3FH p rovide the sam e patterns as cha racters 60H throu gh 7FH . Characte rs from 00H through 1FH, which are not reco gnized as line terminato[...]

  • Page 71

    GEK-00029B 5000 Seri es Programmer’s Manual 71 Each line to be printe d as graphics m ust have one of the thr ee graphic contr ol codes (ENQ, EOT, DLE) in the line of data. The ENQ and EOT codes can be place d anywhere in the line of dat a. When used, th e DLE code must always be placed aft er the ENQ c ode. The following den sities are av ailabl[...]

  • Page 72

    Chapter 3. Printroni x P300/P600 Emulation GEK-00029B 72 P300/600 ELECTRONIC VERTICAL FORMAT UNIT The electronic vertical format u nit (EVFU) is used to download vert ical tabs to the pr inter. It allows jumps to pres elected lines on the form thro ugh vertic al mo ves o f the pape r. The maximum form length is 22 inches (17 6 lines at 8 lpi). Usin[...]

  • Page 73

    GEK-00029B 5000 Seri es Programmer’s Manual 73 PI Lead Codes – Use with Serial Interface The PI lead is not used in the par allel int erface. To use the PI lead with t he serial interf ace, 8-bit codes m ust be sent. Data L ines Channe l numbe r or Command PI 7654321 Channe l Decimal Numbe r ASC II 1 X X 00000 1 T O F 1 2 8 N U L 1 X X 00001 2 [...]

  • Page 74

    Chapter 3. Printroni x P300/P600 Emulation GEK-00029B 74 Example EVFU Loading Program ▪ Using st andar d CENTR ONI CS parall el in terf ace with 36-pin conne ctor an d P Ser ies pr otocol . ▪ Using the cha nnel code c hart without the PI lea d. ▪ This program lo ads the EVFU t able with channel st ops at lines 6, 25, 57, and 66. ▪ Set the p[...]

  • Page 75

    GEK-00029B 5000 Seri es Programmer’s Manual 75 Example Form Printout This example uses t he VFU table cre ated in th e previous e xample. Sample Program to Print Form The foll owin g sampl e prog ram uses t he EVFU pr ogra m fr om the pr ior exampl e. Program In struct ion Remar ks 10 W IDTH “ LPT1:”; 255 Required by so me BASI C languages to[...]

  • Page 76

    Chapter 4. Printroni x P Series Emulation GEK-00029B 76 CHAPTER 4. PRINTRONIX P-SERIES EMULATION SPECIA L FU NCTI ON CO NTROL CHARA CTER (SF CC) When a printer control code c onsists of mor e than on e character, it is called a comman d or esca pe sequ ence. This em ulation use s a Special Functi on C ontrol Cha racter (SF CC) as the f irst char ac[...]

  • Page 77

    GEK-00029B 5000 Seri es Programmer’s Manual 77 Set and Reset Codes Some pr int at tri butes are set an d res et (tur ned ON an d OFF ) by usi ng an SFCC comman d sequence an d the nu mbers one( 1) or zero( 0). These num bers may be in th e form of hexad ecimal co de 01H an d 00H, or the ASCII code f or the print able symb ols of decim al 1 and 0 [...]

  • Page 78

    Chapter 4. Printroni x P Series Emulation GEK-00029B 78 COMMA ND INDE X Command Fo rmat Page Vertical Motion Form Feed <FF> 81 Forms Length Set (Inches) <SFCC> INCHES 93 Forms Length Set (Lines) <SFCC> LINES 93 Line Feed <LF> 81 Line Spacing 1/6 Inch (6 lpi) <SFCC> 2 <SFCC> LPI 94 Line Spacing 1/8 Inch (8 lpi) &l[...]

  • Page 79

    GEK-00029B 5000 Seri es Programmer’s Manual 79 Font C ontr ol (co ntinu ed) Font Selection <SFCC> X <SFCC PMODE 89 Superscript /Subscr ipt Printing <SFCC> S 90 Superscript /Subscr ipt Printing Reset <SFC C> T 90 Plot Mode Graphics Plot, Even Do t (High Horizontal De nsity) <EOT> 103 Plot, Odd Do t (Normal Density) <S[...]

  • Page 80

    Chapter 4. Printroni x P Series Emulation GEK-00029B 80 CONTR OL C ODES Backspace Backsp ace <BS> : Moves th e logical print position to the lef t one character sp ace toward t he first char acter column. When configure d from the cont rol panel f or backspa ce, BS mov es the character position on e character space t o the left at the curr en[...]

  • Page 81

    GEK-00029B 5000 Seri es Programmer’s Manual 81 Form Fe ed Fo rm Feed <F F>: Print s the data in th e buffer , advances th e paper positio n to the next top -of-fo rm and mo ves the characte r positio n to the fir st character column. The FF code c ancels all single-lin e only print attribu tes. Forma t <FF> Decimal: 12 Hex: 0C H BASIC[...]

  • Page 82

    Chapter 4. Printroni x P Series Emulation GEK-00029B 82 CHARA CTER SET S, FONT HA NDLING AND ENHANCE MEN TS Characte r Set Selects t he character set, exten ded chara cter set, and the Select intern ational language for a specif ic charact er set. Forma t <SFCC> l xyz x: character set y: internat ional language for the select ed charact er se[...]

  • Page 83

    GEK-00029B 5000 Seri es Programmer’s Manual 83 Characte r Set (con tinued) Select Extended Character Set Sel ect (z) z x 0(30) IBM PC 1(31) 2(32) 3(33) 0(30) CP 850 1 NA NA NA 1(31) 2(32) 3(33) 4(34) 5(35) 6(36) 7(37) 8(38) 9(39) 10(3 A) 11(3 B) 12(3 C) 1 Valid only if x = 0. A ll other values of z are ignored including ‘*’ Indete rminate c o[...]

  • Page 84

    Chapter 4. Printroni x P Series Emulation GEK-00029B 84 Sel ect Inte rna tion al Selects the interna tional cha racter using the paramete r (where the Characte r Set parameter is o ne of the values in the tabl e below).The ultimate charac ter se t selec ted is a functio n of the p aramete r and the currently-act ive code page. Forma t <SFCC> [...]

  • Page 85

    GEK-00029B 5000 Seri es Programmer’s Manual 85 Bold Pri nt OFF Deselect s Bol d Print mode. Forma t <SFCC> H Decimal: <SFCC> 72 Hex: <SFCC> 48 BASIC: CHR $(< SFC C>); ”H”; Indete rminate Co ndition s This sequence resets Bold Print printing only. Other attributes ( doub le wide, e tc) rema in active. Single Line Select[...]

  • Page 86

    Chapter 4. Printroni x P Series Emulation GEK-00029B 86 Emphasized Print Deselects Empha sized Chara cter print mod e. OFF Forma t <SFCC> F Decimal: <SFCC> 70 Hex: <SFCC> 46 BASIC: CHR $(<S FC C>);”F”; Indete rminate Co ndition s This sequence resets Emphasize d printing only. O ther attributes (bold, double wide, etc) r[...]

  • Page 87

    GEK-00029B 5000 Seri es Programmer’s Manual 87 Extended Charac ter Ext ended Char acter Set Ac cess: Accesses t he exten ded ch aracter Set Select set in the range ADH t o FFH hex u sing codes 2 0H to 7F H. Used in 7-bit syst ems as if dat a bit 8 w as set to 1. F or exam ple, sending code 2 0 hex access es the symbol at code point A 0H. If a pri[...]

  • Page 88

    Chapter 4. Printroni x P Series Emulation GEK-00029B 88 Extended Charac ter E xtended C haracter Set C ancel: Can cels the e xtended char acter set Set Cancel as selected by SO, SFCC SO, SFCC n, SFCC 4, and selects the primary Chara cter Set. Used in 7-bit syst ems as if dat a bit 8 w as set to 1. F or exam ple, sending code 2 0 hex access es the s[...]

  • Page 89

    GEK-00029B 5000 Seri es Programmer’s Manual 89 Font S elect Font S electi on: Selects a font (DP , NLQ, or OC R) and character p itch in characters per inch (cpi). Forma t <SFCC> X <m> <n> or <SFCC> P M O D E ; n Decimal: <SFCC> 88 <m> <n> <SFCC> 80 77 79 68 69 3B <n> Hex: <SFCC> 58 (par[...]

  • Page 90

    Chapter 4. Printroni x P Series Emulation GEK-00029B 90 Oversc oring Over scori ng: Enable s or disabl es autom atic over scoring of all characters. Forma t <SFCC> _ <n> Decimal: <SFCC> 95 <n> Hex: <SFCC> 5F <nH> BASIC: CHR $(<S FC C>);”_ <n>”; n = 0 disables aut omatic ov erscoring (he x 00 or he[...]

  • Page 91

    GEK-00029B 5000 Seri es Programmer’s Manual 91 Underli ne Characte r Under lining : Enables or disables a utomat ic und erlining of all characters. Forma t <SFCC> - <n> Decimal: <SFCC> 45 <n> Hex: <SFCC> 2D <nH > BASIC: < CHR$(< SFC C>);”-< n>”; n = 0 disables automatic underlining (hex 00 or[...]

  • Page 92

    Chapter 4. Printroni x P Series Emulation GEK-00029B 92 HOUSEKEEPING COMMANDS Prin t Control Co des Forces t he hex codes 8 0H to 9F H to bec ome printable sy mbols in t he currently select ed charact er set. Cancel s the exe cutable c ontrol code operatio n activate d by the SF CC 7. Forma t <SFCC> 6 Decimal: <SFCC> 6 Hex : <SFC C&g[...]

  • Page 93

    GEK-00029B 5000 Seri es Programmer’s Manual 93 Set Forms Leng th Set Form Length (Inches ) In Inches Forma t <SFCC> I N C H E S ; <n> ; <f> Decima l: <SFCC> 73 77 67 72 69 83 59 <n> 59 <f> Hex : <SFCC> 49 4E 43 48 45 53 3B <nH> 3B <fH > BASIC: C HR$(<SFCC>):”INCHES<n>;<f>?[...]

  • Page 94

    Chapter 4. Printroni x P Series Emulation GEK-00029B 94 Set Line Spa cing Sets line spacing to 6 lpi or as set by (1/6 Inch ) SFCC A. Formats <SFCC> L P I ; n or <SFC C> A n foll owed by <SFCC> 2 Details Using the SFCC L PI ; n command, t he value of n can be 6 or 8 only. If n = 6, this command sets line spacing to 1/6 inch. Value[...]

  • Page 95

    GEK-00029B 5000 Seri es Programmer’s Manual 95 Set Line Spa cing Ther e are two f ormats for t his (1/8 Inch ) com man d. The SFCC 0 co mmand specif ies contin uous line spa cing at 1/8-inch increments (8 lpi). In the SFCC LPI ; n co mmand , the valu e of n ca n be 6 o r 8 only. If n = 8, this comman d sets line spacing t o 1/8 inch. Valu es of n[...]

  • Page 96

    Chapter 4. Printroni x P Series Emulation GEK-00029B 96 Set Line Spa cing Specif ies the line spa cing at 7/72-inch 7/72 Inch (10.3 lpi) increments. Forma t <SFCC> 1 Decimal: <SFCC> 1 Hex: <SFCC> 31 BASIC: CHR $(< SFC C>); ”1”; Details When the 7/72-inch line spacing control code is received, all lines print at the 7/72-[...]

  • Page 97

    GEK-00029B 5000 Seri es Programmer’s Manual 97 Set Line Spa cing Specif ies the line spa cing at n/216 n/216 Inch inch increments. Forma t <SFCC> 3 <n> Decimal: <SFCC> 3 <n> Hex: <SFCC> 33 <nH > BASIC: CHR $(< SFC C>); ”3<n> ” n = 1 t o 255 When the n/216 inch line spacing control code is receiv[...]

  • Page 98

    Chapter 4. Printroni x P Series Emulation GEK-00029B 98 PLOT MODE GRAPHICS OPERA TIONAL DESCRIPTION Plot Density Plot density refers to the nu mber of do ts per inch (dpi) printed in a single dot row. Two types of plot density are available in this emulation: ▪ Normal densi ty plot mode ▪ Double density plot mode Normal Density Plot Mode ▪ Se[...]

  • Page 99

    GEK-00029B 5000 Seri es Programmer’s Manual 99 Plot Data Line Format 1. The pl ot mo de cont rol c ode: eit her 05 h ex (or “SFCC e ”) for n ormal density, o r 04 hex (or “SFCC d” ) combined with 05 hex for doub le densit y plot tin g. 2. The d ata byt es to be pl ott ed. 3. The li ne ter minat or 0A h ex or 0 C hex. With print width set [...]

  • Page 100

    Chapter 4. Printroni x P Series Emulation GEK-00029B 100 Double Density Plot Mode Format 1. Sen d the ev en dot pl ot cont rol c ode EO T (04 h ex) or contr ol sequenc e “SF CC d”, f ollowed by a lin e of data. 2. Send a line term inator, which c auses the p rinter to p lot the contents of t he buff er. The pa per does not advance in double den[...]

  • Page 101

    GEK-00029B 5000 Seri es Programmer’s Manual 101 Plot Mode Graphic Character Chart Char Hex Value Dots Char Hex Value Dots Char Hex Value Dots spac e 20 ooooox @ 40 oooooo ` 60 ooooox ! 21 xooo ox A 41 xooooo a 61 xoooox “ 22 oxooox B 42 oxoooo b 62 oxooox # 23 x xooox C 43 xxoooo c 63 xxooox $ 24 ooxo ox D 44 ooxooo d 64 ooxoox % 25 xoxoox E 45[...]

  • Page 102

    Chapter 4. Printroni x P Series Emulation GEK-00029B 102 PLOT MODE GRAPHICS DENS ITY COMMANDS High Hori zont al Prints do ts at the e ven Density Gr aphics numbered dot col umns. Forma ts <EOT> or <SFCC> d Decimal: <EOT> or <SFCC> 100 Hex : 04 or <SFCC> 64 BASIC: CHR $(< SFC C>); ”d”; The e ven dot pl ot code[...]

  • Page 103

    GEK-00029B 5000 Seri es Programmer’s Manual 103 Single Li ne, Hi gh (G enicom P rivate Co mmand): Used in form ing a line o f pl ot mod e Horizontal Density graphics, this code specifi es a single line of data to be plotted at a dot horiz ontal density of 120 DPI . The EOT (pl ot mode code) should precede the NAK. See the discussion in this chapt[...]

  • Page 104

    Chapter 4. Printroni x P Series Emulation GEK-00029B 104 DIFFERENCES FROM TARGET PRINTER E MULATION Discarded Commands The following co mmands fr om the targ et printer are parsed by t he curren t P-Seri es em ulation and th en dis carded: Select Extended Character Set (SFCC OSET;n) The fonts req uired for this co mmand were not available on t he P[...]

  • Page 105

    GEK-00029B 5000 Seri es Programmer’s Manual 105 COMMA ND LINE DE BUG The Genicom P-Seri es emulati on does not contain t he command line debugg er f unction for det ecti ng and di spla ying er ror i n Comman d Line Sequences.[...]

  • Page 106

    Chapter 4. Printroni x P Series Emulation GEK-00029B 106 FONT STYLES, PITCHES, AND CHARACTER SETS Font Styles The emulati on uses th e DP font instead of the t hree (3) High Speed fonts. Font Pitches Quality Emulati on Target DP 60 x 7 2 120 x 72 High S peed 60 x 7 2 120 x 48 NLQ 120 x 144 180 x 96 OCR 120 x 144 1 20 x 144 Character Sets Set No. Em[...]

  • Page 107

    GEK-00029B 5000 Seri es Programmer’s Manual 107 Plot Mode Graphic Densities The target pr inter default s the graphi c density t o certain values b ased on the font selection: ▪ DP: 60 dpi horizontally, 7 2 dpi vertically ▪ NLQ: 90 dp i horizontally, 96 dpi vertically ▪ HS: 60 dp i horizontally, 48 dp i vertically The 50 00 ser ies prin ter[...]

  • Page 108

    Chapter 5. Proprinter Emul ation GEK-00029B 108 CHAPTER 5. PROPRINTER EMULATION INTROD UCTION The IBM Pr oprinter II I XL emulation Is select ed through t he control panel. Pr int er opt ion str aps Pr opri nter Ta ble (A ppen dix D) r epla ce the applicable swit ches use d on a Propr inter. Although e very effort has been m ade to mak e this print[...]

  • Page 109

    GEK-00029B 5000 Seri es Programmer’s Manual 109 CR Carriag e Re turn: CR m oves the cur rent print position to t he left margin. If a uto LF on CR is set, either b y Emula tion Settings menu option or by command (ESC 5), then a line feed will also be executed. Decimal: 13 Hex: 0D BASIC: CHR $( 13); DC1 Device Code 1: Select printer (parallel inte[...]

  • Page 110

    Chapter 5. Proprinter Emul ation GEK-00029B 110 HT Hori zontal Tab: Adva nces the p rint positio n to the next ho rizontal tab sto p. If ther e are no tab st ops betwe en the pr int positi on and the right mar gin, the HT is ignore d. Tab sto ps are set by th e command ESC D. Default tabs are s et every eight columns, beginning at column 9. Decimal[...]

  • Page 111

    GEK-00029B 5000 Seri es Programmer’s Manual 111 COMMA ND DIRE CT ORY Seq uence Meaning Page ESC A n Set text line spacing to n/72 inch 114 ESC B n1…n64 0 Set ver tical tabs by line number s 115 ESC C n Set form length in lines 115 ESC C 0 m Set form length in inc hes 115 ESC D n1…n28 0 Set ho rizontal tab stop s in columns 115 ESC E Star t em[...]

  • Page 112

    Chapter 5. Proprinter Emul ation GEK-00029B 112 ESCAPE SEQUENCES ESC - n Undersc ore: When underscoring is enabled, all printable characters and all space charact ers. incl uding leading spa ce character s. are underlined. Lea ding white space preceding a hori zontal tab sto p is not underlined. Not r ecommen ded for use wit h line draw charact ers[...]

  • Page 113

    GEK-00029B 5000 Seri es Programmer’s Manual 113 ESC [T n1 n2 ml Select Code Page : Sel ects internat ional charact er sets. The m2 m3 m4 m5 default is IBM PC Multilingu al Set 2. n1: Alwa ys 5 (The number of m param eters used .) n2: Always 0 ml, m2, and m 5 are always zero. m3 - See chart bel ow. m4 - See chart bel ow. m3 m4 Internationa l Chara[...]

  • Page 114

    Chapter 5. Proprinter Emul ation GEK-00029B 114 ESC 3 n Set Gr aphics Line S pacing: S ets the line spa cing to n units of 1/ 216 inch. This allows for line spacing in .0 046 inch increments to 1 .18 inches (255/21 6). The value of n/216 is r ounde d up to th e next 1/144 inc h. n = 1 throu gh 255 Example: ESC 3 27 Sets the line spacing to 1/8 inch[...]

  • Page 115

    GEK-00029B 5000 Seri es Programmer’s Manual 115 ESC B n1 ... n64 0 Set Ve rtical Tab S tops: T his sequenc e sets up t o 64 vert ical tabs by line number. The t abs must be in ascending or der and t he sequen ce must end w ith a NUL. ESC B NUL clear s all tab stops. These ta bs are stored a s absolute v alues, s o they are not af fected by change[...]

  • Page 116

    Chapter 5. Proprinter Emul ation GEK-00029B 116 ESC H Stop Double-Strike Print Decimal : 27 72 Hex: 1B 48 BASIC: CHR $( 27);" H"; ESC I n Select Print M ode n = 0 selects Draft Resident, USA n = 1 selects Draft 12 CPI (Fast) Resid ent, USA n = 2 selects NLQ Resi dent, U SA n = 3 selects NLQ H ( Couri er) Resident , USA n = 4 selects Draft[...]

  • Page 117

    GEK-00029B 5000 Seri es Programmer’s Manual 117 ESC P n Selec t Prop ortional Sp acing If n = odd num ber, propor tion al pr int enable d. If n = even number , propo rtional print disa bled. Decimal : 27 80 <n> Hex: 1B 50 BASIC: CHR $( 27);" P<n> "; ESC Q n Desel ects IB M Prop rinter ( parallel i nterf ace on ly): Stops pri[...]

  • Page 118

    Chapter 5. Proprinter Emul ation GEK-00029B 118 ESC W n Set Double-Wide Print On/Off: Wh en enabled, printable ch aracters are printed t wice their cur rent wi dth. This sequenc e has pr ecedence over t he SO control code. n = 1: doubl ewide i s ena bled n = 0: doubl ewi de is di sable d Decimal : 27 87 <n> Hex: 1B 57 <n> BASIC: CHR $( [...]

  • Page 119

    GEK-00029B 5000 Seri es Programmer’s Manual 119 PROPRINTER DOT GRAPHICS Dot graphi cs allows you t o print individ ual dots at any position on the page. The Proprint er doesn't adjust th e line feed incre ment automatically on entering gr aphics. If you want contiguous v ertical graphics, then yo u must set t he line feed increment t o 8/72 [...]

  • Page 120

    Chapter 5. Proprinter Emul ation GEK-00029B 120 Weig h t Wire Graphics Dot Pa ttern 128 1 !!! !! ! 64 2 !! ! ! 32 3 !! ! 16 4 !! ! 85 !! 46 !! 27 !! 18 !!! 0 0 0 1 12 136 132 130 65 49 65 130 132 136 112 0 0 Programmin g Exampl e The following BASIC program will produce the graphic shown above. 100 WIDT H "LPT1 :",255 110 FOR N = 1 TO 4 1[...]

  • Page 121

    GEK-00029B 5000 Seri es Programmer’s Manual 121 ESC Z n1 n2 v1…v n Quadruple-D ensity G raphics ( Reduced Speed): Sets a density of 240 dpi ho rizontally and 72 dpi vertically. If horizontally adjacent dots are spec ified, the n the seco nd do t is not p rinted. Decimal: 27 90 <n1> <n2> <v1>...<vn> Hex: 1B 5A <n 1>[...]

  • Page 122

    Chapter 6. Epson FX286-E Emulation GEK-00029A 122 CHAPTER 6. EPSON FX286-E EMULATION INTROD UCTION The FX288-e emulation causes the 5000 printers to emulate a 9-wire dot ma trix printer. Conventions Used in this Chapter In contr ast to ANSI, where an ar gument is express ed as an AS CII decimal integer , Escape c ontrol sequen ces take bin ary argu[...]

  • Page 123

    GEK-00029A 5000 Seri es Programmer’s Manual 123 Print Mode Combinations The chart bel ow show s those pr int modes t hat can be us ed tog ether and those t hat cannot. When an FX-286e c ommand is rec eived to turn on two p rint modes that are incompatible, one of them will take preceden ce over the other one. This Is indic ated in th e chart bel [...]

  • Page 124

    Chapter 6. Epson FX286-E Emulation GEK-00029A 124 FUNCTION AL DIFFERENCES The following is a list of functional differences between th is printer’s emulation an d the FX-28 6e print er. ▪ The maximum line length is 13.6 inches (13 6 columns at 10cpi, 816 graphics columns per line at 60 dp i). ▪ Special enhanced print mod es are not availa ble[...]

  • Page 125

    GEK-00029A 5000 Seri es Programmer’s Manual 125 ADDITIONAL ESCAPE SEQUENCES The following esc ape sequen ces are s uppor ted by t his emulation, but are not par t of th e FX-286e com mand set : ESC ( t Assign a cod e page to one of four varia bles (0, 1, 2, or 3) ESC ( T As sign a cod e page to variab le "1" ESC j n Rev erse n/216 pap e[...]

  • Page 126

    Chapter 6. Epson FX286-E Emulation GEK-00029A 126 FX-286E CON TROL CODES BEL Bell (07H): Sounds th e bee per. BS Backspace ( 08H): Flushes all pr int data and th en moves t he print position on e character width t o the left base d on the c urrent character sp acing. If t his code is received im mediately af ter graphic print ing, the pr int posi t[...]

  • Page 127

    GEK-00029A 5000 Seri es Programmer’s Manual 127 HT Hori zontal Tab (09H): I f th ere are tabs set, t his code ends t he curren t prin t buff er and ca uses i ts conten ts to be print ed. The horizonta l print pos ition moves right to the nex t horizonta l tab s top positio n. Any ta b that ca uses the c urrent p rint po sition to exceed the right[...]

  • Page 128

    Chapter 6. Epson FX286-E Emulation GEK-00029A 128 VT Vertical Tab (0BH): Ends the cur rent print buffe r and c ause s its conten ts to be p rinted. A CR functio n is always pe rformed up on receipt of a V T code. Th e VT co de then advanc es the p aper v ertically to the nex t vertica l tab p osition in the channe l selecte d by the ESC / sequence.[...]

  • Page 129

    GEK-00029A 5000 Seri es Programmer’s Manual 129 FX-286E ESCAPE SEQUENCE DIRECTORY Escape Seque nce Definition Page ESC SO Select double-w ide pr int mode 142 ESC SI Select conden sed pr int mode 13 5 ESC SP n Set interchar acter spac e 135 ESC I n Master prin t mo de select 14 5 ESC # Cancel MSB (most significant bit contro l) 149 ESC $ nl n2 Set[...]

  • Page 130

    Chapter 6. Epson FX286-E Emulation GEK-00029A 130 Escape Seque nce Definition Page ESC k n Select font style 144 ESC p n Turn pr op orti onal m ode ON/ OFF 135 ESC s n Turn half-s peed pr int m ode ON/ OFF 14 0 ESC t n Select a code page 147 ESC w n Turn double-high p rinting ON/OFF 143 ESC x n Select NL Q or Dr aft pr inting 14 4 ESC ( t 3 0 m1 m2[...]

  • Page 131

    GEK-00029A 5000 Seri es Programmer’s Manual 131 FX-286E ESCAPE SEQUENCE GROUPINGS The FX-286e esca pe seq uences have b een separat ed accor ding to functionality. Spe cial areas of interest such a s character s pacing, print modes. and graphics hav e separate s ection s. The sequence s are separ ated as f ollows: ▪ Margins ▪ Line Spacing ▪[...]

  • Page 132

    Chapter 6. Epson FX286-E Emulation GEK-00029A 132 MARGINS ESC C n Set Page Le ngth in Lines: Sets the forms length to n lines. Th e value for form length is sto red in inches and will not change when line spacing Is changed. This seq uence reset s the to p of form v alue to the curr ent line positi on and reset s the perfor ation ski p mode. F orm [...]

  • Page 133

    GEK-00029A 5000 Seri es Programmer’s Manual 133 ESC | n Set Left Margin: Sets the left margin to n columns in the cur rent cpi. When pr oport ional mode is in ef fect, t he settings ar e treated as though the y were se t for pic a (10 cp i horizontal). B efore the new margin is set, all print data is flushed. T he minimum space all owed between t[...]

  • Page 134

    Chapter 6. Epson FX286-E Emulation GEK-00029A 134 LINE S PACING ESC 0 Select 1/8-i nch li ne spaci ng (8 lpi): Sets th e line spacing to 1/8-in ch or 8 l pi. Decimal : 27 48 Hex: 1B 30 BASIC: CHR $( 27);" 0"; ESC 1 Select 7/72-I nch Lin e Spaci ng: Sets the line spac ing to 7/72 of an inch. Decimal : 27 49 Hex: 1B 31 BASIC: CHR $( 27);&qu[...]

  • Page 135

    GEK-00029A 5000 Seri es Programmer’s Manual 135 CHARA CTER SP ACI NG ESC SI Selec t Condensed Pri nt Mode: Performs the same fu nction as the SI control code. Decimal : 27 15 Hex: 1B 0F BASIC: CHR $( 27); CHR$( 15); ESC M Select Eli te Pitc h: This sets the pi tch to 12 cpi. Decimal : 27 77 Hex: 1B 4D BASIC: CHR $( 27);” M”; ESC P Select Pic [...]

  • Page 136

    Chapter 6. Epson FX286-E Emulation GEK-00029A 136 TABS ESC B n 1…n16 NUL Set Vertical Tab Stops: Se ts up to 16 vertical tabs in c hannel at the indicated line numb ers in the cur rent line spacing. Th e list of tab stops must be terminated by the NUL c ode. Any line th at is not referenced in t he list is cleare d by this comman d. Theref or, t [...]

  • Page 137

    GEK-00029A 5000 Seri es Programmer’s Manual 137 ESC b c n1 n2…n8 Set V ertic al Tabs in C hannel s 0 Throug h 7: Sets vertic al tab stops NUL in an y one of 8 v ert ical t ab channel s num bere d 0 thro ugh 7. This allows yo u to se t up to 8 differe nt groups of vertic al tab s. The list of tab sto ps must be t erminat ed by t he NUL c ode. An[...]

  • Page 138

    Chapter 6. Epson FX286-E Emulation GEK-00029A 138 PAPER MOVEMENT ESC J n Single Va riable Li ne Feed: This seq uence ca uses the cont ents of the print buffe r to pr int. The pri nt posit ion is then moved down t he pag e by the distanc e specifie d by the paramet er in 1/216-inch incre ments. This sequence does not af fect spacing of subseque nt l[...]

  • Page 139

    GEK-00029A 5000 Seri es Programmer’s Manual 139 PRINT POSITION ESC < Select Unidire ction al Mode (1 Line): Forces unidirectional print, from right to left , in the line in which this command is embedded. Unidirectional printing be gins with the first character following receipt of t his comman d and is cancele d by a carriage r eturn. Decimal[...]

  • Page 140

    Chapter 6. Epson FX286-E Emulation GEK-00029A 140 ESC n1 n2 Set Relative Pri nt Position: Sets the position whe re printing will occu r next re lative to the curre nt print po sitio n. Parame ters n1 an d n2 are in 1/120-inch increm ents and are e xpres sed as n1 + (n2 x 256). Par amet er li mits for n1 and n 2 are 0-25 5. Example 1: If you want [...]

  • Page 141

    GEK-00029A 5000 Seri es Programmer’s Manual 141 PRINT MODES ESC - n Turn Under lining ON/O FF: Enables or disa bles aut om atic underlining depending on the p arameter n as follows: n=1 enable underline n=0 dis abl e under line The underline will be positio ned on dot row 9 o f draft characters and row 18 of NLQ ch aract ers. Bl ock ch aracter s [...]

  • Page 142

    Chapter 6. Epson FX286-E Emulation GEK-00029A 142 ESC S n Select Sup erscript/Subs cript Printi ng: This seque nce en ds the curren t prin t buff er and ca uses it s content s to be pr int ed. I n each mode, the characte r is sho rtened to half height and then pos itioned in the upper (superscripts or lo wer (subscript) half of the print line. Thes[...]

  • Page 143

    GEK-00029A 5000 Seri es Programmer’s Manual 143 ESC w n Turn Double-High Printing ON /OFF: Tu rns double-high printing on or off a ccording to the valu e of pa rameter n a s follo ws: n=1 doub le-high on n=0 doub le-high off Decima l: 27 119 n Hex: 1B 77 nH BASIC: CHR $( 27);" w"; CHR$( n); ESC 4 Select I talic Pri nt M ode: Causes ch a[...]

  • Page 144

    Chapter 6. Epson FX286-E Emulation GEK-00029A 144 ESC ! n Mast er Print Mode Se lect: Selects any v alid combination of the printing modes listed below. T he parameter n is equal to the sum of the decimal v alues ass ociated wit h each mode. Note that pic a and elite are mutu ally exclusiv e and prop ortional over rides con densed. Also, pica an d [...]

  • Page 145

    GEK-00029A 5000 Seri es Programmer’s Manual 145 SPECIAL CHARACTER PRINTING ESC I n Prin table Code Area Ex pansion: If n is binary o r ASC II one, s ome ASCII cod es betw een 0-31, an d some or all codes between 12 8-159 inclusive, be come printab le as char acters. I f ESC 6 has been sent prior to this comma nd, then all of the characte rs betwe[...]

  • Page 146

    Chapter 6. Epson FX286-E Emulation GEK-00029A 146 EXECUTED ASCII CODE Range 1 Range 2 Decimal He x Decimal Hex Chara cter Print ed 21 15 149 95 slash ed o (ø) 22 16 150 96 umlaut accen t (¨) 23 17 15 1 97 umla ut A ( Ä ) CAN CAN 152 98 umla ut O (Ö) 25 19 15 3 99 umla ut U (Ü) 26 1A 154 9A umlaut a (ä) ESC ESC 15 5 9B u ml au t o (ö ) 28 1C [...]

  • Page 147

    GEK-00029A 5000 Seri es Programmer’s Manual 147 ESC t n Select a Code Pa ge: Selects on e of four variable s that cont ains a specific co de page select ion. The fo ur var iables are loaded v ia the ESC ( t and the ESC [T seq uences. The four variable s are identif ied as 0,1,2. and 3 ( eithe r bina ry or AS CI I v alues). This com man d overr id[...]

  • Page 148

    Chapter 6. Epson FX286-E Emulation GEK-00029A 148 ESC ( T nl n2 A ssign a C ode Page to Vari able 1: Assign s a code page to (n2)(m 1) m1...m5 the 1 v ariable us ed by the ESC t sequence. N ote that t his sequence is very similar to the ESC ( t sequen ce except that v ariable 1 is th e only variable t hat can accept a code page a ssignment . Also, [...]

  • Page 149

    GEK-00029A 5000 Seri es Programmer’s Manual 149 MISCELLA NEOUS COMMANDS ESC # Cancel MSB (Most Si gnificant Bit) Contr ol: Canc els the most significant bit contr ol set by either ESC = or ESC >. Decimal : 27 35 Hex: 1B 23 BASIC: CHR $( 27);" #"; ESC = Set Most Sig nificant Bit ( MSB) to Ze ro: S ets the most signif icant bit of all [...]

  • Page 150

    Chapter 6. Epson FX286-E Emulation GEK-00029A 150 FX-286E DOT GRAPHICS Dot graphi cs allows you t o print individ ual dots at any position on the page , and thus to print p ictures a s well as text. While in grap hics mode, em phasized, d oubl e-strike. e xpanded, un der lined, subscr ipt and superscr ipt remain a s set, but ar e inactive. The FX-2[...]

  • Page 151

    GEK-00029A 5000 Seri es Programmer’s Manual 151 Image Data Bytes The FX-28 6e pri nter support s both 8-pin and 9-p in v ertical format s. Since this emulation supports only 8-pin graphics, 9 -pin graphics will not be exp lained or illustrated here. When 9-pin grap hics are sent to this printer. the b yte co ntaining the 9 th bit is d iscarde d. [...]

  • Page 152

    Chapter 6. Epson FX286-E Emulation GEK-00029A 152 FX-286E DOT GRAPHICS CONTROL SEQUENCES ESC K n1 n2 v1...v n Norma l Densi ty Grap hics: Sets a density of 60 d pi horizontally and 72 dpi vert icall y. Decima l: 27 75 n1 n2 v1...vn Hex: 1B 4B n1H n2H v1H ...vnH BASIC : CHR$(2 7);"K";CH R$(n1);CHR$ (n2);CHR$( v1);...; CHR$(v n); ESC L n1 n[...]

  • Page 153

    GEK-00029A 5000 Seri es Programmer’s Manual 153 ESC * m n1 n2 Selec t Grap hics M ode: Select s graphics m ode m (see table below) f or v1...vn n1 + (n2 x 25 6) column s. The var iables n1 an d n2 repre sent the number of data bytes to be sent that will be interpreted as graphics. If the number of graphi cs columns to be pr inted cau ses print in[...]

  • Page 154

    Chapter 6. Epson FX286-E Emulation GEK-00029A 154 After t he command is sent , the ESC L com mand t hen causes the horiz ontal d ensit y to be 6 0 dpi i nste ad of 12 0 dpi. Decimal : 27 63 n Hex: 1B 3F nH BASIC: CHR $( 27);" ?"; CHR$(s) ;CHR $(n ); ESC ^ m n1 n2 Select 9-P in Gr aphics : Turn s on the 9-bit graphics mo de for n1+(n2 x 25[...]

  • Page 155

    GEK-00029A 5000 Seri es Programmer’s Manual 155 CHAPTER 7. DEC LG / COMPAQ LG PLUS EM UL ATIO N CONTR OL C ODE DE FINITIONS The control code s are single chara cter action c odes in the range 0 - 3 1 d e cim a l i n th e A SCI I c ode ch ar t . The following are those codes, which are relevant to this emu lation. BEL Bell: The printer's audi[...]

  • Page 156

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 156 VT Vertical Tab: Line terminator. The active print position will be set to the next ve rtical ta b sto p. Indete rminate Co ndition s If there are no vertical tabs set, the active po sition will be advanced to the bott om margin. If there ar e no more tabs set bet ween t he current position [...]

  • Page 157

    GEK-00029A 5000 Seri es Programmer’s Manual 157 DC 3 Device Control 3: DC3 applies t o the serial interface only. If READY/BU SY by DC1/DC3 h as been enabled v ia the prin ter configuration menu, the printer wi ll transmit a DC3 when its receive buffe r reaches the high trip point . Indete rminate Co ndition s DC3 is i gnore d if DC 1/DC 3 REA DY[...]

  • Page 158

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 158 COMMA NDS The control seq uence intr oducer (CSI ) signals the beginning of an ANSI contr ol sequence t hat may accept paramet ers. In the 7-bit environment, ESC [ is used. In t he 8-bit envi ronment, either ESC [or the single code 9B may be used. 8-b it control is men u selecta ble. When th[...]

  • Page 159

    GEK-00029A 5000 Seri es Programmer’s Manual 159 HTS Horizontal Tab Set: A ho rizontal tab will b e se t at t he curren t p rint position . Indete rminate Co ndition s If the maxim um number of stops (32) is alr eady set when a new one is programmed, the new one will be inserted and the rightmost tab stop rem ove d. Decima l: 27 72 or 136 Hex: 1B [...]

  • Page 160

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 160 RI Re ve rs e In de x: Moves the a ctive line pos ition up to the s ame po sition on the preceding line. The Reverse Index command causes the active pos ition to sto p at the top of the margi n. Decima l: 27 78 or 141 Hex: 1B 4D or 8D BASIC: CHR$( 27); CHR $(78) ; or C HR $(141 ); SS 2 Singl[...]

  • Page 161

    GEK-00029A 5000 Seri es Programmer’s Manual 161 OS C Operating System Command : OSC intr oduces an Operating System Command String . OSC control st rings a re ignored Indete rminate Co ndition s The start of this control st ring is recognized b ut all of the dat a that follows is ignored until this sequence is either aborted or terminated by an S[...]

  • Page 162

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 162 SG R ( n1 ) (n2 ) ... m S elect Graphics Rendition : This sequence will select the Font (mode and charact er style) by usin g one or more of th e followin g paramet ers: 0 Normal Printing M ode (Default) 1 Bold Pr int Mod e 4 Underline Mo de 10 Default (Data Pr ocessing) 11 Co rrespo ndence [...]

  • Page 163

    GEK-00029A 5000 Seri es Programmer’s Manual 163 DE CR FS Request Font Statu s : Requests a status report of the fonts available for p rinting , the memo ry ava ilable for loading form s and logos , or b oth . The Ps par amet ers are def ined a s: 0 Send both r eports (defa ult) 1 Send statu s of ROM font s 2 Send amo unt of RAM availa ble for for[...]

  • Page 164

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 164 DECDLG Delete L ogo Sequ ence: Delete logo from printe r memory . P1 defi nes the log os to be del eted. Indete rminate Co ndition s When P1 = 0, P2 t hrough Pn ma ke up t he ID of the log os to be delete d. When P1 = 3, All st ored lo gos are del eted. Deleting a logo within a form is no t [...]

  • Page 165

    GEK-00029A 5000 Seri es Programmer’s Manual 165 DE CL FM Loading Forms Sequence: Allows for ms to be loaded and stored into printer memory. General Com mand S yntax DCS P1; P2& p recor d ST P1 spec ifies the fo rm file fo rmat. (must be 0) P1 = 0 LG-series printer lo go file format. P1 ≠ 0 Sequ ence is ignored. P2 defines the r eplacem ent [...]

  • Page 166

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 166 DECFLM (continued) Sample DECFLM Sequence ESC P 0 ; 3 & p 04Memo%@00234 ESC Decimal : 144 P1 59 P2 38 11 2 record 15 6 Hex: 90 P1 3B P2 26 70 record 9C BASIC: C HR$(144 );CHR$(P1);CH R$(59);CHR$(P2 );"&p"; record; CHR $(15 6); DE CD FM Delete Forms Sequence: Deletes forms[...]

  • Page 167

    GEK-00029A 5000 Seri es Programmer’s Manual 167 DE CI FM Start Forms Sequence: Selects any form loaded in the printer’s RAM. When a form is selected, the printer enters Form Mode and variable ‘fill- in’ data is merged and p rinted with the form d ata . General Com mand S yntax DCS P1 & r FORM NAME ST Indete rminate Co ndition s P1 is th[...]

  • Page 168

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 168 SI XE L Sixel Graphics: Th is sequence pr ovides a group of 6 bit bytes to be used as vertical graphics data. A bit value of 1 means print a pixel, whil e a bit value of 0 means leav e a blank. The Dev ice Control St ring (DCS) envelope contains the graphics introducer and all graphics data.[...]

  • Page 169

    GEK-00029A 5000 Seri es Programmer’s Manual 169 DE CL LG Loading Logo Seque nce: A gr aphic image is downloa ded and st ored in printer memory. General Command Syntax DCS P1 P2 & t record ST P1 spec ifies the lo go file fo rmat. (mu st be 0) P1 = 0 LG-series printer lo go file format. P2 lists the lo gos to be deleted . P2 = 0 Delete all l og[...]

  • Page 170

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 170 DEC AU PSS Ass ign U ser Pref eren ce Suppl emen tal Set : Assigns sever al of the ISO and special ch aract er sets to th e User Pref erence Su pplemental Set. The fo llowing tab le lists the UP S Characte r Sets. General Com mand S yntax DCS Ps ! u D … D ST UPS Characte r Sets Characte r [...]

  • Page 171

    GEK-00029A 5000 Seri es Programmer’s Manual 171 DECTFM Termi nate Form s Sequence: Terminates t he printing of a form. General Com mand S yntax ESC # SP 1” Indete rminate Co ndition s If no for m is selected, this seq uence is ignor ed. Many s pecial conditions might affect t he printer output see t he note bel ow for further info rmation. Deci[...]

  • Page 172

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 172 ▪ When using bar codes as p art of the fill-in data, make su re that the control char acter encod ing character of the bar c ode differs from the sw itch character in the Select Form sequence. ▪ Bar codes mu st star t and end on the sa me page of a f orm.[...]

  • Page 173

    GEK-00029A 5000 Seri es Programmer’s Manual 173 DECBLOCK C Start Bl ock C haracter M ode: Gener ates th e block ch aract ers fr om the charact ers that f ollow the sequenc e. General Com mand S yntax ESC % SP 1 Indete rminate Co ndition s The b lock cha racters inhe rit the last se t of p aramete rs defined . If no prior seq uence e xists, th e b[...]

  • Page 174

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 174 S8C1R Select 8-Bit Code: In an 8-bit envi ronment, this sequ ence allows receipt of 8 -bit contr ol strings. General Com mand S yntax ESC SP 7 Indete rminate Co ndition s For all subs equent char acters, t he printer processe s receiv ed 2- character seq uences a s define d in the C0 contr o[...]

  • Page 175

    GEK-00029A 5000 Seri es Programmer’s Manual 175 GSM Grap hic Size Modifica tion: This seq uence will change the height and/or widt h of gr aphic char acte rs. Th e first and secon d para meter s are the percent ages by which the height and width res pectively will be mult iplie d. The defa ult v alue for bot h p1 an d p2 i s 100 per cent. General[...]

  • Page 176

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 176 S8C1T Select 8-Bit C1 Transmission: Thi s sequen ce cau ses the print er to use 8-bit encoding for all C 1 control char acters transmit ted. All C1 characters ar e then repr esented a s one-char acter CSI sequences. General Com mand S yntax ESC SP G Decima l: 27 32 71 Hex: 1B 20 47 BASIC: CH[...]

  • Page 177

    GEK-00029A 5000 Seri es Programmer’s Manual 177 SSU Selec t Size Unit: When PU M is set, Select Size U nit selects eith er decipoints or pixels as the spacing unit, d epending on the parameter settin gs defin ed bel ow. If the print er receives an SSU w hile PUM is reset, the selecte d unit will take effect when PUM is set and will then remain in[...]

  • Page 178

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 178 HPA Horizon tal Po sition Absolu te: The active print position will be move d to the locatio n specifie d by p1 . General Com mand S yntax ESC [ Pn ` Indete rminate Co ndition s If the new hor izontal positi on is greater th an the carri age width, th en the horizontal positio n of the contr[...]

  • Page 179

    GEK-00029A 5000 Seri es Programmer’s Manual 179 RIS Reset to Initi al Stat e: Reset s the v alue or st ate of sev eral operat ing features. This seq uence resets t he printer to a set of oper ating values and co nditions s imilar to the factory d efau lt settings (see tab le below) . General Com mand S yntax ESC c Decimal : 27 75 Hex : 1B 63 BASI[...]

  • Page 180

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 180 DA Produ ct Identifi cati on: Shows t he prod uct identif ication. W hen the host sen ds a device at tribut es sequenc e, th e printer r esponds w ith a sequence t hat identif ies the print er. The resp onse is ESC[?45c. General Com mand S yntax ESC [ c or ESC [ 0 c Decima l: 27 59 75 or 27 [...]

  • Page 181

    GEK-00029A 5000 Seri es Programmer’s Manual 181 TBC Tab Cle ar: This sequence will cle ar horizontal o r vertical tab (or tabs) based on the par amet er. I f no param eter i s presen t, t he default will be to clear t he horizontal t ab at the cur rent posit ion, if one exi sts. The valid parameters are as follows: General Com mand S yntax ESC [ [...]

  • Page 182

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 182 DECAWM Autowrap Mode: Deter mines what ha ppens when text excee ds the right marg in. When autowr ap is enabled and t ext exc eeds the ri ght margin, the ac tive print p ositio n move s to the le ft margin on the next line. When autow rap is disabl ed an d text exce eds the r ight margin, da[...]

  • Page 183

    GEK-00029A 5000 Seri es Programmer’s Manual 183 VFU End Load V ertical Format Unit ( End Loa d): This sequ ence will end the Vertical Format Unit load. General Com mand S yntax ESC [ < 1 l <- Note lower cas e L as the last char acter. Decima l: 27 59 60 49 84 Hex: 1B 5B 3C 31 6C BASIC: CHR $( 27);" [<1l" ; VFU Channel C omman d[...]

  • Page 184

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 184 HPB Horizon tal Po sition Backwa rd: Th e current horizontal positio n will be changed, m oving t he active posit ion in the backw ard direct ion by the specifie d amount. The movem ent is not permit ted to cr oss the left margin of the current fo rm. General Com mand S yntax ESC [ Pn j Inde[...]

  • Page 185

    GEK-00029A 5000 Seri es Programmer’s Manual 185 DSR Device S tatus Re quests: The h ost sen ds the Devi ce Status Req uest listed below to reques t a printer s tatus report. General Command Syntax ESC [ Ps n Decimal : 27 71 Ps 86 Hex : 1B 5B Ps 6E BASIC: CHR $( 27);" [";Ps; "n" ; DSR Sequ ences t o Reque st Statu s Reque st Se[...]

  • Page 186

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 186 Printer S tatus Er ror Cod es Pn1 Fault Code Pn2 Fault Code Printer Fault 27 206 Pa per Out 25 0 Paper Jam 26 0 Cover Open 38 229 R ibbon Jam 36 220 St riker Bar Open 26 212 Al l Othe rs Notes This option will wo rk only if the printer’s serial interface is active, and the RTS o ption on t[...]

  • Page 187

    GEK-00029A 5000 Seri es Programmer’s Manual 187 DECSTR Soft Terminal Reset: Resets th e value or stat e of sever al operating features. After r eceiving a DECS TR, the pr inter position s itself at the next Top Of Form th en resets th e value or st ate of sev eral operat ing featur es. General Command Syntax ESC [ ! p Decima l: 27 71 17 84 Hex: 1[...]

  • Page 188

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 188 DECSBCA Select Bar Code A ttributes: This s equence will select a bar code type and orien tation . General Com mand S yntax ESC [ P1 ;P2;P2; ... ;P9 s P1: Bar Code Style The allowe d values for P1 are show n in the following t able. P1 Bar Code Style 0/mis sing Code 3 of 9 (def ault) 1 I nte[...]

  • Page 189

    GEK-00029A 5000 Seri es Programmer’s Manual 189 P8: Bar code Rotati on 0 no ro tation (d efault) 1 no ro tation 2 270 degrees rot ation 3 90 degree s rotati on 4 180 degrees rot ation P9: Human Re adable Input (H RI) Font 0 No human read able char acte rs p rinted ; 1 No human read able char acte rs p rinted ; 2 Spe cial ba r code H RI font; Deci[...]

  • Page 190

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 190 DEC SLRM Set Le ft an d Righ t Ma rgins : Sets the left and right m argins. Pn1 sets the left margin and the line home p osition. Pn2 sets the r ight margin. If the firs t param eter is gre ater than the seco nd para meter, the sequence will be ignored. The unit of measurement can be charact[...]

  • Page 191

    GEK-00029A 5000 Seri es Programmer’s Manual 191 DECSHTS Set Horiz ontal Tab Stops: This se quence will set multiple horizontal tab sto ps. DECSHTS allows up to 16 ta b stop s to be set at o nce. Up to 32 horizonta l tabs c an be sto red. If more than 3 2 ta bs are spec ified by the escape seq uence, the lef tmost 32 will be retained. The Pn value[...]

  • Page 192

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 192 DECSHORP Set H orizon tal Pitch: This sequence will set the number of characters pr inted per hor izontal inch on a line. In addition t o changing character size, t his sequence will r eset the left and r ight margins and will retain the current horizo ntal tab settings. Ps selects the horiz[...]

  • Page 193

    GEK-00029A 5000 Seri es Programmer’s Manual 193 DECSGD Set Graphics De nsity: DECSGD sets the d ensity for graphics. P sh designates t he horizontal dot density and Psv designat es the v ertical dot de nsit y. General Com mand S yntax ESC [ Psh ; Psv & { Psh Horizontal Density Psv Vertical Densit y 0 No chang e 0 No change 1 50 Dots per I nch[...]

  • Page 194

    Chapter 7. Dec LG/Compaq LG Plus Emulation GEK-00029B 194 DECVEC Drawing Vectors: Thi s sequen ce draw s horizontal or ver tical lines with lengt h and width. Mar gins do not af fect line draw ing so you can draw lines to th e physical limits of the page. Use the f ollowing Pn paramete rs to se lect the length, wid th, and d irectio n of the line .[...]

  • Page 195

    GEK-00029B 5000 Seri es Programmer’s Manual 195 CHAPTER 8. PPL3 PLUS EMULATION INTROD UCTION General Considerations This chapter describ es the GE NICOM 5 000 im plementat ion of t he DEC PPL 3 pri nter prot ocol. The foc us is on the f ollowin g: ▪ Contr ol Code s ▪ Special Chara cters ▪ Commands ▪ Page Coordi nat e System ▪ Sixel Grap[...]

  • Page 196

    Chapter 8. PPL3 Plus Emulation GEK-00029B 196 7-Bit Versus 8-Bit Environments In some env ironments, only 7 bits are us ed to enco de char acters. I n these envi ronments, the st andard 7-b it character set appli es. This set includes only th e C0 and GL ch aracter sets and t he special characte rs repr esent ed by h exa decimal value s 20 an d 7F.[...]

  • Page 197

    GEK-00029B 5000 Seri es Programmer’s Manual 197 In an 8-bi t env ironmen t, t he low order 7 bits determ ine whet her a character is pr intable or is a control ch aracter . The stan dard 8-bit code tabl e consists of the entr ies above as w ell as the 8-bit r ight-half table tha t follows . Standard 8-Bit Code T able (Righ t Half)[...]

  • Page 198

    Chapter 8. PPL3 Plus Emulation GEK-00029B 198 Printable Characters The GL charact ers in a 7-bit env ironment and GL and GR in an 8-bit environme nt are inte rpreted as printab le if they are not em bedded in a contro l functio n. It tak es se lection of b oth a fo nt and a graphic character set to specify a char acter to b e printed. Th e font is [...]

  • Page 199

    GEK-00029B 5000 Seri es Programmer’s Manual 199 CONTR OL C ODES Introduction Generally, c ontrol codes ar e not print ed and ca use the pr inter to perfo rm a co ntrol functi on. Wi thin P PL III, there is an exc eptio n whe n Control Representation Mode (C RM) is set. C0 Control Characters C0 co ntrol cha racters a re in the range of 00H to 1 FH[...]

  • Page 200

    Chapter 8. PPL3 Plus Emulation GEK-00029B 200 HT Hori zontal Tab (09H): HT moves the active po sition to the nex t horizonta l tab s top on the sa me line. If no ta b sto p exis ts to the right of the ac tive horizo ntal and within the right margin, HT mo ves to the right margin and s ets the Right M argin Flag. If no tab s are set an d ba r code i[...]

  • Page 201

    GEK-00029B 5000 Seri es Programmer’s Manual 201 C1 Control Characters All C1 control ch aracters a bort any escap e sequen ce, control sequence, or control str ing in progress. See the secti on on Special Parsing Requirements earlier in the chapter. C1 control char acters can b e repres ented by a 7-bi t eq uivalent esca pe sequence. See the foll[...]

  • Page 202

    Chapter 8. PPL3 Plus Emulation GEK-00029B 202 HTS Horizontal Tab Set (88H): HTS sets a horiz ontal tab sto p at the active hor izontal position. No change oc curs if the act ive horizont al position is in th e tab table. I f the t able is full, the highest tab stop is lost. Wh en the new tab w ould be t he highest and the t able is already full, th[...]

  • Page 203

    GEK-00029B 5000 Seri es Programmer’s Manual 203 SPECIAL CHARACTER PROCESSING As me ntioned in the introdu ction, fo ur cha racters are co nsidered special chara cters. The pr ocessing f or these charact ers is de scribed below. Hex 20 If a 94-charact er graphi c character set has been m apped into the GL region, 20H alw ays print s as a space cha[...]

  • Page 204

    Chapter 8. PPL3 Plus Emulation GEK-00029B 204 Special Character Parsing Received Charac ter ESC, CSI , DCS Intro Sixel DECATFF DECDTFF DECA UPSS DECLFF Undefin ed Contro l String ESC See 1 See 1 See 1 See 1 See 1 See 1 See 1 CAN See 2 See 2 See 2 See 2 See 2 See 2 See 2 SUB See 3 Treat as 3FH See 3 See 3 See 3 Tr eat as 3FH See 3 BEL, SI, SO See 4 [...]

  • Page 205

    GEK-00029B 5000 Seri es Programmer’s Manual 205 ESCAPE SEQUENCE / CONT ROL FUNCTION SYNTAX Within PPL I II, the ov erall descript ion given t o control code s, escape sequences an d control st rings is "comman ds." For c onsistence w ith the rest of this manual, separateness will be maintained. Escape Sequence Syntax Escape sequ ences h[...]

  • Page 206

    Chapter 8. PPL3 Plus Emulation GEK-00029B 206 the ">" charac ter (3E) at the beginning o f a param eter string ind icates the presenc e of Digital pr ivate para meters. If the ": " (3AH ), "<" (3C ), or the "=" (3D) charac ters are received during the pro cessing o f a para meter s tring, or if the &quo[...]

  • Page 207

    GEK-00029B 5000 Seri es Programmer’s Manual 207 COMMA ND DIRE CT ORY Command Descripti on Page ASCEF Announce Subset of Code Ex tension Facilities 209 CPR Curso r Position Repo rt 209 CRM Co ntrol Rep resenta tion Mode 210 CUU Cur sor Up 210 DA Printer A ttribu tes (host re ques t for rep ort) 210 DA2 Se conda ry Printer A ttributes (host re ques[...]

  • Page 208

    Chapter 8. PPL3 Plus Emulation GEK-00029B 208 Command Descripti on Page SS2, SS3, SO , SI, LS0 to LS3 and LS1 R to LS3R PUM Positioning Unit Mode 237 RIS Reset to Initial State 237 SCS Select Coding System (invoke an other resid ent emulation) 238 SGR Select Graphics Ren dition (attrib ute select ion) 2 40 SGR Select Graphics Ren dition (font sel e[...]

  • Page 209

    GEK-00029B 5000 Seri es Programmer’s Manual 209 COMMA ND DI CTIONA RY ASCEF Annou nce Subs et of C ode Ex tensi on F aciliti es: This indicates which subset of code extension facilities or what level of ISO 4873 is used for su bsequent exchanges of information. These t hree control functions are m acros t hat incorp orate th e effects of Select C[...]

  • Page 210

    Chapter 8. PPL3 Plus Emulation GEK-00029B 210 CRM Control Repr esent ation Mode: This sequ ence enter s or exits a m ode in which the printe r prints a grap hic tok en for e ach byte. In this mode, the printer d oes no t act up on co ntrol ch aracters. Source: Application De st ina tion: Exception (debug too l) Forma t ESC 3 h Set CRM ESC 3 l Reset[...]

  • Page 211

    GEK-00029B 5000 Seri es Programmer’s Manual 211 DAR Printer Attribu tes Rep ort (ge neric res ponse) : Response t o a Print manage r reques t for a P rinter Attrib utes (DA) rep ort. Source: Print er Dest inat ion : Print m anag er Forma t CSI ? Ps1 Ps2 … Psn c Description The printer sen ds this com man d when set to t he generic res ponse. Th[...]

  • Page 212

    Chapter 8. PPL3 Plus Emulation GEK-00029B 212 DAR Printer Attribu tes R eport (ali as resp onse) : Response t o a Print manage r reques t for a P rinter Attrib utes (DA) Rep ort. Source: Print er Dest inat ion : Print m anag er Forma t CSI ? Ps1 Ps2 Psn c Description The printer sen ds this seq uence w hen set to th e alias resp onse. The printer m[...]

  • Page 213

    GEK-00029B 5000 Seri es Programmer’s Manual 213 DEC AU PSS Ass ign U ser Pref eren ce Suppl emen tal Set : Assigns a part icular character set to the User Pr eference S upplemental set . This bec omes the charact er set designat ed by th e User Pref erence char acter set final when used in a Select Character Set (SCS) sequence. Source: Print mana[...]

  • Page 214

    Chapter 8. PPL3 Plus Emulation GEK-00029B 214 Error Han dling The printer acc epts the U ser Prefer ence Sup plemental char acter set selection ev en if the selected char acter set is not current ly available. The c haracte r set ma y be do wnloaded before imaging tex t. If the character set is still not available when an imaging function is attemp[...]

  • Page 215

    GEK-00029B 5000 Seri es Programmer’s Manual 215 DECCAV T Clear A ll V ertical Tabs: Cl ears v ertical ta b stops. Source: Application De st ina tion: Level 2 (outm ode d comman d) Forma t ESC 4 Description See Tabulation Clear (TBC) with Ps = 4. Notes t o Sof tware This command is included for backwards compatibility with older printers o nly. Co[...]

  • Page 216

    Chapter 8. PPL3 Plus Emulation GEK-00029B 216 DECIPEM Entering IBM Proprinter Emulatio n Mode: Execut es Set Ot her Coding System (SOCS), enabling IBM Proprinter Emu lation mode. Source: Print manag er Des tinat ion: Le vels 2 , 3 Exception Forma t CSI ? 5 8 h Description See SOCS with fina l characte r "=" (3DH ). Some print ers do n ot [...]

  • Page 217

    GEK-00029B 5000 Seri es Programmer’s Manual 217 If the DECPSP (Proportio nal Spacing) command is set, the DECPSM comman d sets the t abs and mar gins as us ual, as liste d in Side Effects under DECS HORP in this chapt er. Howev er, t he pitch is stored an d is not use d until DE CPSP is reset . Notes t o Sof tware This command is provided for bac[...]

  • Page 218

    Chapter 8. PPL3 Plus Emulation GEK-00029B 218 DECRVEC Draw Relat ive Vector: Draws a v ector star ting at t he active positi on. Source: Application De st ina tion: Level 3 Extension Forma t CSI Ps1 Pn2 Pn 3 SP Description The selectiv e param eters f or Ps1 are as f ollows: Ps1 Action 0 Draws an X (horizontal) line to the right. 1 Draws a Y (verti[...]

  • Page 219

    GEK-00029B 5000 Seri es Programmer’s Manual 219 DECRVEC (continued) If the request ed length is less t han 1 pixel l ong (after conv ersion to pixel units), the printer draws a line I pix el long. If the requested line is less than 1 pi xel wide, the print er draws a line 1 pi xel wi de. DECSHORP Set H orizon tal Pitch: Selects char acter spa cin[...]

  • Page 220

    Chapter 8. PPL3 Plus Emulation GEK-00029B 220 DECSHORP (co ntinued) ▪ Sets the Line Home Po sition equal to the Left Margin P osi tion. ▪ Sets the Line End Positio n equal to the Right Margin Po sition . ▪ Adjusts h orizontal tab st ops (multi plies each t ab location by the ratio of the new Hori zontal Adv ance I ncrement ov er the old RAI )[...]

  • Page 221

    GEK-00029B 5000 Seri es Programmer’s Manual 221 DECSHTS (continued) Error Han dling If the pr inter r eceives more t han 16 tab st ops, it sets th e first 16 and ignores the r est. If t he same tab sto p is sent more than on ce, th e printer set s the tab st op once. Th e printer ignores a seque nce sent without ta b stop parame ters. When the nu[...]

  • Page 222

    Chapter 8. PPL3 Plus Emulation GEK-00029B 222 DECSLPP (continu ed) Error Han dling If the P n para meter is greater tha n the max imum s ize for the p aper and origin, then t he printer sets the for m length to the maximum siz e for t he paper an d origi n Notes t o Sof tware Use DE CSLPP on ly at t he top of a new pag e. DEC SLRM Set Le ft an d Ri[...]

  • Page 223

    GEK-00029B 5000 Seri es Programmer’s Manual 223 DECSLRM (continu ed) Error Han dling If the a ctive po sitio n is less tha n the left ma rgin, then the printer se ts the active p osi tion to the new left margin. If the ac tive po sition is greater tha n the right margin, the printe r sets the Right Margin Fl ag. If Pn2 is to the right of the righ[...]

  • Page 224

    Chapter 8. PPL3 Plus Emulation GEK-00029B 224 DECSTBM (contin ued) The printer pla ces data only w ithin th e top and bot tom margins, wi th the following ex ceptions: • Draw Vect or (DECVEC) an d Draw Rel ativ e Vector (DE CRVEC) dr aw lines outside the mar gins. • Partial Line Down (PLD) may print p art of a character below the bottom margin.[...]

  • Page 225

    GEK-00029B 5000 Seri es Programmer’s Manual 225 DECSTBM (contin ued) Notes t o Sof tware Margins can be chang ed or r eset as a sid e effect of other acti ons. Also, changing the or igin with DECO PM changes the locat ions of t he top a nd bottom margins with res pect to the pape r DECSTBM should be used o nly on a new page. DECSTR Soft Terminal [...]

  • Page 226

    Chapter 8. PPL3 Plus Emulation GEK-00029B 226 DECSVTS Set Vertical Tab Stops: Ad ds one or mor e tab stop s to t he ver tical tab ta ble (m ax of 16) . Source: Application Dest in at ion : Level 2 Forma t CSI Pn ! p Description Pn is a number of u nits, depending on Position ing Unit Mode (PUM) and Select Size Unit (SSU). Each Pn paramet er is a se[...]

  • Page 227

    GEK-00029B 5000 Seri es Programmer’s Manual 227 DECVEC Draw Vector: Draw a vertical or horizontal line. Source: Application De st ina tion: Level 3 Extension Forma t CSI Ps1 ; Pn2 ; Pn3 ; Pn4 ; Pn 5 ! | Description The selectiv e param eter opti ons are as foll ows: Ps1 Action 0 Draw X (horizontal) line. 1 Draw Y (vertical) line. Select the numer[...]

  • Page 228

    Chapter 8. PPL3 Plus Emulation GEK-00029B 228 DECVERP Set Vertical Pi tch: Selects line spacing Source: Application Destination: Levels 1 , 2 Forma t CST Ps 2 Description Selects the num ber of lines pr inted for each inch on a page. Changing the ver tical pitch changes the wh ite space betwe en lines, not th e size of the charact er. I f the numbe[...]

  • Page 229

    GEK-00029B 5000 Seri es Programmer’s Manual 229 DECVERP (continued) Error Han dling If the ver tical p itch is s et greater tha n the page length, the p rinter images one line/page. If Ps is invalid, the command is ignored. DECVTS Vertical Tab Set: E xecutes V ert ical Ta b Set (VTS ). Source: Application Destination: Level 2 (outm ode d comman d[...]

  • Page 230

    Chapter 8. PPL3 Plus Emulation GEK-00029B 230 The number of DSR requests t he printer can process is limit ed only by the tr ansmission time of each repor t. Error Han dling If Ps has a v alue other th an those shown, t he printer ignores the entire comm and. DSR Device S tatus Re port: Rep orts err or status. The pr inter sen ds this repo rt: ▪ [...]

  • Page 231

    GEK-00029B 5000 Seri es Programmer’s Manual 231 GSM Grap hic Size Modifica tion: Modifies the Cu rrent Fo nt Definitio n height or width, established by the G raphic Size Selection (GSS) comman d. Source: Application De st ina tion: Level 3 Forma t CSI Pn 1 Pn2 S P B Description Pn1 is a deci mal value that specifies th e height of the char acter[...]

  • Page 232

    Chapter 8. PPL3 Plus Emulation GEK-00029B 232 GSS Grap hic Size Sel ection: Establishes the height and width for the Current Font Definitio n. Source: Application De st ina tion: Level 3 Forma t CSI Pn SP C Description Select Pn as follows: Pn Meaning 0 Sets he ight t o 100 de cipoin ts. n Set s height to Pn units. The unit size de pends on the Sel[...]

  • Page 233

    GEK-00029B 5000 Seri es Programmer’s Manual 233 HPA Horizon tal Po sition Absolu te: Move s to a new active horizo ntal positio n. Motio n occurs either to the right or to the le ft. Source: Application De st ina tion: Levels 2, 3 Forma t CSI Pn 9/11 - 6/ 0 Description Select Pn as follows: Pn Meaning 0 I nterpr eted as 1 n Nu mber of unit s, de [...]

  • Page 234

    Chapter 8. PPL3 Plus Emulation GEK-00029B 234 HPB Horizon tal Po sition Backwa rd: Moves the ac tive pos ition to the left a specified number of units. Source: Application De st ina tion: Level 3 Forma t CSI Pn Description Select Pn as follows: Pn Meaning 0 Inter preted as 1. n Nu mber of unit s, de pendin g on Posi ti oning Unit Mode (PUM) and Sel[...]

  • Page 235

    GEK-00029B 5000 Seri es Programmer’s Manual 235 HPR Hori zontal Posi tion Relativ e: Moves the a ctive p osition to the right a specified number of units. Source: Application De st ina tion: Levels 2, 3 Forma t CSI Pn a Description Select Pn as follows: Pn Meaning 0 I nterpr eted as 1 n Nu mber of uni ts, de pendi ng on P ositi oning Unit Mode (P[...]

  • Page 236

    Chapter 8. PPL3 Plus Emulation GEK-00029B 236 LN M Li ne Fe ed /New Line M ode: Instruc ts the p rinter to mo ve to the Line Home Positi on on the next line u pon recei pt of a Line Fee d (LF). Source: Print manag er Des tinat ion: Le vels 2 , 3 Forma t CSI 2 0 h LF acts as New L ine CSI 2 0 1 LF acts as Line Fe ed Description If LNM is set and a L[...]

  • Page 237

    GEK-00029B 5000 Seri es Programmer’s Manual 237 PU M Po sit ioning Un it Mode : Establishes the u nit for the nu meric paramete rs of ce rtain co ntrol functio ns. Source: Application De st ina tion: Level 3 Forma t CSI 1 1 h Sets PUM. CSI 1 1 1 R esets PU M. Description When PUM is set , the sett ing of Select Size Unit (SSU) determines unit siz[...]

  • Page 238

    Chapter 8. PPL3 Plus Emulation GEK-00029B 238 SCS Select Chara cter Set: Designat es a graphic ch aracter set into G0, G1, G2 , or G3 . Source: Application De st ina tion: Level s 1, 2, 3 Forma t ESC I1 I2 ... In F Description I1 is an intermediat e character select ed from t he following ta ble. I1 Charac ter Hex Code Map int o G-set 94-Characte r[...]

  • Page 239

    GEK-00029B 5000 Seri es Programmer’s Manual 239 The following t able lists the chara cter set design ating character s. These charact er sets are s elected using t he identifier as F or I2 F in the SCS sequenc e. Characte r Set I 2 F Desi gnat or Characte rs Hex Code 94-Chara cter Sets British A 4 1 ASCII B 42 DEC Dut ch 4 34 DEC Finnish 5 35 Fre[...]

  • Page 240

    Chapter 8. PPL3 Plus Emulation GEK-00029B 240 SCS (Continued) SCS Fallbacks G0 G1 G2 G3 Character Se t ESC ( C ESC ) C ESC * C ESC + C Fallback to DEC Finnish ESC ( Q ESC ) Q ESC * Q ESC + Q Fallback t o DEC French Canadian ESC ( E ESC ) E ESC * E ESC + E Fallback to DEC Norwegian/Danish ESC ( H ESC ) H ESC * H ESC + H Fallback to DEC Swedish Error[...]

  • Page 241

    GEK-00029B 5000 Seri es Programmer’s Manual 241 SGR (Continued) Select an attribute using Digital private SGR parameters as follo ws: Ps Action 0 Turn off all p rivate attributes (outmoded para meter. 4 Turn o n superscript, turn o ff subscript. 5 Turn o n subscript, turn o ff sup ersc ript. 6 Turn on overline (outmoded p arameter). 24 Turn off s[...]

  • Page 242

    Chapter 8. PPL3 Plus Emulation GEK-00029B 242 SGR (Continued) All lining attributes are contiguous relative to the b aseline of the entire line, even when used on s uperscr ipt or su bscri pt text. This applies to S GR superscr ipt and subscr ipt only, not to Partial Line Up (PLU) or Pa rtial Line Down (PLD). Do not use u nderline with PLU and PLD.[...]

  • Page 243

    GEK-00029B 5000 Seri es Programmer’s Manual 243 SGR Select Gr aphic R endition (Selecti ng F onts): Selects a fo nt for prin ting . Source: Application De st ina tion: Level 3 Forma t CSI Ps ; Ps ; P s ; m Selects standa rd fo nt . Description Use as pred efined o r as de fined b y DECATF F. Once a font has been a ssigned to on e of the SGR font [...]

  • Page 244

    Chapter 8. PPL3 Plus Emulation GEK-00029B 244 SHS Set H orizontal Spacing: Sele cts character spacing for mon ospace prin ting . Source: Application Destination: Level 3 Forma t CSI Ps S P K Description Determine s the Hori zontal A dvance Incr ement (HAI). If Pr oportion al Spacing Mode ( DECPS P) is set, SHS has no immedi ate eff ect. Select the [...]

  • Page 245

    GEK-00029B 5000 Seri es Programmer’s Manual 245 SnC1R/D EC* C1 C1 Tra nsmit/R eceive: D efines t he type of C1 pr ocessing or encoding. Forma t Command Sequ ence Meaning DECTC1 ESC SP 6 Process 7- bit ESC Fe sequences. If 8-bit C1 control cod es are received, drop t he 8t h bit and pr ocess as C0. DECAC1 ESC SP 7 Proc ess 7-bit ESC Fe sequenc es [...]

  • Page 246

    Chapter 8. PPL3 Plus Emulation GEK-00029B 246 SPI Spacing Pitc h Increment: D etermines t he Vertical Advan ce Increment (VAI) or th e Horizontal Adv ance Increment (HAI). Source: Application De st ina tion: Le vel 3 Forma t CSI Pn 1 Pn2 S P G Description SPI gives maximum flexibility in adjusting character and line spacing. If Pr oporti onal S pac[...]

  • Page 247

    GEK-00029B 5000 Seri es Programmer’s Manual 247 SSU Selec t Size Unit: Selects a unit of meas urement for sp acing para meters. Source: Application De st ina tion: Level 3 Forma t CSI Ps S P I CSI ? Ps SP I Selects a Digital privat e parameter. Description Select an SSU p arameter a s follo ws: Ps Action 2 S elects deci points, 1/ 720 inch. 7 S e[...]

  • Page 248

    Chapter 8. PPL3 Plus Emulation GEK-00029B 248 SVS Set Vertic al Spaci ng: Selects line s pacing for mon ospace printing. Source: Application De st ina tion: Level 3 Forma t CSI Ps S P L Description Determine s the Vert ical Advance I ncrement (VAI ). If Pr oportional Spacing Mode ( DECPS P) is set, SVS has no immedi ate eff ect. Select the SVS para[...]

  • Page 249

    GEK-00029B 5000 Seri es Programmer’s Manual 249 TBC Tab Cle ar: Clear s one or all hori zont al or v erti cal tab st ops. Source: Application De st ina tion: Levels 1, 2 Forma t CSI Ps Ps 9 Description Select P s as follo ws: Ps Meaning 0 Clears one hori zontal tab at active col umn. 1 Clears one v ertical tab at act ive line. 2 Clears all horizo[...]

  • Page 250

    Chapter 8. PPL3 Plus Emulation GEK-00029B 250 VPA (Continued) Error Han dling Be aware th at VPA inter acts with coordinate sy stem b ounds. VPB Vertic al Posi tion Backw ard: Mov es the acti ve ve rtical positi on up by the specifie d number of units. The horiz ontal positi on does not change. Source: Application De st ina tion: Level 3 Forma t CS[...]

  • Page 251

    GEK-00029B 5000 Seri es Programmer’s Manual 251 PAGE COORDINATE SYSTEM Befo re PP L III co mman ds that invol ve prin t po sitio ning can be understo od, the P PL III page co ordinate sy stem must be under stood. This section of the PPL II I chapter cov ers the following su bjects: ▪ Coordin ate system m odel ▪ Active posit ion, positioning c[...]

  • Page 252

    Chapter 8. PPL3 Plus Emulation GEK-00029B 252 Character Cell Model The charact er cell model spe cifies the co ordinat es of a charact er cell position as th e line and charact er number , start ing with character 1 of line 1. This is a simple model used for monospaced presentation. The character cell model is not used fo r proportionally spaced ch[...]

  • Page 253

    GEK-00029B 5000 Seri es Programmer’s Manual 253 Printable Area The printa ble area is the ar ea on the pa per wher e the print er can physically print. The origin may be changed using the DECOPM comman d. If DECOPM is reset, then th e origin is at th e corner of the printable are a. I f DECOPM is set, then the or igin is near the cor ner of the p[...]

  • Page 254

    Chapter 8. PPL3 Plus Emulation GEK-00029B 254 Horizontal Advance Increments Fixed HAI Fixed horiz ontal moti on does n ot var y from charact er to charact er or font to fo nt. The H AI is e xplicitly d efined b y control fu nctions. A fixed H AI is selecte d by any of the follow ing: ▪ Pitch S elect M ode (DE CPSM) rese t, and S et Hori zont al P[...]

  • Page 255

    GEK-00029B 5000 Seri es Programmer’s Manual 255 Contro l Functi on Ty pe Margi n effect Param eter Use d Flags Partial Line Up Sp ecia l Can g o up t o on e PL U positi on above top ma rgin All (Maximum PLU/PL D count value is 2 55) In cr emen ts th e PLU / PL D co unt Reverse Index Relat ive Can go up t o top ma rgin All Clears PLU/ PLD c ount a[...]

  • Page 256

    Chapter 8. PPL3 Plus Emulation GEK-00029B 256 SIXEL GRAPHICS The Sixel Graphics protocol provides the ability fo r the printer to receive and pr int black an d white bit map dat a at var ious sizes to create graphic s images. Terminology and Concepts The bitm ap dat a for pr oduci ng a graph ics im age is di vide d int o horizontal sc an lines, eac[...]

  • Page 257

    GEK-00029B 5000 Seri es Programmer’s Manual 257 General Sixel Graphics Operation Sixel G raphics printing c onsists o f setting the c ontex t and attribu tes for the pixels an d then pr inting the receiv ed pixels in a djacent grid positions. Th e following ar e essential el ements of the Sixel Gra phics print proce ss. ▪ Selection of Sixel G r[...]

  • Page 258

    Chapter 8. PPL3 Plus Emulation GEK-00029B 258 Sixel Graphics Commands DECGCR ($) G raphics C arriage Return: Moves th e graphics active hor izontal positio n to the gra phics left m argin. Format $ DECGNL (- ) Graph ics Next Line : Mo ves the gra phics a ctive p osition to the graphics left margin and down one line of sixels (six actual grid units)[...]

  • Page 259

    GEK-00029B 5000 Seri es Programmer’s Manual 259 DECGRA (") Set Raster Attributes: Defines t he pixel a spect r atio, ov erri ding Ps1 of the pr otocol sel ector . DECGR A also d efines the ext ent (size) of the raster. Leve l 3 p rinters ignore the exte nt para meters . Forma t “ Pn1 ; Pn 2 ; Pn 3 ; Pn4 Description This command m ust prec [...]

  • Page 260

    Chapter 8. PPL3 Plus Emulation GEK-00029B 260 DECGRI (!) Graphics Repeat Introducer: Repeats the following sixel a specified number of times. Forma t ! Pn Description The printer r epeats t he sixel follow ing the DE CGRI sequen ce Pn times. The re peat fu nction sup ports p arame ters large enough to c over the largest print line at the smallest g[...]

  • Page 261

    GEK-00029B 5000 Seri es Programmer’s Manual 261 APPENDIX A. USING THE HEX DUMP A printout of hex adecimal data is useful primarily to application program mers or ser vice repr esentat ives as a deb ugging or troubl esh ootin g tool . With the printer O ffline , enable the he x dump mode of p rinting by pressing: ▪ ◄ or ► (left or right) men[...]

  • Page 262

    Appendix B. Font Samples GEK-00029B 262 APPENDIX B. FONT PRINT SA MPLES The following samples were printed at 10 characters per inch (CP I) at 6 lines per inch (LPI). HIGH SPEED FONT GOTHIC DRAFT – DATA PROCESSING FONT GOTHIC NEAR LETTER QUALITY CHARACTER GRAPHICS FONT[...]

  • Page 263

    GEK-00029B 5000 Seri es Programmer’s Manual 263 CORRESPONDENCE FONT ( BETTER QUA LITY T HAN DRAFT-BETTE R SPEED THA N NLQ ) OCR-A FONT OCR-B FONT COURIER NLQ FONT ITALIC NLQ FONT[...]

  • Page 264

    Appendix B. Font Samples GEK-00029B 264 HIGH SPEED 2[...]

  • Page 265

    GEK-00029B 5000 Seri es Programmer’s Manual 265 APPENDIX C. POSTNE T BAR CO DES ENTERING AND EXITING POSTNET BAR CODES Selecting POSTNET Style Bar Codes The following seq uence sel ects t he style of bar code t o be printed. In this case POS TNET is cho sen: Mnemon ic: ESC [50 ;p2;p3;p4 ;p5;p6 ;p7;p8;p9 ;p10} BASIC : LPRINT CH R$(27);''[...]

  • Page 266

    Appendix C. Postnet B ar Codes GEK-00029B 266 Mnemon ic: <SI > BASIC: LPRI NT CHR$( 15); Deacti vat es bar code s and all ows pr inti ng of nor mal text . (POS TNET is still selected but not active. ) Mnemonic: <ESC> [0t BASIC: LPRINT CHR $(27) ;"[ 0t; Des elects bar codes. When an ESC[0t is r eceived bef ore the Al co de, bar code[...]

  • Page 267

    GEK-00029B 5000 Seri es Programmer’s Manual 267 Restricti ons Print er opt ion str ap 1 3 in Gener al Print er Opt ions, paper posit ion reset to t op of bar code af ter pr inting, is ignored w hile using POST NET. (S ee Ap pendix D, Gen eral Pr int er Opti ons, Grou p 2). If the symbol e xceeds th e right marg in, the symbol is cut of f at th e [...]

  • Page 268

    Appendix D. Descri ptions of Strapping Options GEK-00029B 268 APPENDIX D. DESCRIPTION OF STRAPP ING OP TIONS This appendi x contains descri ptions for f irmware st rap settings, which are changed using t he Set Up menu.[...]

  • Page 269

    GEK-00029B 5000 Seri es Programmer’s Manual 269 GENERAL PRINTER OPTIONS DEFINITIONS I/F Hardware Straps H Bits 01-32 Functi on If Enab led If Disabled 01 Prime High = Buff er Clear . Low = Buff e r Cl ear. 02 Interrup t On all Co ntrol Co des. Disa bled on all Contr ol Cod es, exce pt LF, VT, FF, C R, DC 1 and DC 3. 03 DEL Does not caus e an Int [...]

  • Page 270

    Appendix D. Descri ptions of Strapping Options GEK-00029B 270 LEGACY PARALLEL SOFTWARE STRAP DEFINITIONS I/F Sof twar e Strap s Bits 01-32 Functi on If Enab led If Disabled 01-03 Re served for futu re use. 04 Prime on Select. Disabled. Enabled. 05 No Faul t on PO or D e sel ect. Disa bled. Enabled. 06-07 Re served for futu re use. 08 8 bit Dat a. E[...]

  • Page 271

    GEK-00029B 5000 Seri es Programmer’s Manual 271 EMULATION OP TION DESCRIPTIONS ANSI (4800) Optio ns Meaning if Active If Active If In active 01 Oversiz e and Bar code Select via S I/SO. N o se le ctio n v ia SI/SO 02 RCC mode Reset RCC mode. Se t RCC mo de. 03 ES C C control Disable ES C C sequ ence. Rese t when ESC C is received. 04 Reserved . 0[...]

  • Page 272

    Appendix D. Descri ptions of Strapping Options GEK-00029B 272 Proprinter III XL Optio ns Functi on If Active If Inactiv e 01 RESERVED (Slashed Zer o) Copy of ENG_ OP_SLA SH_ZERO fro m GenP trOpts Str ap 3). 02 Line L ength 8 inches. 13.6 inch e s. 03 Cond ens ed Pri nt 12 cpi . 20 cpi. 04 Initial Code page Multinational. USA. 05 Charact er Set S e [...]

  • Page 273

    GEK-00029B 5000 Seri es Programmer’s Manual 273 EPSON FX286e Optio ns Functi on If Active If Inactive 01 Cond ens ed Prin t. E nabled Disabled. 02 Italics font contr ol Codes 128-255 are Co de Page. Codes 12 8-255 are Ita lics . 03 Defau lt Pri nt Quality Default print quality is NLQ. Default print quality is draf t. 04 Defau lt Pe rf Skip 1 in c[...]

  • Page 274

    Appendix D. Descri ptions of Strapping Options GEK-00029B 274 Printronix Pseries Optio ns Functi on If Active If Inactiv e 01 Overstr ike E nabled. Disabled. 02 ACK sel e cts L PI for 1 lin e 10. 3 LPI. 8 LPI. 03 VFU lo ad PI re quire d for VF U load . No PI re quired for VFU load. 04 Defin es cod es 80 to 9F 80 to 9F h ex ar e printa ble. 80 to 9F[...]

  • Page 275

    GEK-00029B 5000 Seri es Programmer’s Manual 275 APPENDIX E. DSC CODE CHARTS[...]

  • Page 276

    Appendix E. DSC Code Charts GEK-00029B 276[...]

  • Page 277

    GEK-00029B 5000 Seri es Programmer’s Manual 277[...]

  • Page 278

    Appendix E. DSC Code Charts GEK-00029B 278[...]

  • Page 279

    GEK-00029B 5000 Seri es Programmer’s Manual 279[...]

  • Page 280

    Appendix E. DSC Code Charts GEK-00029B 280[...]

  • Page 281

    GEK-00029B 5000 Seri es Programmer’s Manual 281[...]

  • Page 282

    Appendix E. DSC Code Charts GEK-00029B 282[...]

  • Page 283

    GEK-00029B 5000 Seri es Programmer’s Manual 283[...]

  • Page 284

    Appendix E. DSC Code Charts GEK-00029B 284[...]

  • Page 285

    GEK-00029B 5000 Seri es Programmer’s Manual 285[...]

  • Page 286

    Appendix E. DSC Code Charts GEK-00029B 286[...]

  • Page 287

    GEK-00029B 5000 Seri es Programmer’s Manual 287[...]

  • Page 288

    Appendix E. DSC Code Charts GEK-00029B 288[...]

  • Page 289

    GEK-00029B 5000 Seri es Programmer’s Manual 289[...]

  • Page 290

    Appendix E. DSC Code Charts GEK-00029B 290[...]

  • Page 291

    GEK-00029B 5000 Seri es Programmer’s Manual 291[...]

  • Page 292

    Appendix E. DSC Code Charts GEK-00029B 292[...]

  • Page 293

    GEK-00029B 5000 Seri es Programmer’s Manual 293[...]

  • Page 294

    Appendix E. DSC Code Charts GEK-00029B 294[...]

  • Page 295

    GEK-00029B 5000 Seri es Programmer’s Manual 295[...]

  • Page 296

    Appendix E. DSC Code Charts GEK-00029B 296[...]

  • Page 297

    GEK-00029B 5000 Seri es Programmer’s Manual 297[...]

  • Page 298

    Appendix E. DSC Code Charts GEK-00029B 298[...]

  • Page 299

    GEK-00029B 5000 Seri es Programmer’s Manual 299[...]

  • Page 300

    Appendix E. DSC Code Charts GEK-00029B 300[...]

  • Page 301

    GEK-00029B 5000 Seri es Programmer’s Manual 301[...]

  • Page 302

    Appendix E. DSC Code Charts GEK-00029B 302[...]

  • Page 303

    GEK-00029B 5000 Seri es Programmer’s Manual 303[...]

  • Page 304

    Appendix E. DSC Code Charts GEK-00029B 304[...]

  • Page 305

    GEK-00029B 5000 Seri es Programmer’s Manual 305[...]

  • Page 306

    Appendix E. DSC Code Charts GEK-00029B 306[...]

  • Page 307

    GEK-00029B 5000 Seri es Programmer’s Manual 307[...]

  • Page 308

    Appendix E. DSC Code Charts GEK-00029B 308[...]

  • Page 309

    GEK-00029B 5000 Seri es Programmer’s Manual 309[...]

  • Page 310

    Index GEK-00029B 310 INDEX A ANS I Back Space <BS> .................................................... 14 Bar Codes ................................................................ 46 Default Char acteris tics ........................................ 50 Entering an d Exiti ng ............................................ 46 Error Sym bol ....[...]

  • Page 311

    GEK-00029B 5000 Seri es Programmer’s Manual 311 Double-strik e m ode, sele ct ................................ 141 Double-w ide pri nting, c ancel............................. 142 Double-w ide pri nting, s elect.............................. 142 Elite pitch, se lect ............................................... 135 Empha sized print, cance l ..[...]

  • Page 312

    Index GEK-00029B 312 Forms s equence , start < DECIFM> .................... 167 Forms s equence , term inate < DECTFM> ........... 171 Gra phic size modif ication <G SM> .................... 175 Gra phic size selection <G SS> ........................... 175 Gra phics dens ity, s et <DECSGD > .................... 193 Ho[...]

  • Page 313

    GEK-00029B 5000 Seri es Programmer’s Manual 313 Set Horizonta l Pitc h <DECSHORP>................. 219 Set Horizo ntal Spac ing <SHS> ......................... 244 Set Horizo ntal Ta b Stops <DECSH TS> ............ 220 Set Lef t and Right Margins < DECSLRM> ....... 222 Set Line s per Physica l Page <DECSL PP > ......[...]

  • Page 314

    Index GEK-00029B 314 Control C odes <BEL> Bell ....................................................... 108 <BS> Bac kspace ............................................... 108 <CAN> Cancel ................................................... 108 <CR> Carriage return ........................................ 109 <DC1> De v[...]