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

Using TCP functions in simulation mode

2017-03-23
2018-12-09
  • jugglingcats - 2017-03-23

    We have a programme that creates a socket listener using SysSockCreate etc from SysSocket lib. It seems this program can run in simulation but cannot use sockets (SysSockCreate always returns 0).

    It would be very useful to run this programme locally in simulation rather than deploy to a real device, and have it listen on the PC network adapter. I wonder if this is possible?

     
  • cerminek - 2018-12-09

    jugglingcats hat geschrieben:
    We have a programme that creates a socket listener using SysSockCreate etc from SysSocket lib. It seems this program can run in simulation but cannot use sockets (SysSockCreate always returns 0).
    It would be very useful to run this programme locally in simulation rather than deploy to a real device, and have it listen on the PC network adapter. I wonder if this is possible?

    Simulation is unusable.. Why not to start runtime on you PC? It's the same like real PLC and also it can comunicate, eg. with 127.0.0.1 on your laptop with any other sw....

     

Log in to post a comment.