Setting Margins - Oki ML4410 User Manual

Oki ml4410: user guide
Hide thumbs Also See for ML4410:
Table of Contents

Advertisement

For example, if printing is required to start 300 dots in from the left
margin, the calculation would look like this:
n2 = Int.(300/256) = 1
n1 = 300 - (1 x 256)
n1 = 300 - 256 = 44
so the command would read:
CHR$(27);"$";CHR$(44);CHR$(1);
To set the relative position the procedure is very similar except that the
position is calculated in 1/120 inch dot spacing. The main difference is
that, as the name suggests, the next printing position is calculated using the
last printing position immediately before receipt of the command as the
reference.
To move the print position to the right, calculate n1 and n2 from the
number of dots that are required and enter these values into the command:
CHR$(27);CHR$(92);CHR$(n1);CHR$(n2).
Moving the relative print position to the left is a little more complicated.
Firstly, determine the number of dots required. Subtract this value from
16
65536 (2
). Finally, calculate n1 and n2 using the formula given above
and enter the values into the command format.
Note:
n1 and n2 are both decimal numbers between 0 and
255.
Both commands will be ignored if they set the dot position outside the
margin limits.

Setting Margins

The left margin is set n1 characters from the head home position. The right
margin is set n2 characters from the head home position.
Setting margins
Set left margin
Set right margin
Epson FX Mode
Decimal
Hex.
27 108 n1
1B 6C n1
27 81 n2
1B 51 n2
ASCII
Comp.
ESC l n1
F
ESC Q n2
F
59

Advertisement

Table of Contents
loading

Table of Contents