OKI ML4410 Guía Del Usuario

Descargar
Página de 122
Epson FX Mode
59
Engl
is
h
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 
65536 (2
16
). 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
Decimal
Hex.
ASCII
Comp.
Set left margin
27 108 n1
1B 6C n1
ESC l n1
F
Set right margin
27 81 n2
1B 51 n2
ESC Q n2
F