Controlling with external Python script

Has anyone tried and managed to connect an external python script to a VC model? I am aware of Python API, but I want to read and write sensors and actuators’ values using Python (soft PLC) like connecting using PLC.

I think this could be done with OPC UA. Any suggestions?

Hi @torayeff

OPC UA is a good option for this.
Many people also use TCP/IP and UDP communications.

There are many threads on the forum about this:

1 Like

Thank you very much for your prompt reply. I will have a look at those posts.

You can write with Python your own OPC UA Server:
Then you can control with your Server the signal-exchange if you connect VC to your OPC UA Server.

But this does not replicate the ability of plugins (C# / Stackless Python) inside VC itself.