summaryrefslogtreecommitdiff
path: root/doc/developer/reference-html/x955.html
blob: 25d78812289b6a127ea4ef26eaf4754b8ab7e1d7 (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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>Remote Mode 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="ESC/P2"
HREF="c464.html"><LINK
REL="NEXT"
TITLE="Appropriate Remote Commands"
HREF="x1669.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="c464.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="x1669.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN955"
>Remote Mode Commands</A
></H1
><P
>&#13;    The following description of remote commands comes out of an
    examination of the sequences used by the printer utilities
    bundled with the Windows drivers for the ESC740, and from other
    sources (some Epson manuals, experimentation, analysis of print
    files).  It is largely speculative as these commands are not all
    documented in the Epson documentation we have access to.
    Generally, newer manuals provide more thorough documentation.
  </P
><P
>&#13;    Remote command mode is entered when the printer is sent the
    following sequence:
  </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN959"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>ESC (R BC=8 00 R E M O T E 1</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>&#13;    Remote mode commands are then sent, and terminated with the
    following sequence:
  </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN962"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>ESC 00 00 00</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>&#13;    All remote mode commands must be sent before the initial
    <VAR
CLASS="literal"
>ESC (G</VAR
> command is sent.
  </P
><P
>&#13;    This introductory sequence is then followed by a sequence of
    commands.  Each command is constructed as follows:
  </P
><P
></P
><OL
TYPE="1"
><LI
><P
>&#13;        Two ASCII bytes indicating the function
      </P
></LI
><LI
><P
>&#13;        A byte count (two bytes, little-endian) for the parameters
      </P
></LI
><LI
><P
>&#13;        Binary parameters, if any
      </P
></LI
></OL
><P
>&#13;      This is a list of all remote commands we have seen:
  </P
><P
></P
><DIV
CLASS="variablelist"
><P
><B
>ESC/P2 Remote Mode Commands</B
></P
><DL
><DT
><VAR
CLASS="literal"
>NC <VAR
CLASS="varname"
>BC</VAR
>=2 00
          00</VAR
></DT
><DD
><P
>&#13;          Print a nozzle check pattern.
        </P
></DD
><DT
><VAR
CLASS="literal"
>VI <VAR
CLASS="varname"
>BC</VAR
>=2 00
          00</VAR
></DT
><DD
><P
>&#13;          On my 740, prints the following, probably “version
          information”:
        </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN989"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>W01286 I02382\r\n</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
></DD
><DT
><VAR
CLASS="literal"
>* AI <VAR
CLASS="varname"
>BC</VAR
>=3 00 00 00</VAR
></DT
><DD
><P
>&#13;          Prints a “printer ID”.  On one 870, prints the
          following:
        </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN997"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>51-51-50-51-49-48\r\n</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>&#13;          The Windows driver has a text entry field where this
          number can be entered, but its purpose is unknown.
        </P
></DD
><DT
><VAR
CLASS="literal"
>* LD <VAR
CLASS="varname"
>BC</VAR
>=0</VAR
></DT
><DD
><P
>&#13;          Load printer defaults from NVRAM, DIP switches, and/or
          ROM. This apparently does not load factory defaults per
          se, but any settings that are saved.  This is commonly
          used right at the end of each print job after the
          <VAR
CLASS="literal"
>ESC @</VAR
> printer reset command.
        </P
></DD
><DT
><VAR
CLASS="literal"
>* CH <VAR
CLASS="varname"
>BC</VAR
>=2 00
          <VAR
CLASS="varname"
>xx</VAR
></VAR
></DT
><DD
><P
>&#13;          Perform a head cleaning cycle.  The heads to clean are
          determined by parameter <VAR
CLASS="varname"
>xx</VAR
>:
      </P
><DIV
CLASS="table"
><A
NAME="AEN1015"
></A
><P
><B
>Table 5-5. Head cleaning parameters</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL
WIDTH="1*"
TITLE="id"><COL
WIDTH="1*"
TITLE="description"><THEAD
><TR
><TH
><VAR
CLASS="varname"
>xx</VAR
></TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
><CODE
CLASS="constant"
>00</CODE
></TD
><TD
>Clean all heads</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>01</CODE
></TD
><TD
>Clean black head</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>02</CODE
></TD
><TD
>Clean color heads</TD
></TR
></TBODY
></TABLE
></DIV
><P
>&#13;          While <VAR
CLASS="varname"
>xx</VAR
> = <CODE
CLASS="constant"
>00</CODE
> is
          likely supported by all printers, <VAR
CLASS="varname"
>xx</VAR
>
          = <CODE
CLASS="constant"
>01</CODE
> and <CODE
CLASS="constant"
>02</CODE
>
          are not.
        </P
></DD
><DT
><VAR
CLASS="literal"
>* DT <VAR
CLASS="varname"
>BC</VAR
>=3 00
          <VAR
CLASS="varname"
>xx</VAR
> 00</VAR
></DT
><DD
><P
>&#13;          Print an alignment pattern.  There are three patterns,
          which are picked via the choice of
          <VAR
CLASS="varname"
>xx</VAR
>.  Pattern <CODE
CLASS="constant"
>0</CODE
>
          is coarse, pattern <CODE
CLASS="constant"
>1</CODE
> is medium, and
          pattern <CODE
CLASS="constant"
>2</CODE
> is fine.
        </P
></DD
><DT
><VAR
CLASS="literal"
>* DA <VAR
CLASS="varname"
>BC</VAR
>=4 00
          <VAR
CLASS="varname"
>xx</VAR
> 00
          <VAR
CLASS="varname"
>yy</VAR
></VAR
></DT
><DD
><P
>&#13;          Set results for the alignment pattern.
          <VAR
CLASS="varname"
>xx</VAR
> is the pattern
          (<CODE
CLASS="constant"
>1</CODE
>--<CODE
CLASS="constant"
>3</CODE
>);
          <VAR
CLASS="varname"
>yy</VAR
> is the best choice from the set
          (<CODE
CLASS="constant"
>1</CODE
>--<CODE
CLASS="constant"
>7</CODE
> or
          <CODE
CLASS="constant"
>1</CODE
>--<CODE
CLASS="constant"
>15</CODE
>).  This
          does not save to NVRAM, so when the printer is powered
          off, the setting will be lost.
        </P
></DD
><DT
><VAR
CLASS="literal"
>* SV <VAR
CLASS="varname"
>BC</VAR
>=0</VAR
></DT
><DD
><P
>&#13;          Save the current settings to NVRAM.
        </P
></DD
><DT
><VAR
CLASS="literal"
>* RS <VAR
CLASS="varname"
>BC</VAR
>=1
          01</VAR
></DT
><DD
><P
>&#13;          Reset the printer.
        </P
></DD
><DT
><VAR
CLASS="literal"
>* IQ <VAR
CLASS="varname"
>BC</VAR
>=1
          01</VAR
></DT
><DD
><P
>&#13;          Get ink quantity.  This requires direct access to the
          printer port.  The return looks like
        </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN1089"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>IQ:KKCCMMYY</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>&#13;          or
        </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN1092"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>IQ:KKCCMMYYccmm</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>&#13;          (for 4-color and 6-color printers respectively), where
          each pair of digits are hexadecimal representations of
          percent.
        </P
></DD
></DL
></DIV
><P
>&#13;  The following two commands have been observed on an STP 870.
</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><VAR
CLASS="literal"
>* IR <VAR
CLASS="varname"
>BC</VAR
>=2 00
          <VAR
CLASS="varname"
>xx</VAR
></VAR
></DT
><DD
><P
>&#13;          <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Function unknown</I
></SPAN
>.  This command has
          been observed on an STP 870 with
          <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>03</CODE
> at the start
          of a job and <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>02</CODE
>
          at the end of a job (where it is followed by an
          <VAR
CLASS="literal"
>LD</VAR
> command).  When in roll mode, the
          values change to
          <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>01</CODE
> at the start
          of a job and <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>00</CODE
>
          at the end of a job.
        </P
></DD
><DT
><VAR
CLASS="literal"
>* FP <VAR
CLASS="varname"
>BC</VAR
>=3 00
          <VAR
CLASS="varname"
>pos</VAR
>[2]</VAR
></DT
><DD
><P
>&#13;          Specify the horizontal left margin in units of 1/360 inch.
          The default value for <VAR
CLASS="varname"
>pos</VAR
> is
          <CODE
CLASS="constant"
>0</CODE
>.  For borderless printing on
          printers that support it, a value of
          <CODE
CLASS="constant"
>-80</CODE
> (<CODE
CLASS="constant"
>FFB0h</CODE
>)
          should be used.
        </P
></DD
></DL
></DIV
><P
>&#13;    The commands below are partially documented in the Stylus Pro
    9000 manual.  Much of this information is interpreted; none is
    tested.
  </P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><VAR
CLASS="literal"
>* SN <VAR
CLASS="varname"
>BC</VAR
>=3 00
            <VAR
CLASS="varname"
>xx</VAR
> <VAR
CLASS="varname"
>yy</VAR
></VAR
></DT
><DD
><P
>&#13;            Select Mechanism Sequence.  <VAR
CLASS="varname"
>xx</VAR
>
            controls which sub-operation is performed.
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>00</CODE
> selects
            the “Feed paper sequence setting”.
            <VAR
CLASS="varname"
>yy</VAR
> can take on the following values
            (on the STP 870, at any rate):
          </P
><DIV
CLASS="table"
><A
NAME="AEN1139"
></A
><P
><B
>Table 5-6. Media types</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL
WIDTH="1*"
TITLE="id"><COL
WIDTH="1*"
TITLE="description"><THEAD
><TR
><TH
><VAR
CLASS="varname"
>yy</VAR
></TH
><TH
>Media type</TH
></TR
></THEAD
><TBODY
><TR
><TD
><CODE
CLASS="constant"
>0</CODE
></TD
><TD
>Default</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>1</CODE
></TD
><TD
>Plain paper</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>2</CODE
></TD
><TD
>Postcards</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>3</CODE
></TD
><TD
>&#13;                    Film (photo quality glossy film, transparencies)
                  </TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>4</CODE
></TD
><TD
>Envelopes</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>5</CODE
></TD
><TD
>Plain paper (fast load)</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>6</CODE
></TD
><TD
>&#13;                    Back light film (although this has been observed
                    with heavyweight matte paper)
                  </TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>7</CODE
></TD
><TD
>&#13;                    Matte paper (observed with 360 dpi inkjet paper,
                    and photo quality inkjet paper)
                  </TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>8</CODE
