Skip to main content

A Rackio extension to enable Modbus TCP Server/Client integration

Project description

rackio-modbus

A Rackio extension to enable Modbus TCP Server/Client integration

Installation

pip install RackioModbus

Usage

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

RackioModbus-0.2.win-amd64.zip (21.3 kB view hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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