ESC a n

[Function]

Aligning the characters

[Code]

<1B>H<61>H<n>

[Range]

0

n

2

 

48

n

50

[Outline]

All the printed data within one line are aligned in the specified

 

position.

 

Depending on the value “n”, positional alignment is carried out as shown in the table below:

n

0,48

1,49

2,50

Position

Left end alignment

Centering

Right end alignment

[Caution]

• This command is valid only when it is inputted at the beginning

 

of a line.

 

• The settings of this command have no effect on PAGE MODE,

 

but items set in PAGE MODE are valid even after STANDARD

 

MODE resumes.

[Default]

n = 0

[Sample Program]

LPRINT CHR$(&H1B) + “a” + CHR$(0);

 

 

LPRINT “AAAAA” + CHR$(&HA);

 

LPRINT CHR$(&H1B) + “a” + CHR$(1);

 

LPRINT “AAAAA” + CHR$(&HA);

 

LPRINT CHR$(&H1B) + “a” + CHR$(2);

 

LPRINT “AAAAA” + CHR$(&HA);

 

END

[Print Results]

A A A A A

A A A A A

 

 

A A A A A

Left-justified

Centered

Right-justified

Paper Feed Direction

— 87 —

Page 107
Image 107
Citizen Systems iDP3240 user manual ESC a n, Range Outline