></TD
><TD
>Photo paper</TD
></TR
></TBODY
></TABLE
></DIV
><P
>&#13;            Experimentation suggests that this setting changes
            details of how the printers' cut sheet feeder works,
            presumably to tune it for different types of paper.
          </P
><P
>&#13;            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>01</CODE
> controls
            the platen gap setting;
            <VAR
CLASS="varname"
>yy</VAR
>=<CODE
CLASS="constant"
>00</CODE
> is the
            default, <VAR
CLASS="varname"
>yy</VAR
>=<CODE
CLASS="constant"
>1</CODE
> or
            <CODE
CLASS="constant"
>2</CODE
> are higher settings.
          </P
><P
>&#13;            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>02</CODE
> controls
            paper loading speed
            (<VAR
CLASS="varname"
>yy</VAR
>=<CODE
CLASS="constant"
>0</CODE
> is normal,
            <CODE
CLASS="constant"
>1</CODE
> is fast, <CODE
CLASS="constant"
>2</CODE
>
            is slow).  It appears that <CODE
CLASS="constant"
>1</CODE
> is
            used when printing on “plain paper”,
            “360dpi ink jet paper” or “ink jet
            transparencies”, and
            <VAR
CLASS="varname"
>yy</VAR
>=<CODE
CLASS="constant"
>00</CODE
> for all
            other paper type settings.
          </P
