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

Uploaded Source

Built Distribution

sdss_drift-1.2.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sdss_drift-1.2.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for sdss_drift-1.2.0.tar.gz
Algorithm Hash digest
SHA256 b6b6ae0021512be2ee477066168871e080d7b947c18f9849debc20f16bf921ff
MD5 c241f7a89079cc62af4a236b92c1be1b
BLAKE2b-256 7d33b26df92d114798f618576c4c11797d880465e002738d28920313667d3b63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sdss_drift-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for sdss_drift-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9bc829d4ffc657a99f938a42cf1e67416099eb74cf35f288e54bbc37d0fb6967
MD5 681e45e67ba375b7443bd42430e3d37b
BLAKE2b-256 e8b6e1affa5671e199a9b95ad053fc84485f098db6b3a0108bc4aa65a213bbda

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