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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sdss_drift-0.4.5.tar.gz
Algorithm Hash digest
SHA256 a9bdddce0a6fd81a0a33f9dd060ab337014854f9fa393f86c3d3e80b10527106
MD5 92fec7eb314342b19d6f518aec944f95
BLAKE2b-256 2240cb9e340eaf47140d3efe244c890fb788d88bb419cedb64c0a31b1e9ca0ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sdss_drift-0.4.5-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.9.15

File hashes

Hashes for sdss_drift-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 adda618797a9cca2f50ec46cf246d62dda60b8fb0dec436e150607f7c8d10310
MD5 365a0e0b426274ca3d8a26484eaa5cfc
BLAKE2b-256 a926100b76826085a3fc207022b6a5fdc8e5068df1811aab5696df73daf570f9

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