><P
>&#13;            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>07</CODE
> controls
            duplex printing for printers with that capability
            (<VAR
CLASS="varname"
>yy</VAR
>=<VAR
CLASS="varname"
>0</VAR
> is default,
            for non-duplex printing; <CODE
CLASS="constant"
>1</CODE
> is front
            side of the paper, and <VAR
CLASS="varname"
>2</VAR
> is back
            side).
          </P
><P
>&#13;            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>09</CODE
> controls
            zero margin printing on the printers with the capability
            of printing zero-margin on all sides (Stylus Photo
            780/790, 890, and 1280/1290).
            <VAR
CLASS="varname"
>yy</VAR
>=<CODE
CLASS="constant"
>0</CODE
> is the
            default; <CODE
CLASS="constant"
>1</CODE
> enables zero margin
            printing.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* PP <VAR
CLASS="varname"
>BC</VAR
>=3 00
            <VAR
CLASS="varname"
>xx</VAR
>
            <VAR
CLASS="varname"
>yy</VAR
></VAR
></DT
><DD
><P
>&#13;            Set Paper Path.
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>2</CODE
> indicates
            manual feed,
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>3</CODE
> is for roll
            paper.  <VAR
CLASS="varname"
>yy</VAR
> selects “paper path
            number”.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* AC <VAR
