Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Search

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
Five is a sufficiently close approximation to infinity.
-- Robert Firth
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...
Need help with RS232 communication protocol exchange
Motion control, servos, steppers, etc. topic
Posted by Anonymouse on 28 August, 2008 - 11:14 am
Hi there,

I am a fortran programmer and not good with VB but I need a small program to help me with my problem.

My problem is I have a software controls an equipment. Software sends data stream according to "38400,n,1,8" to serial port (com1 or com2 which ever I choose in setting) but instrument accept data according to "9600,e,1,7" from com1. I need a program to match these two protocols in order for software to work with the equipment. This program should read data according to software protocol from com2 for example as it send and write the same data (or change according to my instruction in some minor cases) to com1 for the equipment to be able to recognize commands. Also it should read responses from equipment according to second protocol and send them to com2 for software according to first protocol. Could you please help me on this and write a few line program for this purpose?

Regards
Steve


Posted by Fred Loveless on 28 August, 2008 - 2:12 pm
Hi, when you create the object for the comm port you need to set the parameters for the baud rate, start, stop, parity and Data bits. This is how you control the communicaitons rate to the device. These rates have to match for communicaitons to work.

This is how server software works. Depending upon the devices you are talking to you may want to look at server software to do the communications.

Fred Loveles
Senior Application Engineer
Kepware Technologies
http://www.kepware.com

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 Control Technology Corporation. All rights reserved.

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

Internet Explorer 6.0 Fix

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!