Chapter 4 Configuring the Serial Matrix Emulation with Control Codes

Line Feed

ASCII Code LF

Hex Code 0A

Dec Code 10

Purpose Prints the data in the buffer (if any) and advances the vertical character position one line at the current line space setting.

Comment If configured for LF equals newline (LF=CR+LF), the logical print head is positioned at character column 1 of the new line. Otherwise, the logical print head does not move when configured for LF function only (LF=LF ONLY). The LF function cancels all single line print attributes such as double high (elongated) and double wide (expanded) characters.

Line Feed n/216 Inch (One Line Only)

ASCII Code ESC J n

Hex Code

1B 4A n

Dec Code

27 74 n

Purpose

Advances the vertical character position n/216 inch for one line

 

only.

where:

n = 1 through 255

Comment

The n/216-inch line feed control code is effective for one line

 

only. All single-line-only print attributes are canceled.

 

If the protocol is configured for LF equals newline (LF=CR+LF),

 

the paper advances one line at the current line space setting and

 

the logical print head is positioned at character column 1.

 

The paper position moves only in multiples of the current dot row

 

spacing. If the distance to move is other than a multiple of the

 

current dot row spacing, the remainder is added to the next

 

paper motion command.

 

Small values of n may result in overlapping lines. Overlapping

 

lines may also occur if print attributes such as Elongated

 

(Double High), Superscript, or Subscript characters are used on

 

the same line. Printing at different horizontal and vertical

 

densities do not overlap.

Example

The following example illustrates n/216-inch line spacing.

100

Page 100
Image 100
IBM 4400 manual Line Feed n/216 Inch One Line Only, Ascii Code ESC J n Hex Code