Tally Genicom Matrix Printer Printer User Manual


 
7265 Programmer’s Manual
20
Copyright © 2004 TallyGenicom Chapter 2 ANSI
Forms Setup
Command Description
ESC [(p1);
(p2);(p3);(p4)
;(p5)r
FORMS SETUP
Sets top of form and sets form length, as well as top and bottom margins, in decipoints.
Parameter
p1 is form length 720ths ,
p2 is the top margin,
p3 sets the length of white space between the baseline of the last allowed
line and the end of form.
p4 is the top print reference, and
p5 is the left print reference
Any parameter not specified is assigned its default value. Maximum form length is
15840 decipoints (22 inches).
Default Values
p1 7920 decipoints 11-inch form
p2 0 decipoints 0-inch top margin
p3 0 decipoints 0-inch bottom margin
p4 0 decipoints 0-inch top print reference
p5 0 decipoints 0-inch left print reference
Example:
Set 8-inch form length, one-inch top margin, one-inch bottom margin
Dec 27 91 53 55 54 48 59 55 50 48 59 55 50 48 114
Hex 1B 5B 35 37 36 30 3B 37 32 30 3B 37 32 30 72
Note: Before you send this command, verify that the top print reference is zero in the
target paper path. One way to do this is to park and then load paper in the target path.
The top edge of the paper should line up with the top of the print head. If not, then set
the top print reference to zero from the menu and save the change to the format
associated with the target paper path. You must once again park and load paper in the
target path in order for the new print reference to take effect.
Next, send a command to set the vertical position-absolute to zero. If you do not do
this, then the printer establishes top-of-form at the current top margin, and form
registration is lost.