OKI ML3390 01091308*01256402 User Manual

Product codes
01091308*01256402
Page of 349
Chapter 10: IBM - Standard Functions
10-12
Positioning
Function
Dec.
Hex.
ASCII
Relative horiz.
27 100
1B 64
ESC d
dot position to the right
n
1
 n
2
n
1
 n
2
n
1
 n
2
Relative horiz.
27 101
1B 65
ESC e
dot position to the left
n
1
 n
2
n
1
 n
2
n
1
 n
2
With these commands you can indent a line, for example at the be-
ginning of a paragraph, where the spacing is measured in relative
dot columns. A dot-column is the space from the centre of one point
to the centre to another point within a character pattern. This  space
is irrespective of the character space and comes to 1/120 inch.
With the variables n
1
 and n
2
 in this command a specific dot position
can be defined at which the printout is to start. The values of the
variables can be calculated using the following table:
n
1
 = dot position - (n
2
* 256)
n
2
 = integer value (relative dot position/256)
If you want to move the current print position for less than 256 point
positions, you must replace n
1
 by the corresponding number of dot
columns and n
by the value 0. If you want to move the current print
position for more than 256 point positions, you have to devide the
number of dot columns by 256. Take the result for the values n
1
 and
n
 and calculate according to above mentioned table. Is this command
send, the print head position is moved by n
1
 + (n
2
 x 256) point
positions to the left or to the right side.
Have you chosen an indention beyond the left or right margin this
command is ignored. For an indention of 80 dot columns to the left,
type the following formula:
LPRINT CHR$ (27); "e"; CHR$ (80); CHR$ (0)
For an indention of 600 dot columns to the right, type the following
formula:
LPRINT CHR$ (27); "d"; CHR$ (88); CHR$ (2)
(600 : 256 = 2, remainder 88)
Relative dot
positioning