
Control Codes
PcOS Series 80PLUS
Programmer's Guide
Horizontal Motion
Page 18
Rev B 4/13/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
Description
This command inserts spaces in the print buffer up to the next tab stop. The
default tab locations are every eight spaces.
Function
Set horizontal tab stops
ASCII
[ESC] D <n
1
> <n
2
> <n
3
> ... <n
i
> 0
Hexadecimal
1BH 44H <n
1
> <n
2
> <n
3
> ... <n
i
> 00H
Decimal
<27><68><n
1
> <n
2
> <n
3
> ... <n
i
> <0>
IPCL
none
Description
This command sets tab stops at the character columns specified by <n>. The
end of the settings 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.
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.
The power up default is every eight spaces, i.e., 9, 17, 25, and so on.
Function
Reset horizontal tab stops
ASCII
[ESC] R
Hexadecimal
1BH 52H
Decimal
<27><82>
IPCL
&%HV
Description
This command resets horizontal and vertical tab stops to power up
configuration. The power up horizontal default is every eight spaces, i.e., 9, 17,
25, and so on. The vertical default is every line.