3nStar SC050 User manual


Table of Contents
About this manual.....................................................................................I
Introduction............................................................................................. I
Caution.................................................................................................... I
Service information................................................................................. I
Manual apply to the following models ………………………………..II
Revised version...................................................................................... II
1. Product Specifications..........................................................................1
1.1 Technical parameters ........................................................................1
1.2 Barcode default parameters ..............................................................2
1.3 Interface specifications .....................................................................3
1.3.1 Scan module interface CMOS ......................................................................4
1.3.2 Scan engine interface without decoding .......................................................5
1.3.3 Standard serial port (DB9)............................................................................6
1.3.4 RS485 interface.............................................................................................7
1.3.5 USB interface................................................................................................8
1.3.6 PS2 Keyboard wedge....................................................................................9
2. Command instructions.......................................................................10
2.1 Barcode command instructions.......................................................10
2.2 Serial port command instructions ...................................................11
2.3 Command table ...............................................................................12
2.4 Quick command (HEX format) ......................................................13
3. General command data format .........................................................14
3.1 SET & END ....................................................................................14
3.2 Defaults parameter..........................................................................15
3.3 TRIGGER_SCAN & STOP_SCAN...............................................16
3.4 Version ............................................................................................17
3.5 OPEN_BEEPER .............................................................................18
3.6 ACK Handshaking ..........................................................................20
4. Modify parameters command ...........................................................21
4.1 Data output mode............................................................................21
4.2 Keyboard language .........................................................................22
4.3 Buzzer & LED control....................................................................23
4.4 Serial port setting............................................................................24
4.5 Serial port respond..........................................................................26
4.6 Transmit “No Read” Message ........................................................27
4.7 Power mode ....................................................................................28
4.8 Trigger mode & read mode.............................................................29
4.9 Delay for repeating to read the same barcode ................................30

4.10 Light delay after triggering the scanner caused by the trigger pin
...................................................................................................................31
4.11 Light delay after triggering the scanner caused by the serial port
commands/auto trigger .............................................................................32
4.12 Laser mode & Swing plate boot mode .........................................33
4.13 Auto trigger ...................................................................................34
4.14 Barcode setting .............................................................................35
4.14.1 EAN13 & UPC-A .....................................................................................36
4.14.2 EAN8 ........................................................................................................37
4.14.3 UPC-E.......................................................................................................38
4.14.4 CODABAR (NW-7) .................................................................................39
4.14.5 CODE 39................................................................................................... 41
4.14.6 CODE 93................................................................................................... 44
4.14.7 INTERLEAVED 2 OF 5 ...........................................................................46
4.14.8 STANDARD 2 of 5 (Industrial 2 of 5) .....................................................48
4.14.9 MATRIX 2 of 5.........................................................................................50
4.14.10 CODE 128 & EAN/UCC 128.................................................................51
4.14.11 CODE 11.................................................................................................53
4.14.12 CHINESE POST.....................................................................................55
4.14.13 Set Positive/Negative Barcodes .............................................................. 56
4.14.14 All barcodes setting.................................................................................57
4.15 Set prefix.......................................................................................58
4.16 Set suffix .......................................................................................59
4.17 Customize prefix/suffix ................................................................60
4.18 Update firmware mode .................................................................69
Appendixes ..............................................................................................70
Appendix 1: Barcode test card..............................................................70
Appendix 2: ASCII code table..............................................................71

2
1.2 Barcode default parameters
Type Read Check Check
Transmission
Start/End
Characters
Transmission
Min/
Max
Length ID
EAN13 n √√√X (13)2A
EAN8 n √√√X (8)2B
UPC-A n √√√X (12)2C
UPC-E n √√√X (8)2D
CODABAR(NW-7)n√- √- 4~70 E
CODE 39 n√- √- 3~50 F
CODE 93 n√√√X 1~80 G
INTERLEAVED 2OF5 n √- √X 4~80 H
STANDARD 2OF5 - - √X 4~80 I
MATRIX 2OF5 - X X X 6~80 J
CODE 128 n√√- X 1~80 K
EAN/UCC 128 n √√- X 1~80 L
CODE 11 - √- X 4~80 M
CHINESE POST - X X X 6~80 N
Note:
1. “√” means default enable, “-” means default disable, “×” means parameter of this barcode
type does not exist;
2. The min/max length of barcode noted with “2” means the length of barcode is fixed
length;
3. The type of barcode noted with “n” means support negative barcode decode.

3
1.3 Interface specifications
All Winson readers can be equipped with USB Keyboard, TTL/RS232 (DB9 female),
RS485 (DB9 male), PS2 keyboard or any other customized interfaces. Different
product’s standard interface is different. So please confirm it before purchase. Other
interfaces can be customized according to customer’s demand.