CLASS="varname"
>BC</VAR
>=2 00
            <VAR
CLASS="varname"
>xx</VAR
></VAR
></DT
><DD
><P
>&#13;            Set Auto Cutting State.
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>0</CODE
> selects
            auto cutting off,
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>1</CODE
> selects
            auto cutting on, and
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>2</CODE
> indicates
            horizontal print page line on.  It appears that with
            auto cutting on, roll paper is cut automatically at the
            point a formfeed character is sent.  The formfeed
            character is normally used to eject a page; with this
            turned on, it also cuts the roll paper.  Horizontal
            print page line on prints a narrow line of black dots at
            the position the paper should be cut manually.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* DR <VAR
CLASS="varname"
>BC</VAR
>=4 00 xx
            <VAR
CLASS="varname"
>DT2</VAR
></VAR
></DT
><DD
><P
>&#13;            Set Drying Time.
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>00</CODE
> sets the
            drying time “per scan” (per pass?);
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>01</CODE
> sets the
            drying time per page. <VAR
CLASS="varname"
>DT</VAR
> indicates
            the drying time, which is in seconds if page mode is
            used and in milliseconds if scan mode is used.
            <VAR
CLASS="varname"
>DT</VAR
> must not exceed 3600 seconds in
            per-page mode and 10000 milliseconds in per-scan mode.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* IK <VAR
CLASS="varname"
>BC</VAR
>=2 00
            <VAR
CLASS="varname"
>xx</VAR
></VAR
></DT
><DD
><P
>&#13;            Select Ink Type.
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>00</CODE
> selects
            dye ink.  Pigment ink is apparently selected by
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>01</CODE
>.  This
            probably does not apply to the consumer-grade printers.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* PZ BC=2 00 xx</VAR
></DT
><DD
><P
>&#13;            Set Pause After Printing.
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>00</CODE
> selects no
            pause after printing;
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>01</CODE
> selects
            pause after printing.  If turned on, the printer is
            paused after the page is ejected (by the FF byte).  If
            cutting is turned on, the printer is paused
            <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>after</I
></SPAN
> the cutting or printing of
            the horizontal cut line.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* EX <VAR
