Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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=1600000MaxChannels=8
do not forget to restart the Pi after this change.
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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=1600000MaxChannels=8
do not forget to restart the Pi after this change.
BR
Edwin
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.
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
Thank you for explanations.
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
Hi,
which version do you have installed on the PI?
(CODESYS runtime 3.5.x.x)
BR
Edwin