Esc j – Compuprint MDP40B Programmer Manual User Manual

Page 149

Advertising
background image

C-7

ESC J

Set left margin. (Olivetti PR2, PR40+, 2845)

ASCII Code

ESC J n

Hexadecimal Value

1B 4A n

Decimal Value

27 74 n

Sets the current position of the left margin of the print line with respect to the edge of
the paper or the margin set using ESC | A n. This position depends on the type of
print pitch selected (double width is considered as normal spacing).

The decimal value of n defines, as an absolute value, the position of the left margin,
which will coincide with the first printing position of each line. This position is
assigned the value 001 and becomes the reference point for all horizontal positioning
commands.

If n is equal to 000, the left margin will be set at the edge of the paper or at the
margin set using ESC | A n.

If the value of n exceeds the length of line-1, the edge of the paper or the margin set
using ESC | A n will be set.

The command is not accepted (command specification error) if:

• It is sent inside a printing field.
• Parameter n is greater than 255.

Advertising