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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for RackioModbus-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7157a33095647f002b1a510ad22ab244ed852841accc4ebe9f3778ee69ba6745 |
|
MD5 | 638e76c06024ab4e2270cb2411dd962f |
|
BLAKE2b-256 | 4b55c3c44a53f449eb3a1f32bdf6f6f48cf5b69bd58202d41f552a70190cc233 |