Python library for MELSEC SLMP (Binary 3E/4E) PLC communication.
This library is part of the plc-comm family. See the package matrix for protocol, language, registry, and install-command mapping.
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.
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.
pip install plc-comm-slmpimport 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())| 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. |
| Item | Value |
|---|---|
| License | MIT |
| Registry | PyPI |
| Package | plc-comm-slmp |
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