diff options
Diffstat (limited to 'doc/developer/reference-html/x1667.html')
-rw-r--r-- | doc/developer/reference-html/x1667.html | 372 |
1 files changed, 372 insertions, 0 deletions
diff --git a/doc/developer/reference-html/x1667.html b/doc/developer/reference-html/x1667.html new file mode 100644 index 0000000..44ef001 --- /dev/null +++ b/doc/developer/reference-html/x1667.html @@ -0,0 +1,372 @@ +<!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="book1.html"><LINK +REL="UP" +TITLE="ESC/P2" +HREF="c464.html"><LINK +REL="PREVIOUS" +TITLE="Remote Mode Commands" +HREF="x953.html"><LINK +REL="NEXT" +TITLE="Weaving for inkjet printers" +HREF="c1715.html"><META +http-equiv="Content-Type" +content="text/html; charset=@encoding@"></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="x953.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="c1715.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="sect1" +><H1 +CLASS="sect1" +><A +NAME="AEN1667" +>Appropriate Remote Commands</A +></H1 +><P +> 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 “magic” + 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 +> An alignment sequence goes like this: + </P +><P +></P +><OL +TYPE="1" +><LI +><P +> Host uses <TT +CLASS="literal" +>DT</TT +> to print an alignment + sheet. + </P +></LI +><LI +><P +> User eyeballs the sheet to see which is the best aligned + pattern. + </P +></LI +><LI +><P +> Host sends a <TT +CLASS="literal" +>DA</TT +> command indicating + which pattern the user chose. + </P +></LI +><LI +><P +> If the user said “realign”, meaning he isn't + done yet, go to step 1. + </P +></LI +><LI +><P +> We are done: host sends a <TT +CLASS="literal" +>SV</TT +> command + and exits. + </P +></LI +></OL +><P +> 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="AEN1691" +></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 +> The sequence used by the STP 870 to print on plain paper is + </P +><DIV +CLASS="informalexample" +><P +></P +><A +NAME="AEN1694" +></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 +> and the job finishes with + </P +><DIV +CLASS="informalexample" +><P +></P +><A +NAME="AEN1697" +></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 +> 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 (“platen gap”) are + <TT +CLASS="literal" +>00 01 01</TT +> for thick papers (“matte + paper—heavyweight”, “photo paper” and + “premium glossy photo paper”) and <TT +CLASS="literal" +>00 01 + 00</TT +> for all others. + </P +><P +> 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 +> 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="x953.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="c1715.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 +>
\ No newline at end of file |