neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
Siemens S7 PLC와 통신하기 위한 순수 파이썬 라이브러리
a pure Python S7 communication library for interfacing with Siemens S7 PLCs
개발 도구Python · GherkinGitHub @gijzelaerr직접 설치운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
.. image:: https://img.shields.io/pypi/v/python-snap7.svg :target: https://pypi.org/project/python-snap7/ .. image:: https://img.shields.io/pypi/pyversions/python-snap7.svg :target: https://pypi.org/project/python-snap7/ .. image:: https://img.shields.io/github/license/gijzelaerr/python-snap7.svg :target: https://github.com/gijzelaerr/python-snap7/blob/master/LICENSE .. image:: https://github.com/gijzelaerr/python-snap7/actions/workflows/test.yml/badge.svg :target: https://github.com/gijzelaerr/python-snap7/actions/workflows/test.ymlREADME 전문 보기 ↗
.. image:: https://img.shields.io/pypi/v/python-snap7.svg :target: https://pypi.org/project/python-snap7/
.. image:: https://img.shields.io/pypi/pyversions/python-snap7.svg :target: https://pypi.org/project/python-snap7/
.. image:: https://img.shields.io/github/license/gijzelaerr/python-snap7.svg :target: https://github.com/gijzelaerr/python-snap7/blob/master/LICENSE
.. image:: https://github.com/gijzelaerr/python-snap7/actions/workflows/test.yml/badge.svg :target: https://github.com/gijzelaerr/python-snap7/actions/workflows/test.yml
.. image:: https://readthedocs.org/projects/python-snap7/badge/ :target: https://python-snap7.readthedocs.io/en/latest/
python-snap7 is a pure-Python library for communicating with Siemens S7 PLCs using the classic S7 protocol. It supports S7-300 and S7-400 controllers, as well as S7-1200 and S7-1500 controllers with PUT/GET access enabled. It supports Python 3.10+ on Windows, Linux, and macOS without native dependencies.
On S7-1200 and S7-1500 controllers, python-snap7 only works when PUT/GET access is enabled in TIA Portal, and it cannot access optimized data blocks. PUT/GET is unauthenticated and disabled by default, so leaving it disabled is the more secure configuration.
If PUT/GET is disabled, or you need optimized data blocks or symbolic access,
use s7commplus <https://github.com/gijzelaerr/s7commplus>_ instead::
pip install s7commplus
s7commplus is a separate, younger project that implements S7CommPlus, the
protocol these controllers speak natively. Check the
firmware versions validated so far <https://s7commplus.readthedocs.io/en/latest/connections.html>_
before relying on it, and see the
PLC support matrix <https://python-snap7.readthedocs.io/en/latest/plc-support.html>_
for what python-snap7 supports on each controller family.
Install from PyPI::
pip install python-snap7
::
from s7 import Client
client = Client() client.connect("192.168.1.10", 0, 1) data = client.db_read(1, 0, 4) client.disconnect()
The s7 package is the recommended import. The snap7 package name is
also available for backwards compatibility.
Read the full documentation at
python-snap7.readthedocs.io <https://python-snap7.readthedocs.io/en/latest/>_.
The safe volunteer hardware-test procedure is in
Real-PLC acceptance testing <doc/real-plc-testing.rst>.
The CPUs and firmware versions it has passed on are listed under
Tested and Verified Hardware <doc/plc-support.rst>.