Examples Of Setting And Query Commands - Mindeo ES3600 User Manual

Embedded image scanner
Table of Contents

Advertisement

4-2 Examples of setting and query commands

The following examples illustrate how a command should be constructed and transmitted to the
scanner.
Example 1: Append prefix "1N" to all symbols
Step 1:
Set Prefix string setting to be "1N".
1)
2)
Look up the parameter table in 6 Parameter Menus and the ASCII table in 11 ASCII table. The
target parameter index is "8001".
Its numeral system is hexadecimal, indicated by 'H'.
3)
Using the ASCII table, "1N" is translated into "314E".
4)
Put all above parts and then append a prefix and a storage indicator '.', thus,
5)
"<SYN>M<CR>8001H314E." is the command.
Upon receiving command, scanner response with "8001H314E<ACK>".
6)
Host: <SYN>M<CR>8001H314E.
<SYN>M<CR>
0x16 0x4D 0x0D
0x38 0x30 0x30 0x31
Scanner: 8001H314E<ACK>
8001
0x38 0x30 0x30 0x31
Step 2:
1)
Enable Prefix transmission.
2)
Look up the parameter table in 6 Parameter Menus and the ASCII table in 11 ASCII table. The
target parameter index is represented by: "8201".
The numeral system is decimal: 'D'.
3)
The value is translated as: '0' and '1'.
4)
Put all above parts and then append a storage indicator '.' to construct the command:
5)
"<SYN>M<CR>8201D01."
Upon receiving command, scanner response with "8201D01<ACK>".
6)
Host: <SYN>M<CR>8201D01.
<SYN>M<CR>
0x16 0x4D 0x0D
0x38 0x32 0x30 0x31
Scanner: 8201D01<ACK>
8201
0x38 0x32 0x30 0x31
8001
H
0x48
H
0x48
0x33 0x31 0x34 0x45
8201
D
0x44
D
01
0x44
0x30 0x31
314E
0x33 0x31 0x34 0x45
314E
01
.
0x30 0x31
0x2E
<ACK>
0x06
96
.
0x2E
<ACK>
0x06

Advertisement

Table of Contents
loading

Table of Contents