Skip to main content

Modbus PLC control library

Project description

SDSS-V Modbus PCL library

Versions Documentation Status Code style: black Test codecov

This library provides an asynchronous interface with modbus devices over a TCP ethernet controller (such as this one) and control of the connected I/O modules. The code is a relatively thin wrapper around Pymodbus with the main feature being that it's possible to define a PLC controller and a complete set of modules as a YAML configuration file which can then be loaded. It also provides convenience methods to read and write to the I/O modules and to convert the read values to physical units.

This code is mostly intended to interface with the SDSS-V FPS electronic boxes but is probably general enough for other uses. It's originally based on Rick Pogge's WAGO code.

Installation

To install, run

pip install sdss-drift

To install from source, git clone or download the code, navigate to the root of the downloaded directory, and do

pip install .

sdss-drift uses Poetry for development. To install it in development mode do

poetry install -E docs

Documentation

Refer to the Read the Docs documentation for more details.

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

sdss_drift-1.1.0.tar.gz (12.5 kB view hashes)

Uploaded Source

Built Distribution

sdss_drift-1.1.0-py3-none-any.whl (12.1 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