advertisement
from the Automation List department...
S7-300 & bar code reader
PLCs and related questions. topic
Posted by Arturo Arevalo on 24 November, 2007 - 5:46 pm
Hey guys, I am trying to get data from a Symbol bar code reader using a S7-300. The first problem I found is that the S7-300 works with RS485 and the bar code reader works with RS232 so I got a RS485/RS232 converter from Phoenix Contact but I can not make it work. Does any of you have any suggestions or sample codes that I can use as a reference?


Posted by H.Hassona on 1 December, 2007 - 6:54 pm
Dear Arturo,

My colleague had done this before but using S7 224 XP. I don't know how to make it with S7-300 but I'll try to state some basic info.
I don't know how your configuration is but you have to know that S7-300 ports are dedicated for MPI and PROFIBUS-DP protocols and as far as I know, ports can't be reconfigured. so, to communicate with a device that talks with different protocol like barcode reader (most barcode talks ASCII over RS232), you will be in need of one of 2 things,
Either to have a CPU that has PtP port like 313C-2PtP (RS485) + RS485/RS232 converter
OR to have a CP340 /CP341 ( works directly with RS232 ). and I think you'll need a software to parameterize any PtP port ( ask SIEMENS about the software ).
Once you parameterize your port, you can deal with barcode with some system functions.
I think these links might look useful to you as they have sample of configuration and code to deal with barcode.

http://www.automation.siemens.com/WW/forum/guests/PostShow.aspx?lan guage=en&PostID=13732

http://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csi nfo&lang=en&objid=18274843&caller=view?

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2010 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
Fuch's Warning:
If you actually look like your passport photo, you aren't well
enough to travel.
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive