Skip to main content

MC Protocol Ethernet driver for Mitsubishi FX3 PLCs

Project description

fx3u-mcprotocol

An independent, open-source Python library for communicating with Mitsubishi FX3-series PLCs via Ethernet using the MC Protocol (ASCII and Binary) over TCP.

Supported Hardware

  • FX3U / FX3G / FX3S / FX3GC
  • FX3U-ENET-ADP Ethernet adapter

Disclaimer

  • This project is an independent, open-source implementation of the MC Protocol for interoperability and educational purposes.

  • Mitsubishi Electric, FX3U, FX3G, FX3S, and related names are trademarks of Mitsubishi Electric Corporation.

  • This project is not affiliated with, endorsed by, or supported by Mitsubishi Electric Corporation.

Features

  • Symbol-based memory access (D, M, X, Y, R)
  • ASCII MC Protocol (stable)
  • Binary MC Protocol (experimental)
  • CPU-aware memory validation
  • Cross-platform (Windows / Linux)

✅ Stable ASCII MC Protocol support (FX3 series)

⚠️ Binary MC Protocol support is experimental and may vary by firmware

Example

from fx3u_mcprotocol import FX3UClient

plc = FX3UClient(
    ip="192.168.4.4",
    port=5001,
    cpu="FX3U",
    mode="ascii"
)

plc.connect()

print(plc.readReg("D100"))
print(plc.readBits("M0", 8))

plc.close()

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

fx3u_mcprotocol-0.4.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

fx3u_mcprotocol-0.4.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file fx3u_mcprotocol-0.4.0.tar.gz.

File metadata

  • Download URL: fx3u_mcprotocol-0.4.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for fx3u_mcprotocol-0.4.0.tar.gz
Algorithm Hash digest
SHA256 16a31d612f5a5031548758495cf69bbe7724e5d4d8e9d3be51d1611cf0a78427
MD5 b1b3bf807d3ecfd8edae1b51adbc6b40
BLAKE2b-256 2c6e8f0dd47e60c683f89bae34a4cb27887edd2e5d333efa12f53c125a11f0b2

See more details on using hashes here.

File details

Details for the file fx3u_mcprotocol-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fx3u_mcprotocol-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83b63f4a1d16c8ebec5e122b8708eedd3b22841842fb7230649dd8c19477646a
MD5 0324b16d182bca34c95924dee362ef82
BLAKE2b-256 46cd0985e9a2ef0033aa0b7ad529a21881b2ec3b6aeada55166cb9c31a596161

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