Socketcreatelisten creates a new socket resource of type AFINET listening on all local interfaces on the given port waiting for new connections. This function is meant to ease the task of creating a new socket which only listens to accept new connections. The DLS has the correct Com Port Selected Lower the baud rate on the Com Port to 300 If using a USB to Serial adapter make sure it’s a compatible adapter (Model: Keyspan USA19HS or the one that comes in the PC-Link kit). If not using a compatible USB to Serial adapter change it to a compatible model and retest communication.
[UPDATE]The code posted here uses the port.dll file that can be found on the web for free. The problem with port.dll is that it will only send one byte of data every 15.8ms (translates to 633 baud rate) regardless of the intended baud rate. This is a limitation of the port.dll file.
I am leaving this port.dll code here as a reference and because it works, however, I don't recommend using port.dll.
The recommended method to send/receive on the COM port is in the next post
[/UPDATE]
Well, at the risk of embarasing myself, here is a serial port console script that I pieced together using code that I found here on the forum.
I took me quite some time to put it together. So, I am placing it here so others can benefit.
The real power of this script is the ease with which it can be modified to send data instead of ASCII characters - something HyperTerminal (and other terminal emulators) can't do.
[EDIT] I was trying to be slick by putting a timestamp on the notepad file name - without testing it. Doing this broke the script. The code shown above works as advertised. Sorry for any confusion this may have caused.[/EDIT]