Tally Genicom T5023+ Printer User Manual


 
Horizontal print control Standard commands
86
T5023/5023+ - Programming Guide
Horizontal positioning (absolute)
Function:
By means of ESC $ (n) (m) the print head is moved horizontally to a position
which is calculated independently of the current character size from the values
n and m relative to the previously set “logical left” margin (left margin of sheet set
using ESC l (n)). The distance of the print head from the left sheet margin results
from the following formula:
(m 256 + n) / 60 inch
A value between 0 and 255 for n and a value between 0 and 3 for m can be sel-
ected. (m 256 + n) may not be more than 816.
Example:
The distance of the text from the left sheet edge is increased step- by- step.
ESC
27
1B
$
36
24
(n)
n
n
(m)
m
m
ASCII character
Decimal
Hexadecimal
ESC $ (n) (m) is ignored if the specified position exceeds the logical
right margin set using ESC Q (n).
BEGIN
SETN=60
REPEAT
SETN=N+30
PRINT(char(27),"$",char(N,0))
PRINT("Distance from left sheet edge")
PRINTLF(N/60,"inch")
UNTIL N = 180
END
i