Skip to main content

CI PyPI Python 3.10+ License: MIT

MELSEC SLMP for Python

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

PLC Comm Family

This library is part of the plc-comm family. See the package matrix for protocol, language, registry, and install-command mapping.

Supported PLC profiles

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

Sync and async public clients always enforce the selected PLC profile. Point limits and read-only write policies are also enforced before transport.

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 plc-comm-slmp

Quick example

import asyncio
from slmp import SlmpConnectionOptions, SlmpTarget, open_and_connect, read_typed


async def main() -> None:
    options = SlmpConnectionOptions(
        host="192.168.250.100",
        port=1025,
        transport="tcp",
        plc_profile="melsec:iq-r",
        default_target=SlmpTarget(network=0, station=0xFF, module_io=0x03FF, multidrop=0),
    )
    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.
API reference Find public client methods, helpers, profile APIs, and error types.
SLMP profile reference Check profile parameters, device families, address syntax, and numbering rules.
PLC profiles Choose the canonical MELSEC profile and frame behavior.
Gotchas Check whether this library has any current library-specific caveats.
Performance See measured latency, throughput, and long-run soak results from real PLC hardware.
Choosing a Language Compare the .NET, Python, Rust, C++, and Node-RED implementations before you pick one.
Examples Run maintained Python samples.

For a zero-code connectivity check, see PLC Scope (Windows).

License and registry

Item Value
License MIT
Registry PyPI
Package plc-comm-slmp

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 plc-comm-slmp 5.2.0

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

Source distribution (sdist)

Source distribution for plc-comm-slmp 5.2.0
File Size Uploaded
plc_comm_slmp-5.2.0.tar.gz 114.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plc-comm-slmp 5.2.0
File Interpreter ABI Platform
plc_comm_slmp-5.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 234.5 kB

Release files / plc_comm_slmp-5.2.0.tar.gz

Download URL plc_comm_slmp-5.2.0.tar.gz
Size 114.6 kB
Tags Source
SHA-256 checksum
How to use checksums
33605bbe190ec342800e972e0e01fadcda588d3954834fd399b66af98a2c2a1b
BLAKE2b-256 checksum
How to use checksums
ea2f3a7973e3595438375849fa572ac21145006303c841fb33befad587e24fd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / plc_comm_slmp-5.2.0-py3-none-any.whl

Download URL plc_comm_slmp-5.2.0-py3-none-any.whl
Size 119.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24c68625685b5866c33f3d93b67ceed2443b6215cd583d1899e1b101d5458674
BLAKE2b-256 checksum
How to use checksums
ee9548d3b2a3e67f11a57b33b43883bd480a69276c27283648b531a3e12f08b1
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

5.2.0 This release

2 release files

5.1.0

2 release files

5.0.0

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.1.0

2 release files

2.0.0

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