MESSAGE FORMATTING
344
POWERSCAN™ PD/PM/PBT9600
The format of the ACK from Host message is:
[Scanner_Addr] [Scanner_Addr_delimiter] MESSAGE <CR>
The format of a generic message From Host to handheld reader is:
[Scanner_Addr] [Scanner_Addr_delimiter] DC2 MESSAGE <CR>
where DC2 is ASCII 0x12 (^R) character.
[Items in square brackets are optional.]
CURSOR CONTROL
FONT SELECTION
ESC SEQUENCE
ACTION
ESC [ n A
Up n rows, no scroll
ESC [ n B
Down
n
rows, no scroll
ESC [ n C
Right
n
columns
ESC [ n D
Left
n
columns
ESC [ G
CR
ESC [ r ; c H
Move to row r, column c
(ESC[1;1H is the upper left character position of the display)
ESC D
Down 1 row, with scroll
ESC E
CR and cursor down 1 row with scroll
ESC M
Up 1 row and scroll
NOTE:
• Since CR is used as the message terminator, you must use ESC [ G or
ESC E to print a CR.
• The cursor row position is not affected by the currently selected font.
The display always has 6 rows, so when writing with the large font,
actually three rows are written. You will need two ESC E commands
to step from one row to the next when using the large font.
• The cursor column position is affected by the currently selected font.
Therefore, column 6 is 36 pixels from the left border only if you last
selected the 6x8 font; otherwise it could be 48 or 72 pixels from the
left border.
ESC SEQUENCE
ACTION
ESC [ 0 m
Normal mode
ESC [ 7 m
Reverse mode
ESC # 4
Large font: subsequent characters are written on the
current row and the row below it using the 12x16 font
which allows for two rows of eight characters on the
display.
ESC # 5
Normal font: subsequent characters are written using
the 6x8 font, which allows for four rows of sixteen char
-
acters on the display.
ESC # 7
Medium font: subsequent characters are written using
the 8x8 font, which allows for four rows of twelve char
-
acters on the display.