Forms length, top margin, bottom margin – Printronix ANSI Printer User Manual

Page 34

Advertising
background image

34

Chapter

2

Configuring The ANSI Emulation

Forms Length, Top Margin, Bottom Margin

ASCII Code ESC [p1;p2;p3 r

Hex Code

1B 5B p1 3B p2 3B p3 72

Dec Code

27 91 p1 59 p2 59 p3 114

Expression CHR$(27); “[p1;p2;p3r”;

Purpose

Defines the form.

p1 = Form length (in decipoints). Maximum allowable length is
22 inches (15,840 decipoints)

p2 = Top margin from top of page. Top of page to first print line.

p3 = Bottom margin from end of page. The last print line to
bottom of page.

The default parameters are for a 12 inch long form with a top
margin of zero and a bottom margin of zero.

Discussion The printer keeps track of these vertical positions to the nearest

half point (5 decipoints).

1 decipoint = 1/720 inch

1 point = 10 decipoints (10/720 inch)

1/2 point = 5 decipoints (5/720 inch)

Examples

ESC [r

default values of 12 inch form length, zero top and bottom
margins

ESC [8280r 11.5 inch form length, default top and bottom margins of zero

ESC [;720r default length of 12 inches, top margin of one inch, default

bottom margin of zero

ESC [;;720r default length of 12 inches, default top margin of zero and a one-

inch bottom margin

ESC [7920;360;360r

11 inch form length, 1/2 inch top and bottom margins

Advertising