[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
ESC @
ESC (G BC=1 ON1
ESC (U BC=1 UNIT1
ESC (U BC=5 PAGEUNITS1 VUNIT1 HUNIT1 BASEUNIT2
ESC (K BC=2 ZERO1 GRAYMODE1
ESC (i BC=1 MICROWEAVE1
Any of these commands can be used with the high four bits set to either `3' or `0'.
ESC U DIRECTION1
ESC (s BC=1 SPEED1
ESC (e BC=2 ZERO1 DOTSIZE1
ESC (C BC=2 PAGELENGTH2
ESC (C BC=4 PAGELENGTH4
ESC (c BC=4 TOP2 LENGTH2
ESC (c BC=8 TOP4 LENGTH4
ESC (S BC=8 WIDTH4 LENGTH4
ESC (v BC=2 ADVANCE2
ESC (v BC=4 ADVANCE4
ESC (V BC=2 ADVANCE2
ESC (V BC=4 ADVANCE4
ESC ($ BC=4 OFFSET4
ESC $ OFFSET2
ESC (\ BC=4 UNITS2 OFFSET2
ESC (/ BC=4 OFFSET4
ESC \ OFFSET2
ESC r COLOR1
ESC (r BC=2 DENSITY1 COLOR1
This command is not used on variable dot size printers in softweave mode.
ESC . COMPRESS1 VSEP1 HSEP1 LINES1 WIDTH2 data...
VSEP depends upon resolution and printer type. At 360 DPI, it is always `10'. At 720 DPI, it is normally `5'5. On the ESC 600, it is `40' (8 * 5). On some other printers, it varies.
HSEP1 is `10' at 360 DPI and `5' at 720 or 1440 DPI (1440 DPI cannot be printed in one pass; it is printed in two passes, with the dots separated in each pass by 1/720").
LINES is the number of lines to be printed. It should be `1' in microweave and 360 DPI. At 720 DPI softweave, it should be the number of lines to be actually printed.
WIDTH is the number of pixels to be printed in each row. Following this command, a carriage return (`13' decimal, `0A' hex) should be output to return the print head position to the left margin.
The basic data format is a string of bytes, with data from left to right on the page. Within each byte, the highest bit is first.
The TIFF compression is implemented as one count byte followed by one or more data bytes. There are two cases:
ESC i COLOR1 COMPRESS1 BITS1 BYTES2 LINES2 data...
COLOR is the color:
COMPRESS signifies the compression mode:
BITS is the number of bits per pixel.
BYTES is the number of bytes wide for each row (ceiling(BITS * width_of_row, 8)). Note that this is different from the `ESC .' command above.
LINES is the number of lines to be printed. This command is the only way to get variable dot size printing. In variable dot mode, the size of the dots increases as the value (`1', `2', or `3') increases.
ESC (D BC=4 BASE2 VERTICAL1 HORIZONTAL1
BASE is the base unit for this command; it must be `14400'.
VERTICAL is the distance in these units between printed rows; it should be (separation_in_nozzles * BASE / 720).
HORIZONTAL is the horizontal separation between dots in a row. Depending upon the printer, this should be either (14400 / 720) or (14400 / 360). The Stylus Pro 9000 manual suggests that the settings should match the chosen resolution, but that is apparently not the case (or not always the case) on other printers.
ESC (R BC=8 00 R E M O T E 1
ESC 01 @EJL [sp] ID\r\n
@EJL ID\r MFG:EPSON; CMD:ESCPL2,BDC; MDL:[printer model]; CLS:PRINTER; DES:EPSON [printer model]; \f |
After all data has been sent, a form feed byte should be sent.
All newer Epson printers (STC 440, STP 750) require the following command to be sent at least once to enable printing at all. This command specifically takes the printer out of the Epson packet mode communication protocol (whatever that is) and enables normal data transfer. Sending it multiple times is is not harmful, so it is normally sent at the beginning of each job:
ESC 01@EJL[space]1284.4[newline]@EJL[space][space][space][space] [space][newline]ESC@ |
The proper sequence of initialization commands is:
magic command ESC remote mode if needed ESC (G ESC (U ESC (K (if appropriate) ESC (i ESC U (if needed) ESC (s (if appropriate) ESC (e ESC (C ESC (c ESC (S ESC (D (if needed) ESC (V (optional -- this can be accomplished with ESC (v) |
For printing, the proper sequence is:
ESC (v |
and repeat for each color:
ESC ($ or ESC (\ or ESC \ ESC (r or ESC r (if needed---not used with `ESC i' and not needed if the color has not changed from the previous printed line) ESC . or ESC i ...data... [return] (0A hex) |
To terminate a page:
[formfeed] (0C hex) ESC @ |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |