Internet PLC Forum
General => Technical support => Topic started by: SeGrO on August 04, 2005, 08:58:26 AM
-
I am trying to interface the TM100 1616 with the PC using one of the serial comm ports. I am writing the user interface in C#. The user interface program will continuously poll the PLC to get counter, DAC, and other status variables. The problem that I am encountering is the serial communication in C#. Does anyone know of any libraries that would accomplish serial communication in C#? I know that they exist out there, but the only ones that I have been able to find are really expensive for my student pocket. I would really appreciate it if someone could direct me to a good, maybe free, serial communications library.
Thanks,
SeGrO
-
You have a few options that I know of:
- Serial Port Sample at GotDotNet (http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=b06e30f9-1301-4cc6-ac14-dfe325097c69) which has a few problems if I remember correctly (read the discussion).
- John Hind's Serial Device Class (http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/default.aspx) I'm using this one and I've been pretty happy with it. It was a little awkward for me to use at first but it works.
- NETCommOCX (http://ourworld.compuserve.com/homepages/richard_grier/NETCommOCX.htm)
- DesktopSerialIO (http://ourworld.compuserve.com/homepages/richard_grier/DesktopSerialIO.htm)
- Sax.net Communications Control (Community Edition) which is now part of a "Partner Products DVD" from Microsoft (http://msdn.microsoft.com/vstudio/extend/partnerdvd/).
- Wait for .NET 2.0 which will have a serial port class.