Debian Codegraph @

doc/developer/reference-html/x1675.html

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