![3nStar SC050 Programming Manual Download Page 12](http://html1.mh-extra.com/html/3nstar/sc050/sc050_programming-manual_3169267012.webp)
6
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 15: ...9...
Page 33: ...27...
Page 68: ...62...
Page 70: ...64 END...
Page 73: ...67...
Page 86: ...80 Insert 2B Insert 2D Insert 2A Insert A 41 Insert B 42 Insert C 43 END...
Page 95: ...89 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 0 30 1 31 2 32 3 33 4 34...
Page 96: ...90 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 98: ...92 5B 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...
Page 99: ...93 n 6E o 6F p 70 q 71 r 72 s 73 t 74 u 75 v 76 w 77 x 78 y 79 z 7A 7B 7C 7D 7E DEL 7F...