ASCII Comms

Mike990

Member
Join Date
Oct 2019
Location
Uk
Posts
3
Hi,

I have an issue with an old west controller communicating to a PC via RS232.
Does anyone know of a program that I can use to send responses automatically to ASCII commands?

E.g when the PC sends L1M?* I would like to via a terminal program automatically reply with L1M00130A* to emulate the west controllers response and confirm that the PC is working.

Thanks

Mike
 
Hi,

I have an issue with an old west controller communicating to a PC via RS232.
Does anyone know of a program that I can use to send responses automatically to ASCII commands?

E.g when the PC sends L1M?* I would like to via a terminal program automatically reply with L1M00130A* to emulate the west controllers response and confirm that the PC is working.

Thanks

Mike




I'm dating myself, but kermit has a module to do this kind of thing, I think it's called expect.


Tcl has an expect module. I've also done this with VBA in eXcel, to execute a dialog and get data from [telnet horizons.jpl.nasa.gov 6775].


Those are all general solutions, if the L1M?* is the only thing you want to respond to, then any language that can open the comN port should be able to do it.




summat like this https://www.eltima.com/products/serial-port-monitor/ may do what you want; the purchase price is a fraction of what it would take in time to build this from scratch.
 
Last edited:
Many years ago I wrote a terminal program for testing Eurotherm controllers and PLC communications in Delphi it is a standalone exe you could configure up to 16 commands to respond to, these were flexible i.e. you typed in the responses expected from the controller and the replies sent to the controller
so in essence it worked both ways it is a little complicated to set up as it depends which is the master I will see if I still have it, I know it works on all versions of windows up to win7, not tried it on win10 I will see if I still have it. It does have a slight bug that I never bothered to fix where if you turned off the coms with the open/close button and it was communicating at the time it would lock into a loop, but never bothered to correct it as pulling the lead out then pressing close coms it worked ok. But DR is right there are a number of terminal programs out there that allow you to configure response data.
 
+1 for termite

That, or buy a 1757-L85E, slave an L63 a few racks over, and transmit ASCII.

Decisions, decisions.
 

Similar Topics

Trying to talk to an ABB Magmaster through serial using TOP server. Does anyone know the ascii commands? I have the manual which gives me the...
Replies
0
Views
1,076
Hello all, A customer is replacing some equipment, and in this process a server utilising TCP/IP protocol will need to communicate with an...
Replies
4
Views
1,822
I am trying to communicate from a ML1400 to a Yaskawa Servo having an indexer control module using channel 2 and an isolated RS232 to RS 485 Full...
Replies
3
Views
1,897
Is there an Ascii Communication for dummies file I can learn from. I have a Compact Logix L32E Using the serial port to talk to a Keyence Camera...
Replies
1
Views
1,656
Hi all, Just trying not to reinvent the wheel (and save time). Has anyone got any example code or tips for using schneider unity pro to...
Replies
0
Views
1,881
Back
Top Bottom