17
Programming Modes
EXAMPLE #3:
The following example shows the events that occur when an invalid bar code
is sent. This sample will load the factory default settings and then set the
baud rate to 19200.
HOST
SCANNER
FEATURE
COMMAND ASCII
REPRESENTATION
RESPONSE
Enter Program Mode [stx]999999[etx]
02h 39h 39h 39h 39h 39h 39h 03h [ack] or 06h
Load Defaults
[stx]99999:[etx]
02h 39h 39h 39h 39h 39h 3Ah 03h [nak] or 15h
Invalid command was sent, you must start over!
Enter Program Mode [stx]999999[etx]
02h 39h 39h 39h 39h 39h 39h 03h [ack] or 06h
Load Defaults
[stx]999998[etx]
02h 39h 39h 39h 39h 39h 39h 03h [ack] or 06h
19200 Baud Rate
[stx]415870[etx]
02h 34h 31h 35h 38h 37h 30h 03h [ack] or 06h
Exit Program Mode [stx]999999[etx]
02h 39h 39h 39h 39h 39h 39h 03h [ack] or 06h
The scanner will beep three times!
This example illustrates two important points.
First, if an invalid command is sent from the host, the scanner responds with
a [nak] and the end-user must start over from the beginning.
Second, if a command is sent to change the Baud Rate, the new baud rate
does not take effect until after the end-user exits program mode.
ABBREVIATED ASCII TABLE
Character
Hex Value
Decimal Value
[STX] 02h 2
[ETX] 03h 3
[ACK] 06h 6
[NAK] 15h 21
0 30h 48
1 31h 49
2 32h 50
3 33h 51
4 34h 52
5 35h 53
6 36h 54
7 37h 55
8 38h 56
9 39h 57
Содержание Eclipse MS5145-00
Страница 1: ......
Страница 2: ......
Страница 23: ...19 SCAN AREA Minimum Bar Code Element Width A B C D E F mm 10 12 17 26 33 66 mils 4 1 4 8 6 8 10 4 13 26...
Страница 47: ......
Страница 48: ...January 2006 Web 01 Only Printed in China 7 0 7 9 0 1 6 B...