Jump to content

Unitronics as TCP client - how to handle server's response?


Recommended Posts


I have a Python code which does some algorithmic job, and acts as a TCP server on a PC.

The Unitronics PLC I have is the client, and the workflow goes as follows:

Request -- UNI -> PC: "Please check this XYZ"

Response -- PC -> UNI: "Ok / Fail"

Now, in the "normal world" the response from the PC (the server) is bound to the same TCP request from the client (as in HTTP protocol, if you're familiar).  Can I do that with PLC as well?

Because I don't want to open another socket where the PLC is the server (and the PC will respond to there). I'm afraid it will be out of sync.


Any solution? Maybe an example?




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...