CLASS="varname"
>BC</VAR
>=6 00 00 00 00 0x14
          <VAR
CLASS="varname"
>xx</VAR
></VAR
></DT
><DD
><P
>&#13;            Set Vertical Print Page Line Mode.
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>00</CODE
> is off,
            <VAR
CLASS="varname"
>xx</VAR
>=<CODE
CLASS="constant"
>01</CODE
> is on.  If
            turned on, this prints vertical trim lines at the left
            and right margins.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* EX <VAR
CLASS="varname"
>BC</VAR
>=6 00 00 00 00 0x05
            <VAR
CLASS="varname"
>xx</VAR
></VAR
></DT
><DD
><P
>&#13;            Set Roll Paper Mode.  If <VAR
CLASS="varname"
>xx</VAR
> is
            <CODE
CLASS="constant"
>0</CODE
>, roll paper mode is off; if
            <VAR
CLASS="varname"
>xx</VAR
> is <CODE
CLASS="constant"
>1</CODE
>, roll
            paper mode is on.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* EX <VAR
CLASS="varname"
>BC</VAR
>=3 00
            <VAR
CLASS="varname"
>xx</VAR
> <VAR
CLASS="varname"
>yy</VAR
></VAR
></DT
><DD
><P
>&#13;            Appears to be a synonym for the <VAR
CLASS="literal"
>SN</VAR
>
            command described above.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* PH <VAR
CLASS="varname"
>BC</VAR
>=2 00
            <VAR
CLASS="varname"
>xx</VAR
></VAR
></DT
><DD
><P
>&#13;            Select Paper Thickness.  Set the paper thickness
            <VAR
CLASS="varname"
>xx</VAR
> in .1 mm units.  This must not
            exceed <CODE
CLASS="constant"
>0x10</CODE
> (1.6 mm).  If the
            thickness is set “more than” .6 mm (which
            probably means “at least” 0.6 mm, since the
            other case reads “less than 0.5 mm”), the
            platen gap is set high irrespective of the
            <VAR
CLASS="literal"
>SN</VAR
> command.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* PM <VAR
CLASS="varname"
>BC</VAR
>=2 00
            00</VAR
></DT
><DD
><P
>&#13;            <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Function unknown</I
></SPAN
>. Used on the STC
            3000 at least when using roll feed, and on the STP 870
            in all print files analysed to date.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* ST <VAR
CLASS="varname"
>BC</VAR
>=2 00
            <VAR
CLASS="varname"
>xx</VAR
></VAR
></DT
><DD
><P
>&#13;            Epson's STP 750/1200 programming guide refers to the
            <VAR
CLASS="literal"
>ST</VAR
> command as “Set printer
            state reply”.  If <VAR
CLASS="varname"
>xx</VAR
> is
            <CODE
CLASS="constant"
>0</CODE
> or <CODE
CLASS="constant"
>2</CODE
>, the
            printer will not send status replies.  If
            <VAR
CLASS="varname"
>xx</VAR
> is <CODE
CLASS="constant"
>1</CODE
> or
            <CODE
CLASS="constant"
>3</CODE
>, the printer will send status
            replies.  The status replies consist of state, error
            codes, ink leve, firmware version, and warning status.
          </P
><P
>&#13;            The actual reply is documented as
          </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN1341"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>@BDC ST\r
ST: xx;
[ER: yy;]
IQ: n1n2n3n4;
[WR: w1,w2...;]
RV: zz;
AI:CW:02kkccmmyy, MI:mm
[TC:tttt;]
INK:...;
\f</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>&#13;            (<VAR
CLASS="literal"
>\r</VAR
> is carriage return;
            <VAR
CLASS="literal"
>\n</VAR
> is newline; <VAR
CLASS="literal"
>\f</VAR
>
            is formfeed.)
          </P
><P
>&#13;            <VAR
CLASS="literal"
>ST</VAR
> is the printer status:
          </P
