Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fa-yoshinobu/plc-comm-slmp-python

Open more actions menu

Repository files navigation

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.
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 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

About

High-performance, strictly typed Python client for Mitsubishi SLMP (Seamless Message Protocol). Supports Binary 3E/4E frames for iQ-R, iQ-F, and Q series PLCs.

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.