CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sat Jul 20, 2019 8:44 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Jun 13, 2019 2:55 pm 
Offline

Joined: Thu May 23, 2019 1:28 pm
Posts: 2
We are currently trying to connect the OSIsoft PI System to a CoDeSysOPC-Server using the PI OPC DA interface.
There is also an Stange ECS application connected to this CoDeSysOPC-Server.
When the Stange ECS application is connected to the CoDeSysOPC-Server, we are unable to connect with the PI system.
Has anyone experienced something like this or would have any suggestions for me?


Top
   
PostPosted: Fri Jun 21, 2019 1:42 pm 
Online
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3349
Hi,

sounds like the max Client is exeeded ( Default is 4)
If i understand it, you do not get values from the CODESYS PI to your OPC DA server connected Client, right?

You could extend the Client by adding to the

/etc/CODESYSControl_User.cfg

[CmpChannelServer]
Buffersize=1600000
MaxChannels=8


do not forget to restart the Pi after this change.

BR
Edwin


Top
   
PostPosted: Fri Jun 21, 2019 5:43 pm 
Offline
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 170
Edwin, can you explain "Buffersize=1600000"? What the buffer, which dimension of value (bytes?).
"Channel" represents only CODESYS OPC connection to PLC? Or any connection like IDE connection, web-visu connection, etc.

_________________
Make CODESYS great again


Top
   
PostPosted: Sat Jun 22, 2019 7:01 am 
Online
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3349
Hi,

 BUFFERSIZE is the overall amount of memory to be used by all channels
MAXCHANNELS defines the number of channels that may be handled
 concurrently.
 
Since each channel needs separate send and receive channels
the available communication buffer is BUFFERSIZE / (2*MAXCHANNELS)
- Webvisu
- OPC UA
- OPC DA
- CODESYS
each occupy one channel...

BR
Edwin


Top
   
PostPosted: Sat Jun 22, 2019 7:13 am 
Offline
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 170
Thank you for explanations.

_________________
Make CODESYS great again


Top
   
PostPosted: Fri Jun 28, 2019 11:23 am 
Offline

Joined: Thu May 23, 2019 1:28 pm
Posts: 2
Hi Edwin

Thanks for your response. I have searched the etc folder an it does not contain the config file or any files from CODESYS.
Could you please tell me where exactly I can locate this file?
/etc/CODESYSControl_User.cfg

Regards
Ed


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 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