![background image](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.
Содержание SC050
Страница 1: ......
Страница 15: ...9...
Страница 33: ...27...
Страница 68: ...62...
Страница 70: ...64 END...
Страница 73: ...67...
Страница 77: ...71 4 17 15 All barcodes setting Command SET Disable All barcodes I1000 Enable All barcodes I1001 END...
Страница 86: ...80 Insert 2B Insert 2D Insert 2A Insert A 41 Insert B 42 Insert C 43 END...
Страница 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...
Страница 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...
Страница 97: ...91 H 48 I 49 J 4A K 4B L 4C M 4D N 4E O 4F P 50 Q 51 R 52 S 53 T 54 U 55 V 56 W 57 X 58 Y 59 Z 5A...
Страница 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...
Страница 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...