Jump to content

c sharp - exception "Unknown PLC Model"


orenban

Recommended Posts

Hi,

 

I trying to connect to V700-T20BJ via .net c sharp code, and the "GetPLC" function return "Unknown PLC Model" exception,
I tried to debug and step into the function "GetPLC" and I saw that the code parsing the "PLCModels.xml" file,
and I think that the code didn't find xml element that match the V700-T20BJ model.
 
I attached the code here and the "Get OPLC information" from Vsio.
 
Thanks !
 

 

Ethernet eth = new Ethernet("192.168.1.16", 20256, EthProtocol.TCP, 3, 3000);

var plc = PLCFactory.GetPLC(eth, 0, "pita");//(eth, 0); 

 

Console.WriteLine(plc.Version.OPLCModel);
            Console.WriteLine(plc.PlcName);
            Console.WriteLine(eth.Connected);
            Console.WriteLine(plc.UnitId);
            Console.ReadLine();
 

post-50897-0-79601800-1461004879_thumb.png

Link to comment
Share on other sites

I'm using the full project 

Unitronics.ComDriver

I don't know which version I using, I can tell you that in the project properties = >assembly Information

displayed "1.0.0.47" in the Assembly Version field.

I tried to download the .net assembly from your forum, and the only link I found that work was the full project.

Most of the link from "http://ftp.unitronics.com/Downloads"are broken.

Can you tell me from where I need to download the latest version of the .net driver assembly?

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...