Open tejasklodha opened 7 years ago
Hello!
Variable _opcServerVendor should be "Graybox.Simulator". Check with some other OPC Monitor (for ex. Matrikon OPC Explorer) if this server works fine on your PC, may be the reason is some DCOM issues.
Yup ....
I already checked with matrikon opc explore and "graybox.simulator" working fine and populated live variable.....
Comment try..catch in a code, see what exception exactly you get.
And, by the way, this program reads only variable from instance _plc.StatusTags of PLC class. They are diagnostic tags from SLC500 PLC from Rockwell. Your server does not have such. You will need to change program to work with OPC-server you need. However connection should pass.
Dear Sir,
I am getting below error while run your code on :
_opcServer.Connect(new Opc.ConnectData(new NetworkCredential()));
Error is as below:
What is resolution. I am also change server name as : "opcda://localhost/Graybox.Simulator" but still error same as below
Kindly guide If I am doing wrong. My requirement is simple that " I want to fetch Live variable from PLC(OPC DA Server)"
Thanks,