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

Uploaded Source

Built Distribution

sdss_drift-0.2.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sdss-drift-0.2.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for sdss-drift-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f3b27c3dfbc9238e2fd5286f1f0314d1f68d567071bc70a331cc3d4e13f9ac9b
MD5 a1edbddfa73e6570d5b6028b5381f4b9
BLAKE2b-256 e430e9e030c2e2c0900e188267195796d8d49473322170f0903e314234fd8e34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sdss_drift-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for sdss_drift-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f4236ce3c2ab539d9e38df47d91b8ce0f4c5ee2c5cb70f75e57e7a444dead34
MD5 4075f857ec4640999dd5e156bc0de96f
BLAKE2b-256 22f9b9419bc2a10ba22d8bd08bea98479d7d539277014c8656b6aa390a4943ed

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