CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Wed Oct 18, 2017 5:01 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: OPC server status bad
PostPosted: Fri Nov 02, 2012 9:08 am 

Joined: Fri Nov 02, 2012 8:27 am
Posts: 1
Using CoDeSys version 2.3 I have an issue when using the OPC server. The network consists of 7 plc's but only one of them is used for OPC variables. Consequently I have set up a single-PLC configuration. The communication works fine as long as I am logged in to the "OPC PLC" however closing the CoDeSys application will most of the time make the variables turn to bad in the OPC client. Starting up again and select login to the "OPC PLC" converts the variables to good again.

I have also seen that the OPC Configuration changes automatically to another PLC when using CoDeSys to login to that PLC. How can that be possible? I always want the OPC server to work against the same PLC.

I have seen this behaviour on two different systems.

Best Regards

PostPosted: Wed Sep 21, 2016 12:05 pm 

Joined: Fri Sep 09, 2016 4:42 pm
Posts: 2
We have exactly the same problem using simple polling and the .NET reference library from the OPC foundation. Could you solve it?

This is unstable or even not working - we have to keep another OPC client open that "registeres" for each item.

Our code is working for many years with a lot of other OPC servers without any issue:

string serverURL = "opcda://localhost/CoDeSys.OPC.DA";
opcServer = new Opc.Da.Server(new OpcCom.Factory(), new Opc.URL(serverURL));

Opc.Da.ItemValueResult[] resultItemArray = new Opc.Da.ItemValueResult[1];
Opc.Da.Item item = new Opc.Da.Item();
item.ItemPath = "";
item.ItemName = itemName;
item.Active = true;
item.EnableBuffering = true;
item.SamplingRate = 200;

resultItemArray = opcServer.Read(new Item[1] { item });

PostPosted: Wed Sep 21, 2016 1:15 pm 
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2159

this will problem be solved with the release of the OPC V3 Server


Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited