The protocol
page.
Lexmark 5000 Initialisation, Maintenance
and Paper Movement Commands
Uncertain elements are coloured
orange; unknown elements are coloured
red.
Initialisation Commands
The following shorthand is employed for three-byte command
prefixes:
- Escm
ESC, *, m
- Esc7
ESC, *, BEL
- Esc3
ESC, *, ETX
- Esc4
ESC, *, EOT
- A5
0xA5, MSB of cmdlen, LSB of cmdlen
where cmdlen is the number of bytes following the three-byte header.
In the Windows 5000 driver, the commands for each page commence
with the sequence that follows. This sequence is essentially
unvarying for any paper size, print density or pen usage.
-
Page initialisation
Escm, 0, 0x40, AlignmentA, AlignmentB, 0xF, 0xF
Alignment A & Alignment B are, respectively,
the horizontal and the vertical alignment adjustment between
the black and colour cartridges.
-
A5, 0x40, 3, 3, 0xC0, 0xF,
0xF
Unknown function.
0xC0 is 192, but I do not know if this is
significant. Note the two terminating 0xF bytes, as with
the previous command.
-
The incrementing sequence. I
have no idea what this does. It suggests a
synchronisation sequence.
-
A5, 0x40, 4, 5
-
A5, 0x40, 4, 6
-
A5, 0x40, 4, 7
-
A5, 0x40, 4, 8
-
A5, 0x40, 0xE0, 0xB, 3
Unknown command.
-
A5, 0x40, 0xE0, 0x41, 0,
0, 0, 0, 0, 0, 0, ID
where the ID byte is 1 for the
5000, and 2 for the 5700.
Unknown
command.
-
A5, 0x40, 5, 0, 0, 0x80,
0
Unknown command.
-
Escm, 0, 0x14, 3, 0x84,
2, 0, 1, 0xF4
Unknown command.
-
Esc7, 0x63
Unknown
command (see page eject command).
-
Reset sequence:
This pair of
commands appears at the end of the page initialisation
sequence in output from the Windows driver, as here, and at
the end of both the black/colour and photo/colour the head
clean sequences. It also appears at the beginning to the
alignment print sequence for the black/colour cartridges.
-
Escm, 0, 0x42, 0,
0
-
A5, 0x40, 0xE0,
0x80, 8, 7
Maintenance Commands
The following maintenance commands are associated with the head
cleaning and alignment printing functions. They are
thoughtfully provided by Lexmark in the files
c:\windows\system\jolxcln.out &
c:\windows\system\jolxalgn.out, which contain the printer
commands for head cleaning and alignment, respectively, for the
combination of black and colour cartridges, and the files
c:\windows\system\jolxphcl.out &
c:\windows\system\jolxphal.out, which perform the same functions
for the combination of photo and colour cartridges.
-
Escm, 0, 0x19, 0
Prints black "staircase" nozzle test, and moves paper.
-
Escm, 0, 0x19, 1
Prints colour "staircase" nozzle test, and moves paper.
-
Escm 0, 4, 0, 0xa, 0,
1
Moves the cartridge mechanism, bringing the black
cartridge over the edge of the paper briefly, and returning
the cartridge to a parked position. Don't ask.
-
Escm, 0, 4, 0, 0x80,
0, 1
Moves the cartridge mechanism, bringing the
colour cartridge over the edge of the paper briefly, and
returning the cartridge to a parked position. Don't ask.
-
Escm, 0, 0x17, 0
Prints a solid black swipe from all 208 nozzles, and moves the
paper.
-
Escm, 0, 0x17, 1
Prints three solid bars, one from each of the colour pens, in
a single pass of the colour print head, and moves the paper.
-
Escm, 0, 0x23, 3, 2, 0
Print a "fence" of vertical cyan lines, 64 bits deep, for the
alignment tests. Prints right to left (normal for
unidirectional colour printing).
-
Escm, 0, 0x23, 3, 1, 2
Print a "fence" of vertical cyan lines, 64 bits deep, for the
alignment tests. Prints left to right.
-
Escm, 0, 0x23, 3, 2, 3
Print a "fence" of vertical cyan lines, 64 bits deep, for the
alignment tests. Prints right to left.
-
Escm, 0, 0x23, 1, 1, 1
Print a "fence" of vertical black lines for the
unidirectional alignment tests. Prints left to right.
-
Escm, 0, 0x23, 1, 1, 0
Print a "fence" of vertical black lines for the
bidirectional alignment tests. Prints left to right.
-
Escm, 0, 0x23, 1, 2, 1
Print a "fence" of vertical black lines for the
bidirectional alignment tests. Prints right to left.
-
A5, 0x40, 0xE0, 0xB, 2, 0,
0, 0, 0xF
Unknown command (from alignment print header.)
-
A5, 0x40, 0xE0, 0xB, 4, 0,
0, 0, 0xF
Unknown command (from alignment print header.)
-
A5, 0x40, 0xE0, 0xB, 4, 0,
0, 1, 0xF
Unknown command (from alignment print header.)
-
Esc7, 0x73, 0x30
Unknown command.
Paper Movement Commands
There are two known commands that are specific to paper
movement.
-
Esc3, Displacement-MSByte,
Displacement-LSByte
Vertical move command; where
Displacement is the vertical distance to move the paper from
its current position, in 1200ths of an inch. It is a
two-byte value in network order; most significant byte
first. It is not known whether negative values are
supported.
-
Esc7, 0x65
Page eject command.
The protocol
page.
Created with
Last modified: Mon Nov 8 00:11:30 EST 1999
Tue 19th Oct 1999.