Python Forum

Full Version: Connection between Python and PLC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am making a communication between a drone and a PLC. The drone is connected to Mission Planner on a Windows PC. I would like to control the drone with the PLC, Mission Planner will make the bridge between these two. But Mission Planner is not really made for comunicating to an external controling device. Python is needed between Mission Planner and the PLC

I know that it is possible to work with a Python script. How can I make a connection between the PLC and the Python script. I thought about a usb module with hard-wired IO or a better but difficulte way with Ethernet. Or maybe it is better for another option? Right now I have a IO module what I can use easily. It would be nice to use that first and have a look later for a better option.

This is the IO module https://www.contec.com/products-services...usb/price/

Could someone help me with the script? I have no experience with Python, I can program in C++, but I want to learn Python.
If you can code inĀ  C++, then code it in C++/C.