Python Library – pymodbusTCP

library icon
Python pymodbusTCP

Voor communicatie van

  • Modbus TCP/IP

Niet voor

  • Modbus RTU
  • Modbus ASCII
  • Modbus RTU over TCP

Installatie:

Installatie voor Python 3:

Mijn voorbeeld:

Informatie (ENG):

Summary

A simple Modbus/TCP library for Python

A simple Modbus/TCP client library for Python.

Since version 0.1.0, a server is also available for test purpose only (don’t use in project).

pyModbusTCP is pure Python code without any extension or external module dependency.

Usage example

See examples/ for full scripts.

include (for all samples)

module init (TCP always open)

module init (TCP open/close for each request)

module init (with accessor functions)

Read 2x 16 bits registers at modbus address 0:

Write value 44 and 55 to registers at modbus address 10:


Download pymodbusTCP @ pypi.python.org