Sign in to follow this  
Followers 0
Sheva_spd

barcode with code 39

5 posts in this topic

hai... i need some help, does anyone know how to read barcode in code 39? i use cx protocol but i can't found how to read the data i have placed '*' (2A hex) in header and terminator but i still can't get the data? i use Barcode PSC QS1000 if somebody have experience on it although not using cx protocol (use TX-RX), please help me thank you very much Edited by Sheva_spd

Share this post


Link to post
Share on other sites
You connect with port built-in PLC or expantsion. RX,TX use with Port built-in. You check setting in PLC anh correct with barcode.

Share this post


Link to post
Share on other sites
Hi. I don't remenber but I suggest you also check the hardware connection, special about ground 232, standar is pin 5 but omron maybe is 9. compare the 2 connection. bye

Share this post


Link to post
Share on other sites
Hi, The header and terminator character '*' in Code39 is only for barcode readers, if you don't put this characters, the barcode scanner won't read the code. And scanners do not transmit header and terminator to the host. There are several possibilites: 1- If you are printing your barcode from Microsoft Word, the data between '*' character, your data will be converted into bold font and '*' character is vanished automatically, so barcode readers do not read Code39 barcodes printed from Microsoft Word. Most Code39 barcode fonts also support '!' character as a header and terminator in order to avoid 'auto-bold' function of Microsoft Word. You can try to print your barcodes from Microsoft Excel or any other word processors. 2- Most of the barcode readers beeps after successfully decoding of a barcode by default, if you do not hear a beep when you put the barcode in front of barcode reader, probably barcode reader is not sending a data to host. If barcode reader does not beep when barcode is in the sight of laser beam, there are several more possibilities: a - Your barcode may not be a proper barcode, try to scan other barcodes with your barcode reader and try to scan your barcode with other barcode readers. You may consider to test your barcode with a free image processing software which can be found by a simple search on Google, they especially use a web cam and decodes the barcode in front of the web cam. b - In your readers configuration, Code39 may be disabled, you may need to enable it by scanning the proper barcode in your readers programming manual. Most barcode reader dealers do not ship the detailed programming / user manual, they only ship a single sheet guide, you may find the detailed user manual in manufacturers web site. User manuals are mostly found in pdf format. Unfortunately, most of the barcode readers are not able to scan barcodes from CRT or LCD screens, so you may need to print out the necessary pages of user / programming manual of barcode reader. c- Even you have RS232 output on your barcode reader, the reader may be not configured for RS232, many readers are configured for keyboard emulation by default. You should find the programming / user manual of the reader and scan the proper barcodes to set barcode reader for RS232 communications. d - You may also need to adjust baud rate, handshake and any other RS232 settings for your barcode reader. You also need the programming / user manual for this. 3 - First, be sure that barcode reader is scanning and decoding the barcode data, and sending it to the host. The easiest way to test an RS232 barcode reader is using Hyper Terminal software on PC. All RS232 barcode readers are designed for PC, and have female sockets. You can directly plug it on your computers serial port. Try to see the barcode readers output on Hyper Terminal software. 4 - Mostly, OMRON PLC RS232 outputs have Female sockets, so you must have a male socket to plug in. However, your barcode reader should have a female socket too. Gender changers may fool you, it is better to make your own. I am not sure but I guess that the proper gender changer cable diagram for barcode reader as follows: OMRON PLC Side PC Side DB9 Male Socket DB9 Male Socket Pin 2 <--------------------> Pin 3 Pin 3 <--------------------> Pin 2 Pin 9 <--------------------> Pin 5 5 - Most barcode readers only send scanned data, so you may only need a simple RXD command. And for convenience in PLC programming, you may set up a header and terminator characters both on PLC and barcode reader. Search the words 'prefix' for header, 'suffix' for terminator in barcode readers programming manual. Hope this helps.

Share this post


Link to post
Share on other sites
Hi, As for me, I am testing the related online .net barcode generator these days. Do you have any ideas about it? Or any good suggestion? I am totally a green hand on barcode generating field. Any suggestion will be appreciated. Thanks in advance. Best regards, Arron

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0