Jump to content

Connecting to PLC beyond COM16?


Recommended Posts

Hi,

VB limits number of COM ports to 16.

So VisiLogic and VB Communication Driver have the same limit - 16 COM ports.

Last dotNet driver will use up to 256 COM ports.

You can download it from unitronics Support site: Unitronics.ComDriver Compiled Binaries Ver_1.0.0.47.zip

Link to comment
Share on other sites

Hi,

VB limits number of COM ports to 16.

So VisiLogic and VB Communication Driver have the same limit - 16 COM ports.

Last dotNet driver will use up to 256 COM ports.

You can download it from unitronics Support site: Unitronics.ComDriver Compiled Binaries Ver_1.0.0.47.zip

Hi Alex thanks for your help. Is there a reason 256 is the hard limit?

Thanks again.

Link to comment
Share on other sites

Hi,

Do you have a real project, where you need more than 255 controllers, or this is just a question of curiosity?

If you have a real project and 255 COM ports are not enough, please contact Unitronics Tech support team at support@unitronics.com with description of the project and the needs.

Despite this is very specific, unusual request, we will see how we can help you.

Link to comment
Share on other sites

Hi,

Do you have a real project, where you need more than 255 controllers, or this is just a question of curiosity?

If you have a real project and 255 COM ports are not enough, please contact Unitronics Tech support team at support@unitronics.com with description of the project and the needs.

Despite this is very specific, unusual request, we will see how we can help you.

Yes. We're(at my company) using Unitronics plc's in conjunction with Digi's(www.digi.com) realport driver to communicate with hundreds of locations. At this point we're having to create a new box(virtualized) for every 16 locations. Although 256 is still a lot better than every 16. I will be contacting shortly.

On a side note after downloading the latest .NET driver, I still can't communicate via COM17.

Thanks for your help.

Link to comment
Share on other sites

Please see:

http://support.microsoft.com/kb/100111

http://digital.ni.com/public.nsf/allkb/F7A9002D7B8E31E7862568D6006BD10B

Windows (at least up to Windows XP) is limited up to 256... I'm not sure though about Windows Vista and 7, but the communication driver is build for maximum compatibility.

About not being able to communicate with the PLC while using COM117, Please check the cables and confirm that both the PLC is connected to COM117 and that the program is trying to open the connection on COM117.

If you are still not able to trace the problem, there are ways to sniff or log the communication in order to see what's the problem.

Please confirm that your .Net program works when you try to work with for example COM1 or COM17 before starting to check it with COM117.

Link to comment
Share on other sites

Please see:

http://support.microsoft.com/kb/100111

http://digital.ni.co...62568D6006BD10B

Windows (at least up to Windows XP) is limited up to 256... I'm not sure though about Windows Vista and 7, but the communication driver is build for maximum compatibility.

About not being able to communicate with the PLC while using COM117, Please check the cables and confirm that both the PLC is connected to COM117 and that the program is trying to open the connection on COM117.

If you are still not able to trace the problem, there are ways to sniff or log the communication in order to see what's the problem.

Please confirm that your .Net program works when you try to work with for example COM1 or COM17 before starting to check it with COM117.

Hi thanks for your help. I'm able to communicate past 16 now. It was a simple issue. I'm guessing I can add to the enum object in the source code for COM ports past 255. I'll try that and see if it works on Windows Server 2008 R2/Windows 7

Link to comment
Share on other sites

Hi, the Com enum was for easy configuration.

However, when it was created, we allowed only up to 48 ports, and we have increased the num of ports to 256 only recently.

Since you have the code, then you can easily change it so it will not work with enum but with a ushort.

This way you will be able to enter the port number as a number up to 65535 and when needed create a serial port with port-name = "COM" + portnumber

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...