Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes

Forms Length Set (Lines)

ASCII Code ESC C n

Hex Code

1B 43 n

Dec Code

27 67 n

Purpose

Sets the length of a form (paper) in lines.

where:

n = 1 through 192 (hex 01 through hex C0) to specify the number

 

of lines per page at the current line spacing.

Comment

The forms length set becomes the current forms length. Forms

 

length is defined in inches; therefore, subsequent line spacing

 

changes do not affect the result of this command.

 

The forms length is set to the number of lines defined by the

 

quotient of n and the current line spacing so that the units are in

 

inches. The forms length set by n becomes the current forms

 

length.

 

If the calculated forms length in lines is not an exact multiple of

 

the target machine dot size, the forms length value is adjusted

 

down to the next possible multiple.

 

When forms length is changed by the ESC C sequence, the

 

bottom margin is set to zero.

 

The current paper position becomes top of form. If the form

 

length is set smaller than the line spacing, a line feed moves the

 

current line spacing; a form feed advances paper position to the

 

next top-of-form position.

 

Forms length can also be set through the control panel. The

 

control code forms length setting from the host computer

 

overrides the control panel setting.

Horizontal Tab

ASCII Code HT

Hex Code 09

Dec Code 9

Purpose Moves the logical printhead right to the next horizontal tab stop.

Comment Power-on default horizontal tabs are set at every eighth character. If there are no horizontal tabs set or the logical printhead is located at the last character column, the code is ignored and no movement occurs.

Horizontal tabs are stored as a relative position; therefore, character pitch changes change horizontal tab positions. See the Horizontal Tab Set control code section to set new tab positions.

132

Page 132
Image 132
IBM 4400 manual Forms length set becomes the current forms length. Forms