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

tcp server

zezami
2017-05-10
2017-05-28
  • zezami - 2017-05-10

    Hello

    Is it possible to get TCP working in simulation mode with the local network card in your pc?

    And also, if you have more than one client, are you supposed to make several instances of NBS.TCP_Connection depending on how many clients you will support?

     
  • zezami - 2017-05-11

    I used the Control Win softplc instead and then tcp/ip is working.

    And about having more than one client, creating several instances of tcp_connection solves that issue. However, when a client disconnects the xDone flag is set and it seems that you can't use that tcp_connection instance any longer. Since there is no "reset" input to the block i tried setting xEnable to false and then back to true but the Done flag stays true.

    Does anyone know how to solve this?

     
  • nothinrandom - 2017-05-28

    @zezami

    This is correct. Create array of TCP Connections, but point them back to the same TCP server handle since one TCP server can handle multiple connections. Also create array for TCP Read/write.

     

Log in to post a comment.