PSCAN-D-1D-D2 Division 2 Barcode Reader
72
Subject to modifications
www.pepperl-fuchs.us
USA: +1 330 486 0002
Singapore: +65 6779 9091
Copyright Fuchs
Germany: +49 621 776 2222
Message formatting
The system always provides PSCAN-D (barcode reader) to host data
communication using the following message formatting:
[Header][Barcode reader-Address]
[Barcode reader-Addresse_delimiter][Base
stationaddr.][Base station addr_delimiter]
[Time stamp][Time stamp_delimiter][Code
ID][Codelength]
CODE
[Terminator][items in
square brackets are optional]
Messages from Host to Reader
The general format to enable the barcode reader for 2 way
communication is:
[Barcode reader_address][Barcode reader_address_
delimiter]<Message>CR
Note
!
•
If you enabled the barcode reader address stamping or the Barcode
reader address delimiter, you must specify them in every message.
•
If you have not enabled the barcode reader address stamping or the
barcode reader address Delimiter, you must not specify them.
•
Messages cannot start with "$+" because they would be interpreted
as a configuration command.
The message field can store plain text and escape sequences.
•
Escape sequences are interpreted as commands.
•
Plain text is directly printed on the display. If writing beyond the end
of line, the display does not wrap automatically. Extra characters are
ignored. Control characters are not interpreted.
Cursor Control
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;cH 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
order ESC E to print a CR.
•
The cursor row position is not affected by the currently selected
front. The display always has 4 rows, so when writing with the large
font, actually two rows are written to the current one and the one
below it. 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.
Font Selection
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 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 characters on the display.
ESC # 7 Medium font: subsequent characters are written using 8x8
font which allows for four rows of twelve characters on the display.
LED and Beeper Control
ESC [0 q Emit short high tone + short delay
ESC [1 q Emit short low tone + short delay
ESC [2 q Emit long low tone + short delay
ESC [3 q Emit good read tone
ESC [4 q Emit bad tx tone
ESC [5 q Wait 100 ms
ESC [6 q Turn on the green LED
ESC [7 q Turn off the green LED
ESC [8 q Turn on red LED
ESC [9 q Turn off red LED
The LED control escape sequences are intended to activate the LEDs for
short periods of time and can be used in combination with the beeper.
The LED and beeper will be controlled by the system after the entire
command sequence is interpreted.
Example:
ESC [ 6 ESC [ 3 q ESC [ 7 q
Turns on the green LED, emits a good read
tone, and turns off the green LED.
ESC [ 6 ESC [ 5 q ESC [ 7 q
Turns on the green LED for 100 ms and
then turns off the green LED.
Setting RTC
ESC [ 0 p T T M M J J
Set date to day, month, year.
ESC [ 1 p H H M M
Set time to hours, minutes, seconds are
automatically set to 00.