><DIV
CLASS="table"
><A
NAME="AEN1349"
></A
><P
><B
>Table 5-7. Printer status codes</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL
WIDTH="1*"
TITLE="status"><COL
WIDTH="1*"
TITLE="description"><THEAD
><TR
><TH
>Status code</TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
><CODE
CLASS="constant"
>00</CODE
></TD
><TD
>Error</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>01</CODE
></TD
><TD
>Self-test</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>02</CODE
></TD
><TD
>Busy</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>03</CODE
></TD
><TD
>Waiting while printing</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>04</CODE
></TD
><TD
>Idle</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>07</CODE
></TD
><TD
>Cleaning/filling ink heads</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>08</CODE
></TD
><TD
>Not yet initialized/filling heads</TD
></TR
></TBODY
></TABLE
></DIV
><P
>&#13;            <VAR
CLASS="literal"
>ER</VAR
>, if provided, is the error status:
          </P
><DIV
CLASS="table"
><A
NAME="AEN1389"
></A
><P
><B
>Table 5-8. Printer error codes</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL
WIDTH="1*"
TITLE="error"><COL
WIDTH="1*"
TITLE="description"><THEAD
><TR
><TH
>Error code</TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
><CODE
CLASS="constant"
>00</CODE
></TD
><TD
>Fatal Error</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>01</CODE
></TD
><TD
>Interface not selected</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>04</CODE
></TD
><TD
>Paper jam</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>05</CODE
></TD
><TD
>Out of ink</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>06</CODE
></TD
><TD
>Paper out</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>0D</CODE
></TD
><TD
>Paper gap error</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>10</CODE
></TD
><TD
>Maintenance request</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>11</CODE
></TD
><TD
>Tear-off mode selected</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>12</CODE
></TD
><TD
>Double feed error</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>1C</CODE
></TD
><TD
>Cutter position error</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>1D</CODE
></TD
><TD
>Cutter jam</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>1E</CODE
></TD
><TD
>Ink color error</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>23</CODE
></TD
><TD
>Ink combination error</TD
></TR
></TBODY
></TABLE
></DIV
><P
>&#13;            <VAR
CLASS="literal"
>IQ</VAR
> is the amount of ink left, as a
            (decimal!)  percentage expressed in hexadecimal.  The
            values are black, cyan, magenta, and yellow.  6 and 7
            color printers usually specify two or three additional
            values for light cyan, light magenta, and gray.
            However, some low end 6-color printers specify only four
            values.
          </P
><P
>&#13;            For printers with different ink cartridge options, the
            following additional values may appear:
          </P
><DIV
CLASS="table"
><A
NAME="AEN1454"
></A
><P
><B
>Table 5-9. Printer additional ink codes</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL
WIDTH="1*"
TITLE="code"><COL
WIDTH="1*"
TITLE="description"><THEAD
><TR
><TH
>Ink code</TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
><CODE
CLASS="constant"
>NA</CODE
></TD
><TD
>Ink cartridge is not inserted</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>RE</CODE
></TD
><TD
>&#13;                    Ink cartridge information cannot be read
                  </TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>WE</CODE
></TD
><TD
>&#13;                    Ink cartridge information cannot be written
                  </TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>CI</CODE
></TD
><TD
>&#13;                    Ink cartridge is inserted, but has not been read
                  </TD
></TR
></TBODY
></TABLE
></DIV
><P
>&#13;            <VAR
CLASS="literal"
>WR</VAR
>, if provided, is the warning status:
          </P
><DIV
CLASS="table"
><A
NAME="AEN1482"
></A
><P
><B
>Table 5-10. Printer warning codes</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL
WIDTH="1*"
TITLE="warning"><COL
WIDTH="1*"
TITLE="description"><THEAD
><TR
><TH
>Warning code</TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
><CODE
CLASS="constant"
>10</CODE
></TD
><TD
>&#13;                    Black ink low (Photo black on printers using
                    UltraChrome® ink)
                  </TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>11</CODE
