Tally Genicom T5023+ User Manual

Page 88

Advertising
background image

Horizontal print control

Standard commands

78

T5023/5023+ - Programming Guide

Example:

First of all, the left document margin will be set using ESC l (n) for several values of
n. Subsequently, the effect of the current character size on the left margin will be de-
monstrated.

The absolute margin position is dependent on the set character
size (10, 12 or 15 cpi) and the print mode (condensed, elongated,
normal). With proportional spacing the left margin is determined ac-
cording to the character size 10 cpi. Subsequent alterations to the
character size have no influence on the set margin.

The distance between the left and right margins must be at least 10
cpi.

ESC l (n) should be entered at the beginning of a print line as
ESC l (n) deletes all the previously entered characters and tabs in
the same print line.

BEGIN

SET N = 6
REPEAT

SET N = N + 1

PRINT(char(27),"1",char(N))

<-- Setting left margin

PRINTLF("Left margin",N - 1,"columns")

UNTIL N = 10
PRINTLF()

12 cpi character

PRINT(char(27),"M")

<-- (ESC M)

PRINT(char(27),"l",char(10))

<-- Setting left margin

PRINTLF("Left margin 9 columns (12 cpi)")

PRINT(char(27),"W",char(1)

<-- Switching on elongated

PRINTLF("Left margin unchanged")

print(ESC SO)

PRINT(char(27),"l",char(10))

<-- Setting left margin

PRINTLF("margin 9 columns (elongated)")

PRINT(char(27),"l",char(160))

<-- Left margin

PRINTLF("margin ignored")

> 8 inch

PRINTLF("not printed",char(27),"1",char(10),"printed")

END

i

Advertising
This manual is related to the following products: