Connect a computer to a Siemens PLC using the Snap7 library in Python

Did you already solve this problem?

Just edit this wiki post!

Please provide a step-by-stap solution, including all the code and other things someone else would like to know to make it work.

If you want to discuss this topic or if you have questions, reply in the comments.

Also should include the configuration to allow Snap7 to change PLC variables.