Skip to main content

modbus_tcprtu

A ModbusRTU Over TCP/IP library, depends on modbus_tk. It's often use with 485-to-TCP converter.

# must install modbus_tk
import modbus_tk.defines as cst
from modbus_tcprtu import TcpRtuMaster

# create a master
master = TcpRtuMaster(host='127.0.0.1', port=9001)
master.set_timeout(2)
for i in range(10):
    # read data from modbus
    # just use as modbus_tk.Master
    print(i, master.execute(1, cst.READ_HOLDING_REGISTERS, 0, i + 1))

CHANGES

1.0.0

  • First version

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modbus_tcprtu-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file modbus_tcprtu-1.0.0.tar.gz.

File metadata

  • Download URL: modbus_tcprtu-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/2.7.16

File hashes

Hashes for modbus_tcprtu-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ceea6c7306dfc37a7432f46b634ae8bb0b1fcbc2ec17e440e1d83f4adab6d157
MD5 fbdb569015e776868e668f0742579857
BLAKE2b-256 7bc4be0fb65c29bb6e414f367e4d8eb58adac771e11ac60e9eb0c91a4ff60bab

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page