Printek 4500, 4503, 4300 manual Vertical Margins, Set Top and Bottom Margins, ESC n1 n2 r

Models: 4500 4503 4300

1 167
Download 167 pages 38.29 Kb
Page 101
Image 101
Set Top and Bottom Margins

DEC LA120 Emulation

Vertical Margins

Printing is allowed only within the top and bottom margins. Exceeding the bottom margin will set the current line to the top margin of the next form.

Set Top and Bottom Margins

ESC [ n1 ; n2 r

Sets the top margin to line n1 and the bottom margin to line n2 at the current line spacing. 0³n1³255, 0³n2³255. If line spacing is changed after setting the margins, the position of the margins will not change. Vertical margins are cleared by ESC [ n t.

The top and bottom margins are both inclusive. For example, a top margin at line 7 still allows text to be printed on line 7, but not on line 6. A bottom margin at line 60 still allows text to be printed on line 60, but not on line 61.

The first line is line one. If n1 or n2 is zero (or is omitted), the corresponding margin is not changed. The top margin must be above the bottom margin. The bottom margin must be below the top margin. The margins cannot exceed the form length. Invalid margins will be ignored. Overrides the "Top Mar:" and "Btm Mar:" values in the "Setup: FORM" menu.

Example: The following escape sequence will set a top margin at line 7, and will set a bottom margin at line 60. For a standard 11 inch form with 6 lpi line spacing, this would result in one inch top and bottom margins.

Escape Sequence:

ESC

[

7

;

6

0

r

Hexadecimal:

1B

5B

37

3B

36

30

72

Example: The following escape sequence will set a top margin at line 7, without affecting the bottom margin.

Escape Sequence:

ESC

[

7

r

Hexadecimal:

1B

5B

37

72

Example: The following escape sequence will set a bottom margin at line 60, without affecting the top margin.

Escape Sequence:

ESC

[

;

6

0

r

Hexadecimal:

1B

5B

3B

36

30

72

Page 5-17

Page 101
Image 101
Printek 4500, 4503, 4300 manual Vertical Margins, Set Top and Bottom Margins, ESC n1 n2 r