Esc j, Format control, Esc j lf – Compuprint 4247-L03 Programmer Manua User Manual

Page 24: Sets the absolute printing position. (epson), Line feed (ibm/epson), Format control esc

Advertising
background image

ESC J

Advances paper n/180 inch. (EPSON and IBMXL24AGM)
Advances paper n/216 inch. (IBMXL24 and 2391)

ASCII Code

ESC J n

Hexadecimal Value

X'1B' X'4A' n

Decimal Value

27 74 n

Range

1 ≤ n ≤ 255

This is a terminator code; it causes the current contents of the print buffer to be printed before performing
a single line feed of n/180 or n/216 of an inch. This command is cancelled after the line feed has been
performed. The printing restarts after a line feed from the column at which the command was sent.

LF

Line Feed (IBM/EPSON).

ASCII Code

LF

Hexadecimal Value

X'0A'

Decimal Value

10

This is a terminator code; it causes the current contents of the print buffer to be printed before advancing
the paper by one line at the current vertical spacing. If no data precedes the LF code, or if the preceding
data consists of spaces, the code only causes a line feed.

When the line counter reaches the last line of the form (defined by software or function menu), the LF
code causes a skip to the first line of the next form. This code cancels the double width printing set by the
SO code. In IBM mode, the column counter is set to the first column if the automatic carriage return is
selected. In EPSON mode, the column is always set to the first column.

Format Control

ESC $

Sets the absolute printing position. (EPSON)

ASCII Code

ESC & n

1

n

2

Hexadecimal Value

X'1B' X'24' n

1

n

2

Decimal Value

27 36 n

1

n

2

Range

0 ≤ n

1

n

2

255

This command specifies the distance from the left margin to where you want to print subsequent
characters. The distance is in number of dots and must be calculated using the following formula:

Margin distance = n

1

+ (n

2

x 256) where n

2

is the integer result of the number of dots divided by 256 and

n

1

is the remainder. 1 dot = 1/60 inch. If the selected position is outside the current right margin, the

sequence is ignored.

8

Programmer Manual

Advertising