Jump to content

UnCmDrv1 and Visual C# 2017

Recommended Posts

New Issue:

    It appears that I have resolved the communication issue with this driver. However; the new problem is that when I pull information from the PLC (Either MB, MI, ML, etc...) the values being

returned are that of Boolean. I am looking in to switching to the .net Driver; has anyone had the same problem or know of a solution to fix that instead of changing drivers?


********************************* This communication issue has been resolved*****************************

I am writing code that will allow me to pull and push data to v290/530 Vision PLC.

I am writing in C# on Visual Studio 2017. I am making all the correct calls, however; the code cannot talk to the plc.

I can ping the plc just fine in a command line on the same machine I am coding. I can see the PLC using Visilogic.

Example of my code:


clsCommDriver plccomm1 = new clsCommDriver();

plccomm1.Comm_Autodetect = true;

plccomm1.Comm_TimeOut = 1000;

plccomm1.Comm_Retries = 1;

plccomm1.Ethernet_Protocol = UnCmDrv1.enEthernetProtocol.eEP_TCP;

plccomm1.Ethernet_RemotePort = 20256;

plccomm1.Ethernet_RemoteIP = "";




It seems that after this, I do a MessageBox.Show(plccomm1.Ethernet_Connect()); and the only result I get is false.

Any and all suggestions are weclome.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now