4
1.3.1 Scan module interface CMOS
Pin No. Name Type Description
1 NC Null Reserved
2 VCC DC Power DC3.3V or DC5V
(according to different modules) ±5%
3 GND
Digital GND
4 Rx Input COM input port TTL level
5 Tx Output COM output port TTL level
6 NC Null Reserved
7 NC Null Reserved
8 NC Null Reserved
9 BPR Output
Buzzer good read will be activated and output
frequency is 3K for 150ms if decoding successfully.
Output low level when idle.
10 LED Output
LED good read will be activated and output low level
if decoding successfully.
11 NC Null Reserved
12 TRIG Input Trigger scan

5
1.3.2 Scan engine interface without decoding
Interface circuit is a ZIP (0.5mm-8p) interface which communicates with outside
world. It’s the microprocessor that controls the scan engine’s work and takes the data
to decode.
Pin NO. Pin Name Description
1、2 GND Ground
3 SOS
Scan starting signal:
When the laser line reaches the edge, the signal will
transform from high to low or from low to high in order
to detect the start and finish of a scan.
4 DATA
The width of the DATA signal stands for the width of
black and white bars. The output is CMOS level.
High level=Bars, Low level=Spaces
5 TRIG
Allowing Trigger scanning signal:
TRIG=High: The scan engine will enter a power-saving
mode;
TRIG=Low: The scan circuit will be activated to the
ready state.
6 LASER-EN
Activation signal
LASER-EN=High or not connected: The laser will be
closed;
LASER-EN=Low and TRIG=Low: The scan engine
circuit will be activated and ready to scan barcodes. The
laser will open.
7 IR-TRIG Optional, IR trigger pin, only for WSL3000
8 VCC Power Supply: DC 5V

6
1.3.3 Standard serial port (DB9)
NO. Function
1 Trigger(optional)
2 Rx
3 Tx
5 GND
9 DC 5V(optional)
When pin 1 receives low level for 10ms, it means trigger and scan. (optional)
Pin 6 is only used in trigger mode. It will output low level for 100ms if it detects no
barcode after trigger. (value added service)

7
1.3.4 RS485 interface
NO. Function
1 Trigger(optional)
3 A+
8 B-
5 GND
9 DC 5V(optional)

8
1.3.5 USB interface
NO. Function
1 VCC
2 D-
3 D+
4 GND

9
1.3.6 PS2 Keyboard wedge
Omission

10
2. Command instructions
2.1 Barcode command instructions
A. Command barcodes are printed via Code 128 CODE B barcode set. Command
barcode is same as serial port command value(Detail as Chart 2.2-1).
B. Note with “*” means factory default parameter.
(a) “%SET”: Enter setting mode; It will drop out setting mode automatically if it not
scans next command barcode in 30s;
(b) Modify parameters command: It can scan one or several command barcodes;
(c) “%END”: Save & Exit.

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
Var i ab l e
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.

12
2.3 Command table
Table 2.3-1 Command table
Name Opcode Description Barcode
comman1
Serial
port
comman2
Serial port
respond3
SET 0x24
Enter setting
mode √X X
END 0x24 Save & Exit6√√√
TRIGGER_SCAN 0x26 Trigger scan X √√+barcode4
STOP_SCAN 0x27 Stop scan √√√
FACTORY_DEFAULTS 0x28
Restore
factory
default
√√√
CUSTOM_DEFAULTS 0x29 Restore
user default √√√
WR_CUSTOM_DEFAULTS 0x2A Write
user default √√√
READ_REVISION 0x2B
Read
product
software
version
√√√+software
version5
PARAM_MODIFY 0x50
Modify
parameter
value
√√√
OPEN_BEEPER 0x31 Open buzzer X √X
ACK 0x3F Handshaking X √X
Note:
1. Whether to support the barcode command setting;
2. Whether to support to send command setting via serial port;
3. Whether it is necessary for the scanner to respond when it allowed to answer;
4. Scanner will respond and return the ASCII code of the barcode characters if read successfully;
5. Scanner will respond first and then return the software version when allowed replying;
6. Save settings.

