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

Library 'TCP'

Anonymous
2019-06-21
2019-06-21
  • Anonymous - 2019-06-21

    Originally created by: ph0010421

    Hello
    Can anyone share a quick example of the TCP library?
    Specifically, what do I do with the pStream output from the 'Connector' FB

    thank you

     
  • Anonymous - 2019-06-21

    Originally created by: ph0010421

    Seek and ye shall find...
    In case someone else struggles:

    WHILE MyStream = 0 DO
       Connector_0.Connect(
          sIPAddress := '192.168.15.17',
          uiPort := 63003,
          pStream => MyStream,
          );
    END_WHILE
    Stream_0 := MyStream^;
    

    Always seems so easy

     

Log in to post a comment.