></TD
><TD
>Cyan</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>12</CODE
></TD
><TD
>Magenta</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>13</CODE
></TD
><TD
>Yellow</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>14</CODE
></TD
><TD
>Light cyan (presumably)</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>15</CODE
></TD
><TD
>Light magenta (presumably)</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>17</CODE
></TD
><TD
>&#13;                    Gray (with UltraChrome-compatible printers)
                  </TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>18</CODE
></TD
><TD
>Matte black 1 (UltraChrome)</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>19</CODE
></TD
><TD
>Matte black 2 (UltraChrome)</TD
></TR
></TBODY
></TABLE
></DIV
><P
>&#13;            <VAR
CLASS="literal"
>RV</VAR
> is the firmware revision (one byte
            ASCII).
          </P
><P
>&#13;            <VAR
CLASS="literal"
>AI</VAR
> is actuator information.  These
            are two byte ASCII codes that indicate ``ink weight rank
            ID'' of KCMY, respectively.
          </P
><P
>&#13;          <VAR
CLASS="literal"
>TC</VAR
>, if provided, is the total time of
          cleaning or ink filling (?).
          </P
><P
>&#13;            <VAR
CLASS="literal"
>RC</VAR
>, if provided, is the firmware
            revision.
          </P
><P
>&#13;            <VAR
CLASS="literal"
>INK:</VAR
> and <VAR
CLASS="literal"
>MI</VAR
> are
            <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>not documented</I
></SPAN
>.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* SM <VAR
CLASS="varname"
>BC</VAR
>=2 00
            <VAR
CLASS="varname"
>xx</VAR
></VAR
></DT
><DD
><P
>&#13;            Set Status Reply Rate.  <VAR
CLASS="varname"
>xx</VAR
> is the
            repeat interval in seconds.  If <VAR
CLASS="varname"
>xx</VAR
> is
            <CODE
CLASS="constant"
>0</CODE
>, the status is returned only when
            the printer's state changes.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* ST <VAR
CLASS="varname"
>BC</VAR
>=1
            01</VAR
></DT
><DD
><P
>&#13;            Reply Printer Status.  The reply is formatted as follows:
          </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN1556"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>@BDC PS\r\nST:<VAR
CLASS="varname"
>xx</VAR
>;\f</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>&#13;            <VAR
CLASS="literal"
>\r</VAR
> is carriage return;
            <VAR
CLASS="literal"
>\n</VAR
> is newline; <VAR
CLASS="literal"
>\f</VAR
> is
            formfeed).  If <VAR
CLASS="varname"
>xx</VAR
> (the reply value) is
            <CODE
CLASS="constant"
>0</CODE
> or <CODE
CLASS="constant"
>2</CODE
>,
            automatic status update is disabled; if
            <CODE
CLASS="constant"
>1</CODE
> or <CODE
CLASS="constant"
>3</CODE
>, it is
            enabled.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* SM <VAR
CLASS="varname"
>BC</VAR
>=1
            01</VAR
></DT
><DD
><P
>&#13;            Reply Printer Status Rate.  The reply is formatted as
            follows:
          </P
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN1574"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>@BDC PS\r\nST:xx;\f</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>&#13;            <VAR
CLASS="literal"
>\r</VAR
> is carriage return;
            <VAR
CLASS="literal"
>\n</VAR
> is newline; <VAR
CLASS="literal"
>\f</VAR
> is
            formfeed).  See <VAR
CLASS="literal"
>SM
              <VAR
CLASS="varname"
>BC</VAR
>=2</VAR
> above for the meaning of
            the return value.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* ??
            <VAR
CLASS="varname"
>BC</VAR
>=<VAR
CLASS="varname"
>xx</VAR
>
            <VAR
CLASS="varname"
>y</VAR
>[1] …
            <VAR
