The text of a manual · part 7 of 21
6820 Series 80-Column Printer User's Manual, 6822 Configuration: Control Code Definitions, pages 49 to 57
Pages 49 to 57 of 171, from 6820 Series 80-Column Printer User's Manual, 6822 Configuration
The original document is the PDF (6.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6822
Page 49
4 Control Code Definitions
This chapter contains a set of control code definitions and specifications for page layout for the 6820 printer. In this chapter you will find these sections: •
Understanding Control Code Definitions
•
Using Printer Control Codes
•
Understanding the Fanfold Paper Page Layout
6820 Series 80-Column Printer User’s Manual
35
Page 50
Chapter 4, Control Code Definitions
Understanding Control Code Definitions I/O Buffer All characters and control codes received by the printer are stored in this buffer. Characters and controls codes are read from this buffer and acted upon to form the print buffer. Characters are removed from the I/O buffer as they are processed.
Print Image Buffer All characters go through this buffer on their way to the printed page. This buffer contains the graphic image of the dots to print, from which characters are rendered. It is cleared when its contents are printed.
Special Notations The following information defines notations included in the format definitions of the escape sequences, throughout this section. Special Notations Notation
Description
(0)
Used in the ASCII column of any of the Format definitions, indicates that its value can only be zero (and not the character “0”). For example: Select Top-Down Printing ESC US (0).
(1)
Used in the ASCII column of any of the Format definitions, indicates that its value can only be one (and not the character “1”). For example: Select Bottom-Up Printing ESC US (1).
*
When a number (at the end of an escape sequence) is marked with an asterisk, then either the value corresponding to that number or the value of the string character can be used for that number. For example, if 1* is shown, then either the value (1), or the value of the string character (decimal: 49, hex: 31) can be used.
NUL
The NUL character is represented in the Dec column as 0, in the Hex column as 00, and in the ASCII column as NUL.
36
6820 Series 80-Column Printer User’s Manual
Page 51
Chapter 4, Control Code Definitions
Using Printer Control Codes These control code definitions are organized by categories of functions. The following methods assist in locating control codes easily: •
Numeric order (single character codes only) - refer to the “Single Character Control Codes” table on page 138. Locate the index for the control code, and turn directly to that page.
•
Numeric order (complete list) - refer to the “Escape Sequence Quick Reference” on page 140 and look up control codes by their actual code values.
Backspace The print buffer is emptied. The printhead is moved to the left one character space (using the current pitch). This can be performed to, but not beyond, the left margin setting. The backspace is ignored if justification of right, full, or centered is selected. Format Decimal
Hex
ASCII
8
08
BS
The backspace control code (BS) is not reliable when text contains different character pitches. For reliable backspacing, use the escape sequence (ESC “\”), Set Relative Print Position.
Beeper The printer produces a beep lasting approximately 1/10 of a second Format Decimal
Hex
ASCII
7
07
BEL
6820 Series 80-Column Printer User’s Manual
37
Page 52
Chapter 4, Control Code Definitions
Cancel Line All of the characters currently in the print buffer are discarded. Current print position is set to left margin. Text already printed cannot be canceled Format Decimal
Hex
ASCII
24
18
CAN
Carriage Return Repositions the printhead at the start of the print line (usually at the left margin), and repositions the pointer to the start of the print buffer, after printing all data in the buffer. Also, all of the “one line” functions are reset, such as bold, double-strike, double-wide, or unidirectional printing. Format Decimal
Hex
ASCII
13
0D
CR
Note: You can add an automatic line feed with a configuration item.
Delete Deletes the last character in the print buffer. This functions only in left justification. Format
38
Decimal
Hex
ASCII
127
7F
DEL
6820 Series 80-Column Printer User’s Manual
Page 53
Chapter 4, Control Code Definitions
Form Feed Prints the contents of the print buffer, clears the print buffer, and advances the paper to the top of the next page (Top of Form), according to the current page length setting. The carriage position is moved to the start of the line Format Decimal
Hex
ASCII
12
0C
FF
Select Half-Speed Printing Turns on half-speed mode to provide quiet printing, and more accurate print positioning during text mode printing. Format Decimal
Hex
ASCII
27 115 1*
1B 73 01*
ESC “s” 1*
Cancel Half-Speed Printing Turns off half-speed mode (factory default), and continues with normal speed printing. Format Decimal
Hex
ASCII
27 115 0*
1B 73 00*
ESC “s” 0*
6820 Series 80-Column Printer User’s Manual
39
Page 54
Chapter 4, Control Code Definitions
Set Inactivity Time for Sleep Mode Sets the amount of time the printer waits before it goes into low-power mode. The factory default is 10 seconds. Format Decimal
Hex
ASCII
27 122 n
1B 7A n
ESC “z” n
Line Feed Perform Line Feed Prints and then clears the contents of the print buffer, resets the character count to zero; and advances the printhead to the next print line, using the current spacing. The position of the carriage is not affected and a carriage return is not executed. Format Decimal
Hex
ASCII
10
0A
LF
Perform n/216-inch Line Feed Advances the paper to n/216 of an inch. This does not affect subsequent line feeds. Range of n is 0-255. Format
40
Decimal
Hex
ASCII
27 74 n
1B 4A n
ESC “J” n
6820 Series 80-Column Printer User’s Manual
Page 55
Chapter 4, Control Code Definitions
Perform n/216-inch Reverse Line Feed Reverses the line feed by n/216 of an inch. This does not affect subsequent line feeds. Range of n is 0-255. Format Decimal
Hex
ASCII
27 106 n
1B 6A n
ESC “j” n
Perform Master Reset Initializes the printer and restores factory installed printer defaults, (see “Factory-Installed Printer Defaults” on page 143 for a complete list of settings that are initialized with this command). Format Decimal
Hex
ASCII
27 64
1B 40
ESC “@”
Set Print Position (absolute) Moves the printhead to an absolute horizontal position on the paper. The distance is specified in dots from the left margin to the new print position (at which subsequent characters are printed). Each dot represents 1/60 of an inch. The values for n1 and n2 determine the distance, as follows: number of dots = n1 + (n2 * 256)
Maximum position is 480. The previous contents of the current print buffer is printed. If the position specified moves the printhead outside the current margins, the command is ignored and the previous setting remains in effect. This command is also ignored in right, center, and full justification modes. Format Decimal
Hex
ASCII
27 36 n1 n2
1B 24 n1 n2
ESC “$” n1 n2
6820 Series 80-Column Printer User’s Manual
41
Page 56
Chapter 4, Control Code Definitions
Set Print Position (relative) Moves the printhead to a horizontal position on the paper, relative to the current printhead position. The distance specified is in dots. To determine n1 and n2, first calculate the displacement required in 1/120ths of an inch. If the displacement is to the left, subtract it from 65536. The values for n1 and n2 determine the distance, as follows: number of dots = n1 + (n2 * 256)
Maximum displacement is ±960. If the position specified would place the printhead outside the current margins, this function is ignored and the previous setting remains in effect. This function is also ignored in right, center, and full justification modes. Format Decimal
Hex
ASCII
27 92 n1 n2
1B 5C n1 n2
ESC “\” n1 n2
Select Top-Down Printing Enables top-down printing (factory default). First page is printed first. Format Decimal
Hex
ASCII
27 31 0
1B 1F 00
ESC US (0)
Select Bottom-Up Printing Enables bottom-up printing. The last page is printed first.
Format
42
Decimal
Hex
ASCII
27 31 1
1B 1F 01
ESC US (1)
6820 Series 80-Column Printer User’s Manual
Page 57
Chapter 4, Control Code Definitions
Select Unidirectional Printing Turns on unidirectional printing mode. Unidirectional printing moves the printhead from left-to-right only, allowing for more accurate print positioning during text mode printing. Format Decimal
Hex
ASCII
27 85 1*
1B 55 01*
ESC “U” 1*
Cancel Unidirectional Printing Turns off unidirectional printing (factory default), allowing the printhead to print in both directions Format Decimal
Hex
ASCII
27 85 0*
1B 55 00)
ESC “U” 0*
Select Unidirectional (one line) Printing Turns on unidirectional printing for the current line only. The contents of the print buffer is printed, and cleared before setting this mode. This allows more accurate print positioning during text mode printing, for the current line. Format Decimal
Hex
ASCII
27 60
1B 3C
ESC “<”
6820 Series 80-Column Printer User’s Manual
43