25
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
reply received : 0x02 0x00 0x00 0x01
0xD4
0xB8 0xC8
Содержание NLS-FM30 Series
Страница 1: ...NLS FM30 Series Fixed Mount Barcode Scanner User Guide...
Страница 14: ...6 Chapter 6 FM30 Scanner Overview FM3055 Scanner FM3050 Scanner...
Страница 18: ...10 IR Triggering Range...
Страница 19: ...11 Optics Horizontal Vertical...
Страница 49: ...41 Good Read Beep Frequency Duration Low Frequency Medium Frequency High Frequency 40ms 80ms 120ms...
Страница 52: ...44 A B C D E F...
Страница 59: ...51 USB Country Keyboard Types 1 U S 2 Belgium 3 Brazil 4 Canada 5 Czech 6 Denmark 7 Finland 8 France...
Страница 61: ...53 19 Romania 20 Russia 21 Slovakia 22 Spain 23 Sweden 24 Switzerland 25 Turkey1 26 Turkey 2 27 UK 28 Japan...