Skip to main content

SLMP Connect Python: client library for MELSEC SLMP binary communication

Project description

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plc_comm_slmp-2.0.0.tar.gz (94.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plc_comm_slmp-2.0.0-py3-none-any.whl (98.5 kB view details)

Uploaded Python 3

File details

Details for the file plc_comm_slmp-2.0.0.tar.gz.

File metadata

  • Download URL: plc_comm_slmp-2.0.0.tar.gz
  • Upload date:
  • Size: 94.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for plc_comm_slmp-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c8f793806867806906c4321fefef6b260d69d9b85d892edd5538aed4098db669
MD5 dc6b5e312ab0f249e1e785d4cc1028bb
BLAKE2b-256 46422a0c4110b7a16931d0a8dcf6eea8d2950eea64841d44775d06ded1eebf49

See more details on using hashes here.

File details

Details for the file plc_comm_slmp-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: plc_comm_slmp-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 98.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for plc_comm_slmp-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee129a5deeac0c90fd3de3226c5355581ca8dda41ba228a8c6f1ab1be03f5af1
MD5 dad7233efde6d14b8825b62b45869d38
BLAKE2b-256 0c0a095e9ae1db732f47f8fad13c2c1d9536ae2502c488aeee66c93361971170

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page