Member Login
Search
Jump to a Date
Sponsored Communities
Cool stuff
Neat Stuff

Visit our shop for nerds in control lifestyle products.
Thermal Overload
The threads that wouldn't die...
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
Fortune
Five is a sufficiently close approximation to infinity.
-- Robert Firth
-- Robert Firth
RSS Feed
www.control.com/rss/
To get a personalized feed, become a member at no cost.
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
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
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
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- Bosch Rexroth will acquire MSG Maschinen und Stahlbau for machine tool cooling, lubrication
- Direct-drive linear motion expands its applications
- Discrete sensors: New sensors to track head acceleration during possible injurious events
- Linear motors: Will the lights stay on for linear motion component production?
- Linear motion: New patent addresses maglev stability
- Motor sizing: Microsoft Vista issues resolved for VisuaSizer database
- Automation helps packagers: Webcast, research, 3-part article series
- Gantry-Style Automated Accumulation
- Partnership develops first-of-its-kind document-handling control system
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.
Our Advertisers
Help keep our servers running...
Patronize our advertisers!
Patronize our advertisers!




