Skip to main content

Modbus PLC control library

Project description

SDSS-V Modbus PCL library

Versions Documentation Status Code style: black Build 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-0.2.4.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

sdss_drift-0.2.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file sdss-drift-0.2.4.tar.gz.

File metadata

  • Download URL: sdss-drift-0.2.4.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for sdss-drift-0.2.4.tar.gz
Algorithm Hash digest
SHA256 a4cc1553c96e69dfbf0e25070ba5a201789d93cbe1bdc6f3ef61d2f75bce2070
MD5 f3a5d7516e74b5dbd141a58759a37a50
BLAKE2b-256 6c16105b6e2d69ed5ed75070a8605deefea23e6028c42e1bea2a16f08d569996

See more details on using hashes here.

File details

Details for the file sdss_drift-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: sdss_drift-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for sdss_drift-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a10e1392faf311345d928037871e8e2fc8f17ebf70145d17d75a1cd6c06ac27c
MD5 a8f5e75dafc0a97074bb2ea6c7ddb342
BLAKE2b-256 0dc35565aa364de630267c36eaaa92406c4e0bed7500235afadb4b50e86e1e68

See more details on using hashes here.

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