13
2.4 Quick command (HEX format)
Quick command can be used in the following conditions:
Message Source=0x04 (PC or Industrial Computer);
Message target=0x31 (barcode scanner 0x31);
Beeper=0xFF (Closed).
Table 2.4-1 Host to Scanner
Function Command(HEX format)
Commoncommand:
Save & Exit (%END) 0A 04 31 00 24 25 45 4E 44 FF FD A2
Trigger scan (LT) 08 04 31 00 26 4C 54 FF FD FE
Stop scan (LS) 08 04 31 00 27 4C 53 FF FD FE
Restore factory default (DF) 08 04 31 00 28 44 46 FF FE 12
Restore user default (DC) 08 04 31 00 29 44 43 FF FE 14
Write user default (WC) 08 04 31 00 2A 57 43 FF FE 00
Read product batch version (RV) 08 04 31 00 2B 52 56 FF FD F1
Modify parameter command:
Single read (F0000) 0B 04 31 00 50 46 30 30 30 30 FF FD 6B
Continuous read (F0001) 0B 04 31 00 50 46 30 30 30 31 FF FD 6A
Disable repeat read (F0100) 0B 04 31 00 50 46 30 31 30 30 FF FD 6A
Enable repeat read (F0101) 0B 04 31 00 50 46 30 31 30 31 FF FD 69
Multiple read (F0102) 0B 04 31 00 50 46 30 31 30 32 FF FD 68
TTL/RS232 output (A0000) 0B 04 31 00 50 41 30 30 30 30 FF FD 70
USB HID Keyboard output (A0001) 0B 04 31 00 50 41 30 30 30 31 FF FD 6F
Disable respond (E0000) 0B 04 31 00 50 45 30 30 30 30 FF FD 6C
Enable respond (E0001) 0B 04 31 00 50 45 30 30 30 31 FF FD 6B
Disable transmit NR (G0000) 0B 04 31 00 50 47 30 30 30 30 FF FD 6A
Enable transmit NR (G0001) 0B 04 31 00 50 47 30 30 30 31 FF FD 69
Enable transmit NR (protocol) (G0002) 0B 04 31 00 50 47 30 30 30 32 FF FD 68
Disable read all barcodes (I1000) 0B 04 31 00 50 49 31 30 30 30 FF FD 67
Enable read all barcodes (I1001) 0B 04 31 00 50 49 31 30 30 31 FF FD 66
Table 2.4-2 Scanner to Host
Function Command(HEX format)
Respond if setting succeed 07 31 04 00 01 06 FF FE BE
Respond if setting fail 07 31 04 00 01 15 FF FE AF
Enable transmit NR (protocol) 08 31 04 00 02 4E 52 FF FE 22

14
3. General command data format
3.1 SET & END
Data format:
Length Message
Source Message
target Reserve Opcode Command beeper Check
Sum
0x0A 0x04 0x31 0x00 0x24 %END
Command:
Enter setting mode %SET
Save & Exit %END

15
3.2 Defaults parameter
Data format:
Command:
Opcode %SET
Restore factory default 0x28 DF
Restore user default 0x29 DC
Write user default10x2A WC
%END
Note:
1. Setting “Write user default” will automatically set with “%END”.
Length Message
Source Message
target Reserve Opcode Command beeper Check
Sum
0x08 0x04 0x31 0x00

16
3.3 TRIGGER_SCAN & STOP_SCAN
Data format:
Length Message
Source Message
target Reserve Opcode Command beeper Check
Sum
0x08 0x04 0x31 0x00
Command:
Opcode %SET
Trigger scan 0x26 LT
Stop scan 0x27 LS
%END

17
3.4 Version
Data format:
Length Message
Source Message
target Reserve Opcode Command beeper Check
Sum
0x08 0x04 0x31 0x00 0x2B
Command:
%SET
Read product batch version RV
Read product bootload version RB
%END

18
3.5 OPEN_BEEPER
Field Format Sub-Field Description
Data format:
Table 3.5-1
Field Sub-Field Description
Length 0x0F Command length,
excluding Check Sum
Message
Source 0x04 0x04=Host
(PC or Industrial Computer)
Message target 0x31 0x31=Decoder (barcode scanner)
Reserve 0x00 Reserved
Opcode 0x31 OPEN_BEEPER
0x2F Fixed(/)
Beeper Type Sound type (0x01~0x03)
First Frequency Sound 1 Frequency (0x00~0x08)
refer chart 3.5-2
first_x25ms Sound 1 time based on 25ms (0x00~0xFF)
Second Frequency Sound 2 Frequency (0x00~0x08)
refer chart 3.5-2
second_x25ms Sound 2 Time based on 25ms (0x00~0xFF)
Third Frequency Sound 3 Frequency (0x00~0x08)
refer chart 3.5-2
third_x25ms Sound 3 time based on 25ms (0x00~0xFF)
Command
Between Stop
Beeper_x25ms
Stop time between each sound
of type 2 or 3
Beeper 0xFF Reserved
Check Sum 2 byte
Note: Different Command value can produce different sound.
Table 3.5-2
Value Frequency
0x00 BEEPER_1350Hz
0x01 BEEPER_1500 Hz
0x02 BEEPER_1700 Hz
0x03 BEEPER_2000 Hz
0x04 BEEPER_2300 Hz
0x05 BEEPER_2500 Hz
0x06 BEEPER_2700 Hz
0x07 BEEPER_3100 Hz
0x08 BEEPER_3500 Hz
Other manuals for SC050
1
Table of contents
Other 3nStar Barcode Reader manuals

3nStar
3nStar PTE0905-MSR User manual

3nStar
3nStar SC550 User manual

3nStar
3nStar 2054K Series User manual

3nStar
3nStar SC440 User guide

3nStar
3nStar SC455 Owner's manual

3nStar
3nStar SC050 Owner's manual

3nStar
3nStar SC430 User manual

3nStar
3nStar SC430 User guide

3nStar
3nStar SC365 User manual

3nStar
3nStar SCI150 User manual