Rice Lake Star SP298 Series Programmers Manual User Manual

Page 53

Advertising
background image

50

<ESC>

“!”

1B

21

Select line mode (default)
If this command is specified while in page mode, printing is not
carried out and the printer returns to line mode.

<ESC>

“*”

X

L

X

H

Y

L

Y

H

dX

L

dX

H

dY

L

dY

H

1B

2A

X

L

X

H

Y

L

Y

H

dX

L

dX

H

dY

L

dY

H

Setting print area in page mode
The coordinates of the current position at the moment that page
mode is entered are (0,0). The starting point of the print area is
defined by X

L

, X

H

, Y

L

and Y

H

. In addition, the length DX in the X

direction is specified by dX

L

and dX

H

, and the length DY in the Y

direction is specified by dY

L

and dY

H

.

Starting point X

0

= X

L

+ (X

H

×

256) dots

Starting point Y

0

= Y

L

+ (Y

H

×

256) dots

Length in horizontal direction DX = dX

L

+ (dX

H

×

256) dots

Length in vertical direction DY = dY

L

+ (dY

H

×

256) dots

The values of XL, YL, dXL and dYL are between 0 and 255, and the
values of XH, YH, dXH and dYH are between 0 and 1.
However, dXL = dXH = 0 and dYL = dYH = 0 are not included.
In addition, since the maximum range in the X direction (X

O

+ DX)

is 210 dots and the maximum range in the Y direction (Y

O

+ DY) is

720 dots, each parameter should be specified to satisfy these ranges.
When the power is turned on, XL = XH = YL = YH = 0 (X

O

,Y

O

=

0,0)

dXL = 210, dXH = 0 (DX = 210) and
dYL = 64, dYH = 2 (DY = 576).

CODE

HEX

FUNCTION

CODE

HEX

FUNCTION

Paper feed direction

Current position (0,0)

Print area

DY

DX

(X

0

,Y

0

)

Advertising