Python Forum

Full Version: Industrial application
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone,

I'm working on a project to detect the welding joint on a square tube.
For this I wrote a python 3 script using openCV, numpy and matplotlib.

Basis principle of the script:
- Takes picture with webcam when I press spacebar
- Detects if welding connection is present or not

Now I want to communicate with a PLC..

So the picture gets taken when a certain output is sent from the plc. And the detection bits gets stored in the PLC memory.

My questions:
- Best way for this kind of plc communication (snap7?)
- Should I use micropython?


Thanks


Cyril De Brandt
Take a look at: https://pypi.org/project/pycomm/
This library was written to communicate with a PLC.
I haven't used it, so cannot vouch for it.