Skip to content

PLC Communication Libraries

A set of libraries for communicating with industrial PLCs over TCP/UDP and RS-232C/RS-485 serial.

PLC Communication Libraries

Maintained by fa-yoshinobu ยท FA Labo

Language Docs GitHub Registry
.NET Getting started plc-comm-computerlink-dotnet NuGet
Python Getting started plc-comm-computerlink-python PyPI
Language Docs GitHub Registry
.NET Getting started plc-comm-hostlink-dotnet NuGet
Python Getting started plc-comm-hostlink-python PyPI
Rust Getting started plc-comm-hostlink-rust crates.io
Node-RED Getting started node-red-contrib-plc-comm-kvhostlink npm

SLMP (MELSEC iQ-R/F/L, Q, L)

Language Docs GitHub Registry
.NET Getting started plc-comm-slmp-dotnet NuGet
Python Getting started plc-comm-slmp-python PyPI
Rust Getting started plc-comm-slmp-rust crates.io
C++ (Arduino/PlatformIO) Getting started plc-comm-slmp-cpp-minimal PlatformIO
Node-RED Getting started node-red-contrib-plc-comm-slmp npm

MC Protocol Serial (MELSEC iQ-R/L, Q, A)

Language Docs GitHub Registry
C++ (Arduino/PlatformIO) Getting started plc-comm-mcprotocol-serial-cpp PlatformIO

PLC Setup Guide

Step-by-step PLC-side configuration for each supported hardware model.

Protocol Models covered
MELSEC SLMP iQ-R, iQ-F, iQ-L, MX-R, MX-F, QnUDV, QnU, LCPU, RJ71EN71, QJ71E71-100, LJ71E71-100
KV Host Link KV-X500, KV-8000, KV-7000, KV-5000, KV-XLE02
Computerlink (coming soon)
MC Protocol Serial (coming soon)

โ†’ Open PLC Setup Guide

Connection settings used in TCP/UDP examples

Protocol Host TCP port UDP port
SLMP 192.168.250.100 1025 1035
Computerlink 192.168.250.100 1025 1035
KV Host Link 192.168.250.100 8501 8501

Note: For SLMP communication with GX Simulator 3, use IP 127.0.0.1 and port 5511.