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

Multiple connections to CoDeSysOPC-Server

2019-06-13
2019-09-01
  • edmorrissey - 2019-06-13

    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?

     
  • eschwellinger

    eschwellinger - 2019-06-21

    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

     
  • e.kislov - 2019-06-21

    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.

     
  • eschwellinger

    eschwellinger - 2019-06-22

    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

     
  • e.kislov - 2019-06-22

    Thank you for explanations.

     
  • edmorrissey - 2019-06-28

    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

     
  • eschwellinger

    eschwellinger - 2019-09-01

    Hi,
    which version do you have installed on the PI?
    (CODESYS runtime 3.5.x.x)

    BR
    Edwin

     

Log in to post a comment.