Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Jump to a Date

Sponsored Communities
Cool stuff
Select a topic of interest:
...and press:
Neat Stuff
Control.com Stuff

Visit our shop for nerds in control lifestyle products.

Fortune
QUOTE OF THE DAY:

`

RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss/
To get a personalized feed, become a member at no cost.
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
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/Post Show.aspx?language=en&PostID=13732

http://support.automation.s iemens.com/WW/llisapi.dll?func=cslib.csinfo&lang=en&objid=1827484 3&caller=view?

From Control Engineering magazine...
Related articles from Control Engineering magazine
Above articles copyright 2009 Reed Business Information. Subject to its Terms of Use.
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-2009 Nerds in Control, LLC. All rights reserved.

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

Control Engineering magazine subscription
Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!