summaryrefslogtreecommitdiff
path: root/doc/developer/reference-html/x1669.html
blob: 4fad283519b20b6a626df5c8f4ee18c7c4c15a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>Appropriate Remote Commands</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="The Developer's Guide to Gutenprint"
HREF="book1.html"><LINK
REL="UP"
TITLE="ESC/P2"
HREF="c464.html"><LINK
REL="PREVIOUS"
TITLE="Remote Mode Commands"
HREF="x955.html"><LINK
REL="NEXT"
TITLE="Weaving for inkjet printers"
HREF="c1717.html"><META
http-equiv="Content-Type"
content="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="sect1"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Developer's Guide to Gutenprint</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x955.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 5. ESC/P2</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="c1717.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN1669"
>Appropriate Remote Commands</A
></H1
><P
>&#13;        All of the remote commands described above are wrapped up with
        the usual boilerplate.  The files always start with
        <VAR
CLASS="literal"
>00 00 00</VAR
> and the “magic”
        command described above, then two <VAR
CLASS="literal"
>ESC @</VAR
>s to
        reset the printer.  The remote command sequences come next; if
        they print anything that is usually followed by a
        <VAR
CLASS="literal"
>FF</VAR
> (<VAR
CLASS="literal"
>0C</VAR
> hex) character to
        feed the page, then the file ends with another two
        <VAR
CLASS="literal"
>ESC @</VAR
>s to get back to the ground state.
    </P
><P
>&#13;        An alignment sequence goes like this:
    </P
><P
></P
><OL
TYPE="1"
><LI
><P
>&#13;            Host uses <VAR
CLASS="literal"
>DT</VAR
> to print an alignment
            sheet.
          </P
></LI
><LI
><P
>&#13;            User eyeballs the sheet to see which is the best aligned
            pattern.
          </P
></LI
><LI
><P
>&#13;            Host sends a <VAR
CLASS="literal"
>DA</VAR
> command indicating
            which pattern the user chose.
          </P
></LI
><LI
><P
>&#13;            If the user said “realign”, meaning he isn't
            done yet, go to step 1.
          </P
></LI
><LI
><P
>&#13;            We are done: host sends a <VAR
CLASS="literal"
>SV</VAR
> command
            and exits.
          </P
></LI
></OL
><P
>&#13;        The sequence used (by the STC 3000, at least) to print from
        the roll feed is (with byte count omitted):
    </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN1693"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>PM 00 00
SN 00 00 00
EX 00 00 00 00 05 01
ST 00 01
SM 00 02</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>&#13;        The sequence used by the STP 870 to print on plain paper is
    </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN1696"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>PM 00 00
IR 00 03
SN 00 00 01
SN 00 01 00
SN 00 02 01
EX 00 00 00 00 05 00
FP 00 00 00</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>&#13;        and the job finishes with
    </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN1699"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>IR 00 02
LD</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>&#13;        For different paper type settings on the STP 870, the
        arguments to <VAR
CLASS="literal"
>SN</VAR
> vary.  The arguments to the
        first and third <VAR
CLASS="literal"
>SN</VAR
> commands are as outlined
        in the description of the <VAR
CLASS="literal"
>SN</VAR
> command above;
        the arguments to the second (“platen gap”) are
        <VAR
CLASS="literal"
>00 01 01</VAR
> for thick papers (“matte
        paper—heavyweight”, “photo paper” and
        “premium glossy photo paper”) and <VAR
CLASS="literal"
>00 01
        00</VAR
> for all others.
    </P
><P
>&#13;        For roll-mode printing, the STP 870's sequence changes as
        follows.  <VAR
CLASS="literal"
>IR</VAR
>'s arguments become <VAR
CLASS="literal"
>00
        01</VAR
> in the header, and <VAR
CLASS="literal"
>00 00</VAR
> after
        the job, and <VAR
CLASS="literal"
>EX</VAR
>'s last argument changes
        from <CODE
CLASS="constant"
>00</CODE
> to <CODE
CLASS="constant"
>01</CODE
>.
    </P
><P
>&#13;        For zero-margin printing on the STP 870, the arguments to
        <VAR
CLASS="literal"
>FP</VAR
> become <VAR
CLASS="literal"
>00 0xb0 0xff</VAR
>.
        This moves the origin about 5.5mm to the left, to a point one
        tenth of an inch to the left of the left-hand edge of the
        paper, allowing printing right up to (and beyond) the edge of
        the paper.  Some printers (at least the STP 870) include white
        absorbent pads at the left margin position and other positions
        (89mm and 100mm on the STP 870) to soak up ink which misses
        the edge of the paper.  Printing off the edge of paper of a
        width not aligned with a pad could result in making a mess of
        the inside of the printer and ink getting on the reverse of
        the paper.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x955.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="c1717.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Remote Mode Commands</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c464.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Weaving for inkjet printers</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>