TCP/IP two way communication

Have anyone tried the two-way TCP/IP communication via python module?

I modified the code published by Sicario https://forum.visualcomponents.com/forums/topic/tcp-ip-or-udp-communication-in-between-2-vc-instance-via-python-module/#post-6784 The one way send or receive mode works well. I used VC as server terminal and python script as the client. When VC received one data, it will send one feedback message to the VC server. However, I found the socket is not able to use anymore when the server wants to use it to send a message. Here are my attachments

TCPIP_TwoWayCommunication.zip (113 KB)

Try Redis. Message-oriented middleware(MOM) is a better way.

We tried this solution on the exhibition, got a very good result.

Refresh time is short and stable.

 

Virtual Commissioning - Real Robots and Virtual Layout

https://youtu.be/1h9uElIyhPQ

 

Close look for Real HMI and Virtual Layout

https://youtu.be/jW7UU4X8Fi0