11
2.2 Serial port command instructions
Table 2.2-1 Serial Port Command Data Format
Length
Message
Source
Message
target
Reserve
Opcode
Command
Beeper
Check
Sum
Table 2.2-2 Serial Port Command Data Analysis
Field Format
Sub-Field
Description
Length 1
Byte
Length
Command length,
excluding Check Sum,
maximum value is 0xFF.
Message
Source
1 Byte
0x04=Host (PC or industrial
computer);
0x31= Decoder (barcode scanner)
Command source
Message
target
1 Byte
0x04=Host (PC or industrial
computer);
0x31=Decoder (barcode scanner)
Command target address
Reserve 1Byte
Reserved
(0x00)
Opcode 1Byte
Op-code command
function table
Command
Variable
number
of bytes
Beeper 1
Byte
0x31=Enable
0xFF=Disable
Buzzer status
Check
Sum
2 Byte
Message check sum
format High byte
low byte
Note:
1. Check Sum: Radix complement of command sum, high byte in the beginning and
low byte in the end.
Check digit calculation method: Adding up all bytes to get sum before checking
(excluding two check digit bytes). Check digit value=Sum reversed as per digit then
add one.
Example: Save & Exit (0A 04 31 00 24 25 45 4E 44 FF) adding up to obtain the
sum: 02 5E, switch to binary (0000 0010 0101 1110), then reverse (1111 1101 1010
0001), finally add one is check digit (FD A2).
2. When Command uses character in the following data format pack (prefix excluding
“0x”) and be sent via serial port command, it should switch character to Hex of ASCII
code accordingly.
Summary of Contents for SC050
Page 1: ......
Page 9: ...7 1 3 4 RS485 interface NO Function 1 Trigger optional 3 A 8 B 5 GND 9 DC 5V optional...
Page 10: ...8 1 3 5 USB interface NO Function 1 VCC 2 D 3 D 4 GND...
Page 11: ...9 1 3 6 PS2 Keyboard wedge Omission...
Page 27: ...25 Odd parity C0301 Even parity C0302 END...
Page 64: ...62 Character Hex 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 0 30 1 31 2 32 3 33...
Page 65: ...63 4 34 5 35 6 36 7 37 8 38 9 39 3A 3B 3C 3D 3E 3F 40 A 41 B 42 C 43 D 44 E 45 F 46 G 47...
Page 67: ...65 5C 5D 5E _ 5F 60 a 61 b 62 c 63 d 64 e 65 f 66 g 67 h 68 i 69 j 6A k 6B l 6C m 6D n 6E o 6F...