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.

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

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

slmp_connect_python-1.2.0.tar.gz (97.0 kB view details)

Uploaded Source

Built Distribution

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

slmp_connect_python-1.2.0-py3-none-any.whl (98.7 kB view details)

Uploaded Python 3

File details

Details for the file slmp_connect_python-1.2.0.tar.gz.

File metadata

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

File hashes

Hashes for slmp_connect_python-1.2.0.tar.gz
Algorithm Hash digest
SHA256 502987836e516e9bb4f52531453969cbec6d70dbb81d16f59b54c3e57c5df335
MD5 4fafd68b782dcb4a9e9d4fe1dc6f04b4
BLAKE2b-256 521c35da89de35007bb5c4329d6fe43dad630b7a9a808c6a6784d8f85a44ed61

See more details on using hashes here.

File details

Details for the file slmp_connect_python-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for slmp_connect_python-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6cdeb5f23920ab26b7d2235854df45b424060523f723cbe8d10ac2f1fed7228
MD5 e4252950a37fc404d394cf8d8687b475
BLAKE2b-256 83f47f00bb4ed854b06c7e8227a0c9294d1f98170a1030ea7718d083c45946a7

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