Revision C 16/01/96
5. Commands
5.1. Basic printer operation
The most common printer operations are described in this section. Some are invoked using control codes
alone - the rest require escape sequences. For the sake of completeness three instructions which are part
of the Diablo 630 mode instruction set, but which the HL Series printers ignore are included.
Bell
BEL
BEL (ASCII code 7) is ignored.
Set horizontal motion index (HMI)
EscUSn
This command sets the unit of horizontal movement - the horizontal motion index or HMI. The HMI
is the horizontal distance the print position moves on the page when a space is printed. The setting is
used for determining the character pitch when monospaced text is printed, and for establishing the
distance the print position changes when horizontal tab commands are invoked.
The HMI is set to be (n–1)/120".
You can use this command to alter the HMI setting while using proportional spacing. However, since
character pitch is only applicable to monospaced text the new setting will only affect space and tab
operations until you switch to monospacing, at which point the new HMI setting will determine the
new character pitch.
LPRINT CHR$(27); CHR$(31); CHR$(13); 'Set 1/10" HMI
Reset horizontal motion index (HMI)
EscS
This command resets the horizontal motion index (HMI) to the default value for the current
character font. (You select a character font using the control panel).
LPRINT CHR$(27); CHR$(83); 'Reset HMI
(07)
<07h>
(27)(31)n
<1Bh><1Fh>n
(27)(83)
<1Bh><53h>
Chapter 4 "Diablo 630" - 6