DWP 210 (260-1257) Control Codes Faxback Doc. # 4590
SENDING CONTROL CODES FROM BASIC
Some Printer features are activated by a single code, but many functions
require a sequence of two or more codes. Most multiple code sequences
begin with decimal 27 (referred to as the "ESCape" code). The ESC code
notifies the Printer that a special sequence is on its way. The next
code(s) sent determine which Printer feature is selected. In BASIC, use
CHR$() to send these codes to the Printer.
DEC. HEX. MNEMONIC FUNCTION
10 OA LF Feeds the paper by one line at a time. 1/6"
line spacing.
13 0D CR Effect Carriage Return and Line Feed in normal
mode. However, if the Printer receives this
code after 27 21, it performs only Carriage
Return. Returns to normal mode when a 27 22 is
received.
32 20 SP Moves the Carriage on character position.
However, two or more SP codes received in
succession do not cause successive spacing, but
they do effect high-speed tabulation. The
Carriage moves even if no character data is
received with 50 ms after an SP code.
14 0E SO End the automatic underline print function.
The Printer is in this mode when you turn it
on.
27 14 1B 0E ESC SO Sets the character spacing to 1/12" pitch. It
overrides the Pitch Select Switch setup.
27 15 1B 0F ESC SI Sets the character spacing to 1/10" pitch. It
overrides the Pitch Select Switch setup.
27 17 1B 11 ESC DC1 Places the Printer in Proportional Space Mode.
It overrides the Pitch Select Switch setup.
27 21 1B 15 ESC NAC Once this code is received, code 13 effects
only Carriage Return. This condition continues
until 27 code 22 is received.
27 22 1B 16 ESC SYN Once this code is received, code 13 effects
Carriage Return and Line Feed. The Printer
enters this mode when you turn it on.
27 24 1B 18 ESC CAN Enters External Program mode (to be described
later).
27 25 1B 19 ESC EM Exits External Program mode (to be described
later).
08 n 08 n BS n Backspaces the Carriage n number or
micro-spaces. The values this byte can assume,
0 through 255, correspond to 0/120 through
255/120 inches respectively. If the data
specifies the Carriage to move beyond the home
position (left side), the Printer ignores the
data and moves the Carriage to the home
position.
27 n 1B n ESC n Advances the Carriage n number of micro-spaces.
The values this byte can assume, 0 though 9,
correspond to 0/120 through 9/120 inches,
respectively. If the data specifies the
Carriage to move beyond the right margin, the
Printer simply performs Carriage Return and
Line Feed.
27 26 1B 1A ESC SUB 1/48" Line Feed
27 28 1B 1C ESC FS Half Line Feed
27 30 1B 1E ESC RS Reverse Half Line Feed
27 10 1B 0A ESC LF Reverse Line Feed
(dtc-07/27/93)
Privacy Policy