Controlling The Printer; Control Codes - Brother HL-Series Technical Reference Manual

Hide thumbs Also See for HL-Series:
Table of Contents

Advertisement

Revision C 16/01/96

Controlling the printer

Control codes

Control codes are ASCII codes that tell the printer to perform a given function, such as a carriage return. You can
send these codes to the printer as part of a program.
Backspace
ASCII code 8. This code moves the cursor one column to the left.
Line feed
ASCII code 10. This code performs a line feed.
Form feed
ASCII code 12. This code ejects the most recently printed page from the printer.
Carriage return
ASCII code 13. This code performs a carriage return.
Select primary font (14)
ASCII code 15. When you send this code to the printer subsequent characters will be printed in the current
primary font. This is explained further in the sub-section entitled "Using fonts".
Select secondary font
ASCII code 14. When you send this code to the printer subsequent characters will be printed in the current
secondary font. This is explained further in the sub-section entitled "Using fonts".
Escape
ASCII code 27. You must use this character code to start every instruction sequence that you send to the printer.
Horizontal tab
ASCII code 9. This code moves the cursor one tab position to the right. The tab positions are at the left margin and
at the left edge of every 8th column as defined by the horizontal motion index (HMI) described in the next section,
entitled "The Page".
Space (32)
ASCII code 32. This code moves the cursor one column to the right.
(08)
<08h>
(10)
<0Ah>
(12)
<0Ch>
(13)
<0Dh>
<0Eh>
(15)
(27)
<1Bh>
(09)
<09h>
<20h>
<0Fh>
Chapter 2 "PCL" - 6

Advertisement

Table of Contents
loading

Table of Contents