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 BITPOSITION=”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
Summary of Contents for NLS-EM2000
Page 1: ...NLS EM2000 Embedded 2D Barcode Scan Engine User Guide...
Page 3: ...Revision History Version Description Date V1 0 0 Initial release April 10 2015...
Page 10: ......
Page 64: ...54 Good Read Beep Frequency Low Medium High Good Read Beep Duration 40ms 80ms 120ms...
Page 117: ...107 Mirror Images Decode Unmirrored DM Only Decode Mirrored DM Only Decode Both...
Page 119: ...109 Mirrored Micro QR Decode Mirrored Micro QR Do Not Decode Mirrored Micro QR...
Page 136: ...126 Appendix F Digit Barcodes 0 5 0 1 2 3 4 5...
Page 137: ...127 6 9 6 7 8 9...
Page 138: ...128 A F A B C D E F...