CLASS="varname"
>y</VAR
>[xx]</VAR
></DT
><DD
><P
>&#13;            Echo Parameters (perhaps better described as Echo
            Commands).  The command string is executed (it would
            appear from the documentation), and the string sent is
            returned using a sequence similar to that described in
            the <VAR
CLASS="literal"
>ST <VAR
CLASS="varname"
>BC</VAR
>=1</VAR
> and
            <VAR
CLASS="literal"
>SM <VAR
CLASS="varname"
>BC</VAR
>=1</VAR
> commands.
            Note that in this case the number of bytes is variable!
          </P
></DD
><DT
><VAR
CLASS="literal"
>* SM <VAR
CLASS="varname"
>BC</VAR
>=2 00
            02</VAR
></DT
><DD
><P
>&#13;            <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Function unknown</I
></SPAN
>.  Used on the STC
            3000 at least when using roll feed.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* JE <VAR
CLASS="varname"
>BC</VAR
>=1
            00</VAR
></DT
><DD
><P
>&#13;            <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Function unknown</I
></SPAN
>.  On new printers
            (STC 740 or newer), this command should be sent after
            all data has been sent.  If this command is not sent,
            and the printer is connected to a Windows system, the
            last page of the job will not print completely.  The
            most likely explanation for for this is that the Windows
            driver typically puts the printer in 1284.4 packet mode,
            and this command has the effect of flushing the buffer
            in the printer.
          </P
></DD
><DT
><VAR
CLASS="literal"
>* CO <VAR
CLASS="varname"
>BC</VAR
>=8 00
            <VAR
CLASS="varname"
>cutter</VAR
>[1] <VAR
CLASS="varname"
>page</VAR
>[1]
            <VAR
CLASS="varname"
>unit</VAR
>[1]
            <VAR
CLASS="varname"
>position</VAR
>[4]</VAR
></DT
><DD
><P
>&#13;            Specify paper cutting on Stylus Photo 2200 (and perhaps
            some other printers).  <VAR
CLASS="varname"
>cutter</VAR
> must be
            0.  <VAR
CLASS="varname"
>page</VAR
> should be one of the
            following:
          </P
><DIV
CLASS="table"
><A
NAME="AEN1621"
></A
><P
><B
>Table 5-11. Paper cutting codes</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL
WIDTH="1*"
TITLE="code"><COL
WIDTH="1*"
TITLE="description"><THEAD
><TR
><TH
>Code</TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
><CODE
CLASS="constant"
>0</CODE
></TD
><TD
>All pages</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>1</CODE
></TD
><TD
>First page only</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>2</CODE
></TD
><TD
>Last page only</TD
></TR
></TBODY
></TABLE
></DIV
><P
>&#13;            <VAR
CLASS="varname"
>unit</VAR
> should be one of the following:
          </P
><DIV
CLASS="table"
><A
NAME="AEN1645"
></A
><P
><B
>Table 5-12. Paper cutting units</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL
WIDTH="1*"
TITLE="code"><COL
WIDTH="1*"
TITLE="description"><THEAD
><TR
><TH
>Code</TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
><CODE
CLASS="constant"
>0</CODE
></TD
><TD
>1/360 in.</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>1</CODE
></TD
><TD
>1/720 in.</TD
></TR
><TR
><TD
><CODE
CLASS="constant"
>2</CODE
></TD
><TD
>1/1440 in.</TD
></TR
></TBODY
></TABLE
></DIV
><P
>&#13;            This command should be used twice.  The first
            <VAR
CLASS="literal"
>CO</VAR
> command specifies where the page
            will be cut at the top, and the second specifies where
            the page will be cut at the bottom.  This permits
            cutting both the top and the bottom of the page.
          </P
></DD
></DL
></DIV
></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="c464.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="x1669.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>ESC/P2</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c464.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Appropriate Remote Commands</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>