summaryrefslogtreecommitdiff
path: root/doc/developer/reference-html/x1669.html
blob: 1080dee951e5fe113656146d54178c829610dfe2 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Appropriate Remote Commands</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="The Developer's Guide to Gutenprint"
HREF="index.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"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><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"
>5.3. 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
        <TT
CLASS="literal"
>00 00 00</TT
> and the &#8220;magic&#8221;
        command described above, then two <TT
CLASS="literal"
>ESC @</TT
>s to
        reset the printer.  The remote command sequences come next; if
        they print anything that is usually followed by a
        <TT
CLASS="literal"
>FF</TT
> (<TT
CLASS="literal"
>0C</TT
> hex) character to
        feed the page, then the file ends with another two
        <TT
CLASS="literal"
>ESC @</TT
>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 <TT
CLASS="literal"
>DT</TT
> 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 <TT
CLASS="literal"
>DA</TT
> command indicating
            which pattern the user chose.
          </P
></LI
><LI
><P
>&#13;            If the user said &#8220;realign&#8221;, meaning he isn't
            done yet, go to step 1.
          </P
></LI
><LI
><P
>&#13;            We are done: host sends a <TT
CLASS="literal"
>SV</TT
> 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
><PRE
CLASS="screen"
>PM 00 00
SN 00 00 00
EX 00 00 00 00 05 01
ST 00 01
SM 00 02</PRE
><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
><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
><P
></P
></DIV
><P
>&#13;        and the job finishes with
    </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN1699"
></A
><PRE
CLASS="screen"
>IR 00 02
LD</PRE
><P
></P
></DIV
><P
>&#13;        For different paper type settings on the STP 870, the
        arguments to <TT
CLASS="literal"
>SN</TT
> vary.  The arguments to the
        first and third <TT
CLASS="literal"
>SN</TT
> commands are as outlined
        in the description of the <TT
CLASS="literal"
>SN</TT
> command above;
        the arguments to the second (&#8220;platen gap&#8221;) are
        <TT
CLASS="literal"
>00 01 01</TT
> for thick papers (&#8220;matte
        paper&#8212;heavyweight&#8221;, &#8220;photo paper&#8221; and
        &#8220;premium glossy photo paper&#8221;) and <TT
CLASS="literal"
>00 01
        00</TT
> for all others.
    </P
><P
>&#13;        For roll-mode printing, the STP 870's sequence changes as
        follows.  <TT
CLASS="literal"
>IR</TT
>'s arguments become <TT
CLASS="literal"
>00
        01</TT
> in the header, and <TT
CLASS="literal"
>00 00</TT
> after
        the job, and <TT
CLASS="literal"
>EX</TT
>'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
        <TT
CLASS="literal"
>FP</TT
> become <TT
CLASS="literal"
>00 0xb0 0xff</TT
>.
        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="index.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
>