User's Manual Part 2
Table Of Contents
- Connecting to the Printer
- Understanding the Font Modules
- Using the Windows 95 or Windows 98 Printer Configuration Utility
- Using the Windows 2000 or Windows XP Printer Configuration Utility
- Understanding Control Code Definitions
- Using Printer Control Codes
- Backspace
- Beeper
- Cancel Line
- Carriage Return
- Delete
- Form Feed
- Select Half-Speed Printing
- Cancel Half-Speed Printing
- Set Inactivity Time for Sleep Mode
- Line Feed
- Perform Master Reset
- Set Print Position (absolute)
- Set Print Position (relative)
- Page Formatting Functions
- Character Style and Text Mode Functions
- Defining Intercharacter Space
- Tabs and Tab Setting Functions
- Using Character Sets and User-Defined Functions
- Single-Byte Character Sets
- Double-Byte Character Sets
- Multi-Byte Character Sets
- Select National Character Set
- Hebrew Character Fonts
- User Defined Characters
- Copy ROM to RAM
- Define User-Defined Characters
- Select User-Defined Character Set
- Select Default Character Set
- Enable Printing of Codes 128-159
- Disable Printing of Codes 128-159
- Expand Printable Code Area
- Enable Printing of Character Graphics
- Disable Printing of Character Graphics
- Printing Character Graphics
- Graphics Functions
Chapter 5 — Control Code Definitions
6822 Series 80-Column Printer User’s Manual 63
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.
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 36 n1 n2 1B 24 n1 n2 ESC “$” n1 n2
Format
Decimal Hex ASCII
27 92 n1 n2 1B 5C n1 n2 ESC “\” n1 n2