TOOL
python-snap7 3.7.0 adds U-SEND and U-RECV for Siemens S7 PLCs
Controls engineers can read and write Siemens S7 PLC data from Python, and now exchange U-SEND and U-RECV messages of up to 4 data blocks.
WHAT IT DOES
A pure Python library that talks to Siemens S7-300, S7-400, S7-1200, and S7-1500 PLCs over the classic S7 protocol on Windows, Linux, and macOS.
WHO IT'S FOR
Controls engineers, automation engineers, and plant data engineers who work with Siemens S7 PLCs.
HOW TO START
Needs Python 3.10 or newer; S7-1200 and S7-1500 PLCs need PUT/GET access enabled in TIA Portal.
pip install python-snap7
Then connect a client to your PLC's IP address and read one data block.
COST
Free under the MIT license, with no native dependencies.
WHY IT MATTERS
Version 3.7.0 also writes S5TIME timer values, so Python scripts can set S7 timer tags that raised an error before.