
13
Relationship between Programming Command and Serial Command
1. Program general parameter with serial command
A programming command (i.e. the characters under programming barcode) contains 7 characters. The
function of each character is described in the table below.
1st Char 2nd Char ~3rd Char 4th Char~5th Char 6th Char~7th Char
Remark
CMD
BITPOSITION
ADDR
DATA
“W”
“00”~“FF”
“00”~“FF”
“00”~“FF”
Write a value (DATA) to the
specified bits (BITPOSITION)
of the register (ADDR).
Note:1.
CMD
: Command type.
2.
ADDR
: Address of register to be written.
3.
BITPOSITION
: Bit(s) the value is written to. For example, if only bit 3 is to be written, the
BITPOSITION should be “08”; if all bits are to be written, the BITPOSITION should be “FF”.
4.
DATA
: Value written to the BITPOSITION.
The
ADDR
and
DATA
in programming command correspond to
Address
and
Datas
in serial command,
respectively:
1) If BIT
POSITION=”FF”, the values of ADDR and DATA can be used directly in the write command.
e.g., programming command: WFFD9D8 (write value
0xD8
to register
0x00D9
)
serial command sent : 0x7E 0x00 0x08 0x01
0x00 0xD9
0xD8
0x91 0x53
reply received : 0x02 0x00 0x00 0x01 0x00
0x33 0x31
2) If
BITPOSITION≠”FF”, users need to read the register content, calculate the value (Datas) and then
write the value into the register, as shown in the following example.
e.g., programming command: W030002 (write value 0x02 to bit1and bit0 of register 0x0000)
Step 1:
Read the content of register 0x0000.
serial command sent : 0x7E 0x00 0x07 0x01
0x00 0x00
0x01
0x01 0x41
Содержание NLS-EM3095
Страница 1: ...NLS EM3095 OEM Scan Engine User Guide...
Страница 3: ...Revision History Version Description Date V1 0 0 Initial release November 20 2013...
Страница 10: ......
Страница 46: ...36 19 Romania 20 Russia 21 Slovakia 22 Spain 23 Sweden 24 Switzerland 25 Turkey1 26 Turkey 2 27 UK 28 Japan...
Страница 63: ...53 Good Read Beep Frequency Low Medium High Good Read Beep Duration 40ms 80ms 120ms...
Страница 116: ...106 Mirror Images Decode Unmirrored DM Only Decode Mirrored DM Only Decode Both...
Страница 118: ...108 Mirrored Micro QR Decode Mirrored Micro QR Do Not Decode Mirrored Micro QR...
Страница 135: ...125 Appendix F Digit Barcodes 0 5 0 1 2 3 4 5...
Страница 136: ...126 6 9 6 7 8 9...
Страница 137: ...127 A F A B C D E F...