beautypg.com

Control codes pcos series 150 programmer's guide, Horizontal motion control, Horizontal motion – Star Micronics 150 User Manual

Page 26

background image

Control Codes

PcOS Series 150

Programmer's Guide

Horizontal Motion

Page 16

Rev G

12/14/99

Horizontal Motion Control

There are several commands that can control the horizontal position of characters. Many
applications use space control to position fields. However, there is the ability to control character
position with horizontal tab stops. This is done by using the horizontal tab [HT] to move to those
tab stops.

Function

Horizontal tab

ASCII

[HT]

Hexadecimal

09H

Decimal

<9>

IPCL

&%HT

EPOS

[HT]

Description

This command inserts spaces in the print buffer up to the next tab stop.
The default tab locations are every 8 spaces.

Function

Back space

ASCII

[BS]

Hexadecimal

08H

Decimal

<8>

IPCL

&%BS

EPOS

[BS]

Description

This command prints the data in the print buffer and shifts the current
horizontal position by one character width to the left. If the current
position is at the left margin, the [BS] is ignored.

Function

Set horizontal tab stops

ASCII

[ESC] D

1

>

2

>

3

> ...

i

> 0

Hexadecimal

1BH 44H

1

>

2

>

3

> ...

i

> 00H

Decimal

<27> <68>

1

>

2

>

3

> ...

i

> <0>

IPCL

none

EPOS

[ESC] D

1

>

2

>

3

> ...

i

> 0

Description

This command sets tab stops at the character columns specified by .
The end of the setting is specified by a <0>. All previously set tabs will be
cleared by this command. There is no restore-defaults procedure other than
to respecify the tabs. The power up default is every 8 spaces, i.e., 9, 17, 25,
etc. Column sizes are in accordance with the current character pitch.

Setting tabs that are beyond the station width is possible. A [CR] will be
inserted if the tab is used. Printing will begin at the home position.