Control codes One or more nonprinting characters used by a computer program to control the actions of a device, used in printing, communications, and management of display screens., also called escape sequences, are used to specify lines-per-form, lines-per-inch, and other format settings for printers. Your printer manual describes the control codes used for your printer. Barr software supplies the most common codes used for various printers. See your printer manual for a list of the control codes your printer supports.
The Printer control codes table shows common control codes for the printers listed on the Windows printer Properties, Devices Settings tab. Values for lines-per-form and lines-per-inch are provided by the FCB Acronym for Forms Control Buffer. A buffer that controls the vertical format of printed output. The FCB can include information about the number of lines per page, lines per inch, and channel stops.. The FCB name is stored in the header field for each document. When the software sends data to the printer, it interprets the FCB for these settings and sends the corresponding escape sequences to the printer. If the FCB is not provided, the software uses the default values LPF=66 and LPI=6.
If your printer is not listed in Printer control codes table, determine whether one of the printers in the table provides the control codes used by your printer. If the correct codes are listed, select the corresponding printer from the printer Properties, Devices Settings tab. If the codes for your printer are not listed, use the Generic selection and enable the Barr forms overlay or Make FCB feature to provide the control codes.
To use the control codes feature of the Barr ASCII driver, the Bypass the Windows spooler option on the Advanced Printer Options dialog box must be disabled.
Printer Model |
Setting |
Control Codes |
ANSI DEC, DATA South |
LPI = 6 |
ESC [ 1 z |
LPI = 8 |
ESC [ 2 z | |
LPF = nn |
ESC [ nn
t | |
C. Itoh CI300, CI600 |
LPI = 6 |
ESC ? ! " CR |
LPI = 8 |
ESC ?! #CR | |
LPF = nn |
ESC ? SP x CR | |
DAVFU, Dataproducts,Data Printer (VFU Support) |
LPI = 6 |
User manually sets switch. |
LPI = 8 |
User manually sets switch. | |
LPF = nn |
1D 41 40 r
41 40 1E | |
EPSON, IBM in serial matrix mode |
LPI = 6 |
ESC 2 |
LPI = 8 |
ESC 0 | |
LPF = nn |
ESC C nn | |
Florida Data 120, 130 |
LPI = 6 |
ESC RS
BS |
LPI = 8 |
ESC RS
ACK | |
LPF = nn |
ESC FF nn | |
Genicom 4410, 4440 |
LPI = 6 |
ESC [ 1 2 0 ; SP G |
LPI = 8 |
ESC [ 9 0 ; SP G | |
LPF = nn |
ESC [ x r | |
Genicom 1255, Linewriter (parallel) (VFU Support) |
LPI = 6 |
ESC [ 1 z |
LPI = 8 |
ESC [ 2 z | |
LPF = nn |
1D 41 40 r 1E | |
Hewlett-Packard 256x |
LPI = 6 |
ESC & l
6 D |
LPI = 8 |
ESC & l
8 D | |
LPF = nn |
ESC & l
nn P | |
Linewriter 400, 800 (RS232 serial) |
LPI = 6 |
?? 1 2 0 SP G |
LPI = 8 |
?? 9 0 SP G | |
NCR 6430, Fujitsu M304x (RS232 serial) |
LPF = nn |
?? # T nn ?? ?? # L
1 ; 1 ?? |
OKIDATA 92, 93 |
LPI = 6 |
ESC 6 |
LPI = 8 |
ESC 8 | |
LPF = nn |
ESC F nn | |
OKIDATA 2410, 2350 |
LPI = 6 |
ESC 4 |
LPI = 8 |
ESC 5 | |
LPF = nn |
ESC 2 nn | |
OKIDATA 2410 IBM compatible |
LPI = 6 |
ESC 2 ESC A FF |
LPI = 8 |
ESC 0 | |
LPF = nn |
ESC C nn | |
Printronix P300, P600 (VFU Support) |
LPI = 6 |
User manually sets switch. |
LPI = 8 |
User manually sets switch. | |
LPF = nn |
1E 10 r 1F | |
Printronix P300, P600 with IGP (VFU Support) |
LPI = 6 |
CR ETX
L P I ; 6 CR
LF |
LPI = 8 |
CR ETX
L P I ; 8 CR
LF | |
LPF = nn |
1E 10 r 1F | |
Printronix P6000 (VFU Support) |
LPI = 6 |
SOH
2 |
LPI = 8 |
SOH
0 | |
LPF = nn |
1E 10 r 1F | |
Sand, Fujitsu M304x, Hitachi FP1500 (parallel) (VFU Support) |
LPI = 6 |
ESC 6 |
LPI = 8 |
ESC 8 | |
LPF = nn |
1D 41 40 r 1E | |
PCL |
LPI = 6 |
ESC & l
6 D |
LPI = 8 |
ESC & l
8 D | |
LPF = nn |
ESC & l
nn F |