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-1.0.1.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

sdss_drift-1.0.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file sdss_drift-1.0.1.tar.gz.

File metadata

  • Download URL: sdss_drift-1.0.1.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for sdss_drift-1.0.1.tar.gz
Algorithm Hash digest
SHA256 90b093b80cb59041ff19875aa0f503efef5c068117d40d484dcb687ccb84e4e5
MD5 873271f152f22cabd0a4f83a48a710ef
BLAKE2b-256 777f87f6fb8e86837e16bfb39b45b02435a6fb16cb314a194402c6e9d872a92a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sdss_drift-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for sdss_drift-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 085119eabce60ae5a848d01c9b9180b29988f857c17f454a6ab04aed146fe95a
MD5 48a01470eb392bbed13052014ef8ee83
BLAKE2b-256 91d06a8e31b7d57b033a553e6e484479abd237efbb409256dce9c2b682f32acb

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