24.01.2015 Views

1 Turn off the power of the printer. - Van Mechelen

1 Turn off the power of the printer. - Van Mechelen

1 Turn off the power of the printer. - Van Mechelen

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ESC a n<br />

[Function]<br />

[Code]<br />

Aligning <strong>the</strong> characters<br />

HH<br />

[Range] 0 n 2<br />

48 n 50<br />

[Outline]<br />

[Caution]<br />

[Default] n = 0<br />

[Sample Program]<br />

[Print Results]<br />

All <strong>the</strong> printed data within one line are aligned in <strong>the</strong> specified<br />

position.<br />

• Depending on <strong>the</strong> value “n”, positional alignment is carried<br />

out as shown in <strong>the</strong> table below:<br />

n<br />

Position<br />

0,48 Left end alignment<br />

1,49 Centering<br />

2,50 Right end alignment<br />

• This command is valid only when it is inputted at <strong>the</strong> beginning<br />

<strong>of</strong> a line.<br />

• This command does not affect <strong>the</strong> PAGE MODE.<br />

LPRINT CHR$(&H1B) + “a” + CHR$(0);<br />

LPRINT “AAAAA” + CHR$(&HA);<br />

LPRINT CHR$(&H1B) + “a” + CHR$(1);<br />

LPRINT “AAAAA” + CHR$(&HA);<br />

LPRINT CHR$(&H1B) + “a” + CHR$(2);<br />

LPRINT “AAAAA” + CHR$(&HA);<br />

END<br />

AAAAA<br />

AAAAA<br />

AAAAA<br />

Left-justified Centered Right-justified<br />

<<br />

Paper Feed<br />

Direction<br />

— 86 —

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!