Skip to main content

A Rackio extension to enable Modbus TCP Server/Client integration

Project description


A Rackio extension to enable Modbus TCP Server/Client integration


pip install RackioModbus


from rackio import Rackio, TagEngine
from rackio_modbus import RackioModbus

app = Rackio()

driver = RackioSocket(app, mode="server")

Defining Tags and Modbus bindings

tag_egine = TagEngine()

# Tags definitions

tag_egine.set_tag("T1", "float")
tag_egine.set_tag("T2", "float")
tag_egine.set_tag("T3", "float")

# Modbus mapping

driver.define_mapping("T1", "write", 0, 60) # Tag, mode, lower limit, upper limit
driver.define_mapping("T2", "write", 0, 50)
driver.define_mapping("T3", "read", 0, 110)

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 (21.3 kB view hashes)

Uploaded source

Built Distribution

RackioModbus-0.2-py3-none-any.whl (7.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page