Lines-per-form and lines-per-inch settings

Printers

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.

What do you want to do?


Printer control codes table

Printer Model

Setting

Control Codes

ANSI DEC, DATA South

LPI = 6

ESC [ 1 z
1B 5B 31 7A

LPI = 8

ESC [ 2 z
1B 5B 32 7A

LPF = nn

ESC [ nn t
1B 5B nn 74
nn = 1 to 99 as ASCII digits

C. Itoh CI300, CI600

LPI = 6

ESC ? ! " CR
1B 3F 21 22 0D

LPI = 8

ESC ?! #CR
1B 3F 21 23 0D

LPF = nn

ESC ? SP x CR
1B 3F 20 x 0D
x = (nn * 6/LPI) + 31 as binary byte
nn = 1 to 99

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
r = nn-1 repetitions of 40 40
nn = 1 to 126

EPSON, IBM in serial matrix mode

LPI = 6

ESC 2
1B 32

LPI = 8

ESC 0
1B 30

LPF = nn

ESC C nn
1B 43 nn
nn = 1 to 127 as binary byte

Florida Data 120, 130

LPI = 6

ESC RS BS
1B 1E 08

LPI = 8

ESC RS ACK
1B 1E 06

LPF = nn

ESC FF nn
1B 0C nn
nn = 1 to 126 as binary byte

Genicom 4410, 4440

LPI = 6

ESC [ 1 2 0 ; SP G
1B 5B 31 32 30 3B 20 47

LPI = 8

ESC [ 9 0 ; SP G
1B 5B 39 30 3B 20 47

LPF = nn

ESC [ x r
1B 5B x 72
x = (nn * 720)/LPI as ASCII digits
nn = 1 to 132

Genicom 1255, Linewriter (parallel) (VFU Support)

LPI = 6

ESC [ 1 z
1B 5B 31 7A

LPI = 8

ESC [ 2 z
1B 5B 32 7A

LPF = nn

1D 41 40 r 1E
r = nn-1 repetitions of 40 40
nn = 1 to 180

Hewlett-Packard 256x

LPI = 6

ESC & l 6 D
1B 26 6C 36 44

LPI = 8

ESC & l 8 D
1B 26 6C 38 44

LPF = nn

ESC & l nn P
1B 26 6C nn 50
nn = 1 to 128 as ASCII digits

Linewriter 400, 800 (RS232 serial)

LPI = 6

?? 1 2 0 SP G
9B 31 32 30 20 47

LPI = 8

?? 9 0 SP G
9B 39 30 20 47

NCR 6430, Fujitsu M304x (RS232 serial)

LPF = nn

?? # T nn ?? ?? # L 1 ; 1 ??
90 23 54 nn 9C 90 23 4C 31 3B 31 9C
?? = characters with no ASCII equivalent.
nn = 1 to 180 as ASCII digits

OKIDATA 92, 93

LPI = 6

ESC 6
1B 36

LPI = 8

ESC 8
1B 38

LPF = nn

ESC F nn
1B 46 nn
nn = 01 to 99 as ASCII digits (ifless than 10, requires leading 0)

OKIDATA 2410, 2350

LPI = 6

ESC 4
1B 34

LPI = 8

ESC 5
1B 35

LPF = nn

ESC 2 nn
1B 32 nn
nn = 7 to 112 as binary byte

OKIDATA 2410 IBM compatible

LPI = 6

ESC 2 ESC A FF
1B 32 1B 41 0C

LPI = 8

ESC 0
1B 30

LPF = nn

ESC C nn
1B 43 nn
nn = 1 to 127 as binary byte

Printronix P300, P600 (VFU Support)

LPI = 6

User manually sets switch.

LPI = 8

User manually sets switch.

LPF = nn

1E 10 r 1F
r = nn-1 repetitions of Hex 1C
nn = 1 to 132

Printronix P300, P600 with IGP (VFU Support)

LPI = 6

CR ETX L P I ; 6 CR LF
0D 03 4C 50 49 3B 36 0D 0A

LPI = 8

CR ETX L P I ; 8 CR LF
0D 03 4C 50 49 3B 38 0D 0A

LPF = nn

1E 10 r 1F
r = nn-1 repetitions of Hex 1C
nn = 1 to 132

Printronix P6000 (VFU Support)

LPI = 6

SOH 2
01 32

LPI = 8

SOH 0
01 30

LPF = nn

1E 10 r 1F
r = nn-1 repetitions of 1C

Sand, Fujitsu M304x, Hitachi FP1500 (parallel) (VFU Support)

LPI = 6

ESC 6
1B 36

LPI = 8

ESC 8
1B 38

LPF = nn

1D 41 40 r 1E
r = nn-1 repetitions of 40 40
nn = 1 to 176

PCL

LPI = 6

ESC & l 6 D
1B 26 6C 36 44

LPI = 8

ESC & l 8 D
1B 26 6C 38 44

LPF = nn

ESC & l nn F
1B 26 6C nn 46

nn=1 to 99 as ASCII digits

Top