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

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

Advertisement

3.

CONTROLLING THE PRINTER

3.1.

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.
3.1.1. Backspace
ASCII code 8. This code moves the cursor one column to the left.
3.1.2. Line feed
ASCII code 10. This code performs a line feed.
3.1.3. Form feed
ASCII code 12. This code ejects the most recently printed page from the printer.
3.1.4. Carriage return
ASCII code 13. This code performs a carriage return.
3.1.5. Select primary font
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".
3.1.6. Select secondary font (15)
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".
3.1.7. Escape
ASCII code 27. You must use this character code to start every instruction sequence that you send to the printer.
3.1.8. 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".
3.1.9. Space
ASCII code 32. This code moves the cursor one column to the right.
(08)
<08h>
(10)
<0Ah>
(12)
<0Ch>
(13)
<0Dh>
(14)
<0Eh>
<0Fh>
(27)
<1Bh>
(09)
<09h>
(32)
<20h>
CHAPTER 2 PCL - 11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents