Skip to main content

⚠️ This package has been renamed to plc-comm-slmp. slmp-connect-python 1.2.1 is the final release under the old name and will receive no further updates. Install the new package instead: pip install plc-comm-slmp (import name is unchanged).

CI PyPI Python 3.10+ License: MIT

MELSEC SLMP for Python

Python library for MELSEC SLMP (Binary 3E/4E) PLC communication.

Supported PLC profiles

The maintained profile table is in PLC profiles. Choose one exact canonical PLC profile from that table.

Sync and async clients use strict_profile=True by default. With a selected profile, operations known to be unavailable for that PLC are rejected before sending. Set strict_profile=False only for deliberate verification where you want the PLC to answer directly. Point limits and read-only write policies are always enforced.

Supported device types

The maintained device and range tables are in the SLMP Profile Reference. Use that page for supported device families, address syntax, and profile-specific notes.

Installation

pip install slmp-connect-python

Quick example

import asyncio
from slmp import SlmpConnectionOptions, open_and_connect, read_typed

async def main() -> None:
    options = SlmpConnectionOptions(host="192.168.250.100", port=1025, plc_profile="melsec:iq-r")
    async with await open_and_connect(options) as client:
        value = await read_typed(client, "D100", "U")
        print(f"D100={value}")

asyncio.run(main())

Documentation

Page Use it for
Full documentation site Unified docs for all PLC communication libraries.
Getting started Install the package, connect to your PLC, and run your first SLMP read/write.
Usage guide Use the high-level API and common SLMP workflows.
SLMP profile reference Check profile parameters, device families, address syntax, and numbering rules.
PLC profiles Choose the canonical MELSEC profile and frame behavior.
Examples Run maintained Python samples.

License and registry

Item Value
License MIT
Registry PyPI
Package slmp-connect-python

Commercial support

If you plan to embed this library in a paid or commercial product, please consider a separate support agreement or supporting the project as a sponsor.

Contact: https://fa-labo.com/contact.html

Metadata

Release files for slmp-connect-python 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slmp-connect-python 1.2.1
File Size Uploaded
slmp_connect_python-1.2.1.tar.gz 96.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slmp-connect-python 1.2.1
File Interpreter ABI Platform
slmp_connect_python-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 195.0 kB

Release files / slmp_connect_python-1.2.1.tar.gz

Download URL slmp_connect_python-1.2.1.tar.gz
Size 96.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2b554427e8268e2f5b8553921177162e88f1daa06480be8bbe7c7bfc7a1c1b57
BLAKE2b-256 checksum
How to use checksums
2bc8b1e19fa251c7457b5b6bc7033f413d0ee7a1ce473267b78ab83a3c19c004
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / slmp_connect_python-1.2.1-py3-none-any.whl

Download URL slmp_connect_python-1.2.1-py3-none-any.whl
Size 98.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6525ce7d9ad2061c0df44b713b39ebca804c264ab684e9fc3256b5f16604144
BLAKE2b-256 checksum
How to use checksums
57759d73d358e64510b28bd4fab2cb7dab2207997f0e7485cbf3ebd02d3dd0a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.8.0

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.6

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page