RS 232 serial communication

Mani

Member
Join Date
Jun 2002
Posts
5
Hey
Can anyone explain to me how I can write a program that will be sent through my COM1 (RS232) port. I want to send commands (from program) to a temperature controller. example command: *W012003E8, where controller will recognize this as to change setpoint to 100C. I hope my question is clear. Thanks in advance to all who respond.
Regards, Mani
 
Your primary source of information will be the manual from the temperature controller manufacturer concerning the serial interface. A typical manual will have the example using the 'Hyperterminal' accessory on most PC's. Some will also show a BASIC example. To use this you would need some type of BASIC. I understand that Microsoft's old 'QBASIC' is still available on the net somwhere. Otherwise, using Visual BASIC would be a more modern alternative. I know this is very general but it's a start.
 
Bernie's pretty much got it nailed. Here's just a few more tidbits...

I've found the old windows terminal (winterm.exe) a little easier to use than Hyperterminal. If you've got it, I'd suggest using that one instead.
Before you attempt to do any programming, load your terminal program and try to make it talk to your device. Once you've got your baud rates matched up and you've figured out the syntax of your commands, then you can start programming. That'll make troubleshooting a whole lot easier.

I've tried using Visual Basic to write a serial communication application before, but I haven't had much luck. I can send data without much trouble, but I tend to lose data when I try to receive. Visual Basic is very event driven and I haven't figured out how to trigger my code when the device starts talking back (Does anyone have a sample app., by the way?). If you're a VB guru, you might have more luck. Otherwise, try using QBasic or batch files.

AK
 

Similar Topics

I have wasted a week trying to figure out how to connect an SLC5/03 with my laptop. I do not have and can not Buy the 1747 UIC and PC3 cables. I...
Replies
14
Views
2,551
MELSEC A RS422 (25pin) <> iQR C24 Serial RS232 (9pin) - Simple PLC Communication Communication from a MELSEC-A Series CPU (RS-422 – DB 25 Pin)...
Replies
4
Views
1,042
Good morning everyone, This is my first post here. I am beginning my journey on PLC programming and still a really newbie, I want to write a...
Replies
0
Views
1,253
I need to print data produced by the program PLC (Beckhoff PLC) from a Citizen PMU 2300 printer. More precisely I need to send the data to the...
Replies
9
Views
3,993
How many device can be connected by using RS_232? I know that there will be only one RS-232 transmitting device and i would like to know how many...
Replies
13
Views
3,588
Back
Top Bottom