3.11 Dp6 & Dp7 Programming
3.11 Dp6 & Dp7 Programming
Commands prefixed with a * will not be executed until after an ENQ is received if the BLOCK protocol is
used. ENQs are not required if DTR or XON/XOF protocols are used.
15
3.11.2 Mode C Document Movement Commands
BS or ESC ] moves the document down one line, with line spacing keypad selected (see
3.6.1) or set by an HT command.
LF moves the document up one line, with line spacing keypad selected (see 3.6.1) or set by
an HT command.
VT n moves the document a variable number of lines or steps with n being a single byte, bit
coded as 01ULCCCC where:
U = 1 = Up feed U = 0 = Down feed
L = 1 = Line feed (1/6” or 1/5”) L = 0 = Step feed (1/60”)
CCCC = Line count or step count
ESC n moves the document up (CCCC)/120 inches where n is a single byte bit coded as
0011CCCC.
ESC J n moves the document up n/216 inches where n is a single binary coded byte.
FF ejects the document.
If any document movement command (BS, LF, VT, ESC n, ESC ], ESC J n or FF) has been preceded by any
printable ASCII characters, they will be printed before the movement command is executed.
3.11.3 Mode C Print Commands
CR prints all preceding printable ASCII characters. There is no document movement due to the
CR.
SO starts double width printing. All characters received after an SO and before an SI, CR or
feed command will be printed double width.
SI stops double width character printing.
ESC SO starts double height printing. All characters received after an ESC SO and before an ESC
SI, CR or feed command will be printed double height. Single height characters will be
printed in line with the top of double height characters if they are mixed in a print line.
ESC SI stops double height printing.
ESC E starts bold, double strike printing in 10 and 12 character/inch NORMAL print speed and
reduces print speed by 33% (DP6) or 50% (DP7).
ESC F stops bold printing.
RS n inserts n blank spaces into the print line and can be used to reduce the number of
characters transmitted when large blank spaces are to be printed. n is of the form
01NNNNNN where NNNNNN is the number of blanks to be inserted. RS A is 1 blank, RS z
is 58.
US enables or disables underscoring of printable characters. All characters received after a US
and before another US, CR or feed command will be printed with the character
underscored.
STX prints envelopes. It must be immediately followed by two bytes, X and Y, each bit coded as
01NNNNNN. NNNNNN/10 inches is the distance from the top edge of the envelope to the
first line of text for X and from the left edge of the envelope to the first column of text for Y.
Following X and Y are normal lines of text separated by LF's and finally terminated by a FF
which causes printing and ejection.
DC4 clears all previously received data out of the buffer.
16
3.11.4 Mode C Display Commands
BEL immediately displays the following 16 characters on the upper line of the alphanumeric
display. The characters must not be control characters and there must be exactly 16
displayable characters.
FS loads the lower display line just like BEL loads the upper line.
DC3 or ETB operate identically to a BEL command but all previously received print and
document movement commands are executed before the upper line of the display is
loaded.
GS loads the lower display line just like DC3 loads the upper line.
17
3.11.6 Mode C Status and Keypad Commands
Status, key buffer contents, line count or document length data are transmitted when requested by the host.
ENQ requests printer status and is executed when it is received.
SUB also requests printer status but it is executed identically to an ENQ only after all previously
received commands have been executed. SUB may be used to interrupt the host and notify it
that the printer is now idle.
Printer status is a single byte that is bit significant as follows:
0 1 DP XE DJ KB BZ BA
DP = Document present. Set whenever a document is in the feed path.
XE = Transmission error. If BLOCK protocol is used, all characters received since the last ENQ will be
ignored and should be retransmitted. If DTR or XON/XOF protocols are used the character
associated with the error will be printed as a “@”.
DJ = Document jam. The printhead has not returned to the document edge correctly and operator
attention is required.
KB = Key buffer. The key buffer contains key stroke information that will be transmitted upon receipt of a
DC1.
BZ = Busy. Either printing or document movement is now occurring.
BA = Input buffer available. At least 1000 characters of space are available in the input buffer or the buffer
is empty. Buffer operation is detailed in 3.13.1.
DC1 or DLE request keypad data. Upon receipt of either, all keypad input that has been pressed since the
previous DC1 or DLE will be transmitted. A maximum of 16 strokes can be buffered. Transmitted
characters will be one of the following:
ASCII Meaning
0-9 Numeric keys 0-9
: FUNCTion key
; ENTER key
< Either ↑A or ↓B key
= EJECT key
? End of buffer
The last character transmitted is always a ?. If a DC1 or DLE is received and no keys have been
pressed only a ? will be transmitted.
As numeric keys are pressed, their values are displayed on the lower display line. Pressing ENTER
or FUNCT transfers the key strokes to the key buffer. Pressing CLEAR deletes numeric key strokes
before they are transferred to the key buffer.
Function values beginning with 9 are reserved for internal printer operation and are not transferred to
the key buffer. See 3.6 to 3.9 for details of the internal printer functions.
DC2 requests line count information. Upon receipt, 2 bytes are transmitted. The first byte indicates the
number of lines and the second indicates the number of additional 1/60” steps moved since the
document was initially registered at top edge or bottom edge.
EM requests document length information. Upon receipt, 2 bytes representing the document length (if the
document was automatically inserted to the bottom edge) are transmitted. The first byte indicates the
number of lines and the second byte indicates the number of additional 1/60 inch steps.
18
3.11.7 Mode C Graphics Commands
Dot addressable graphics may be printed at 60 or 120 dots/inch (dpi) horizontally by 72 or 144 dpi vertically.
ESC A must precede each line of 60 dpi data with a maximum of 480 data bytes. ESC B must precede each
line of 120 dpi data with a maximum of 960 bytes. Each line of data must be terminated by a feed command,
usually a VT e, ESC 1 or ESC 9.
Each data byte is of the form 1ABCDEF where A is the lowest and F is the highest of 6 vertical dots printed
in a single dot column. Each bit must be set to a 1 for the corresponding dot to be printed.
VT e moves a document up 5/60 inch and positions it for printing contiguous rows of graphics since 5/60 is
the same height as 6/72. The RS command is useful for filling multiple blank dot columns. For example, the
following sequence will print a diagonal line starting in the upper left corner of column 1 and slanting down to
the right:
ASCII Hex
ESC A A B D H P ` VT e 1B 41 41 42 44 48 50 60 0B 65
ESC A RS F A B D H P ` VT e 1B 41 1E 46 41 42 44 48 50 60 0B 65
ESC A RS L A B D H P ` VT e 1B 41 1E 4C 41 42 44 48 50 60 0B 65
ESC 1 feeds a document up 1/120 inch or about one half dot height. Graphics can be printed at a vertical
density of 144 dpi by using ESC 1 but the host must interleave the data. Each line of data must contain dot
data for every other row of dots to be printed. After an ESC 1 and the next line of dot data, an ESC 9 moves
the document 9/120 inch and positions it for printing the next contiguous row of dots.
Assuming full width lines, graphics throughput is 18 seconds/inch for 60 by 72 dpi and 22 seconds/inch for
120 by 72 dpi. Speed is halved when printing 144 dpi vertically
19
3.12.1 Mode I Command Summary
Mode I recognizes the following ASCII control sequences:
ASCII Hex Command
* BS 08 Print the buffer and backspace one character
HT 09 Move the print pointer to the next horizontal tab
* LF 0A Line feed
* VT 0B Move the document to the next vertical tab
* FF 0C Eject the document
* CR 0D Print the buffer
SO 0E Begin expanded characters
SI 0F Begin 17.1 character/inch printing
DC2 12 Begin 10 character/inch printing
DC4 14 End expanded characters
CAN 18 Clear the print buffer
ESC - n 1B 2D n Begin (n=1) or end (n=0) underscore
ESC 0 1B 30 Set 1/8 inch line spacing
ESC 1 1B 31 Set 7/72 inch line spacing
ESC 2 1B 32 Set line spacing stored by prior ESC A
ESC 3 n 1B 33 n Set n/216 inch line spacing
ESC 4 1B 34 Eject the document
ESC 5 n 1B 35 n Begin (n=1) or end (n=0) automatic LF after CR
ESC : 1B 3A Begin 12 character/inch printing
ESC A n 1B 41 n Store n/72 inch line spacing
ESC B 1B 42 Set vertical tab stops
ESC D 1B 44 Set horizontal tab stops
ESC E 1B 45 Begin bold print
ESC F 1B 46 End bold print
ESC G 1B 47 Begin correspondence quality (CQ) print
ESC H 1B 48 End correspondence quality print
ESC I n 1B 49 n Begin CQ (n=2) or normal (n=0) print
* ESC J n 1B 4A n Feed document up n/216 inches
ESC K 1B 4B Begin 60 dot/inch graphics
ESC L 1B 4C Begin 120 dot/inch graphics
ESC R 1B 52 Set all tabs to default values
ESC W n 1B 57 n Begin (n=1) or end (n=0) expanded chars
ESC X mn 1B 58 Set left and right margins at columns m and n
ESC Y 1B 59 Begin 120 dot/inch full speed graphics
ESC Z 1B 5A Begin 240 dot/inch graphics
ESC [ @ 1B 5B 40 Begin or end double high or wide
ESC [ I 1B 5B 49 Set character pitch
ESC [ J 1B 5B 4A Set 1/5 inch line spacing
ESC [ d 1B 5B 64 Set print quality
ESC [ g 1B 5B 67 Set graphics mode (DP7 only)
* ESC ] 1B 5D Reverse line feed
ESC d 1B 64 Move print position
ESC ~ C 1B 7E 43 Select Mode C
ESC XXX 1B XXX Execute Mode C command XXX
20
Commands prefixed with a * will not be executed until after an ESC ENQ is received if the BLOCK protocol
is used. ESC ENQ's are not required if DTR or XON/XOF protocols are used.
22
1B 4B 10 00 00 00 00 00 00 00 00 00 80 40 20 10 08 04 02 01 0A
The DP7 accepts ESC K, L and Y commands. These and other graphics modes are also selected by an
ESC [ g m n p where m + 256 X n is the following graphics data byte count plus one and p selects graphics
densities as follows:
p value: 0 1 2 8 9 11 12
Density: 60x72 120x72 120x72 60x180 120x180 180x180 360x180
In the 180 dpi vertical modes, each group of 3 following graphics data bytes will be printed as one 24 dot
vertical stroke.
23
transmitted if less than 1000 characters of space are available in the buffer when a CR or document
movement command is received. Transmission from the host must then pause. DTR will later go true
(positive voltage) or a DC1 (Xmit on) will be transmitted when space becomes available and host
transmission may resume. DTR is equivalent to most operating systems’ hardware protocol.
Under the DTR and XON/XOF protocols ENQ will still generate the normal status response but it is not
necessary to transmit ENQs in order to cause command execution. However, if ENQ and DC1 are never
issued and status responses are never examined by the host, it is difficult to use the keypad for system
input.
24
3.13.4 Dual Port Option
The Dual Port option allows for simultaneous connection to two hosts with each one alternately enabled
using either the DTR or XON/XOF protocols. A port is enabled for 0.25 seconds or, if data is received, until
no document is present and the buffer is empty. If configuration 05 is selected under 94 FUNCT, the display
will show which port received data.
25