Skip to main content

Package nxmodbus

Python library to access Studer-Innotec Next devices through Modbus RTU/TCP.

Prerequisites

Please read the complete documentation available on : Studer Innotec SA -> Support -> Download Center -> Software and Updates

Getting Started

1. Package installation

$ pip install nxmodbus

2. Hardware installation

  • Connect your Next installation through a Next gateway (e.g. nx-interface) to your controller (personal computer, Raspberry Pi, etc.)
    • (RTU) using a USB to RS-485 adapter.

    • (TCP) using the Ethernet interface connecting to your local area network.

3. Serial configuration

This package rely on pyserial standard package, in order to use the nxmodbus package make sure to instantiate it like :

import serial

serial_port = serial.Serial(SERIAL_PORT_NAME, SERIAL_PORT_BAUDRATE, parity=serial.PARITY_EVEN, timeout=1)
  • where SERIAL_PORT_NAME is your serial port interface, for example set it to ‘COM4’ (string argument) when using Windows otherwise you may set it to ‘/dev/ttyUSB0/’ on Linux

  • where SERIAL_PORT_BAUDRATE is the baudrate used by your serial port interface (use the Nx-interface to set the serial parameter of the server)

4. Run an example from /examples folder

Go to /examples folder with a terminal and execute this script

$ python ex_rtu_read_param.py
$ python ex_tcp_read_param.py

Check client_rtu file or client_tcp file to understand it.

5. Open documentation

Open documentation from Read The Docs

Warnings

  • Use devices addresses generated into addresses file

  • It is strongly recommended NOT to spam the Next gateway with multiple requests. The correct way to communicate with the Next gateway is to send a request and to wait for the response before sending the next request. If no response comes from the nxmodbus after a delay of 1 second, we can consider that the timeout is over and another request can be send. It is also how Modbus RTU is intended to work.

Authors

Studer Innotec SA - Initial work - Studer Innotec SA

License

This project is licensed under the MIT License - see the LICENSE file for details

Metadata

Release files for nxmodbus 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nxmodbus 0.5.0
File Size Uploaded Provenance Actions
nxmodbus-0.5.0.tar.gz 76.0 kB Without provenance Details for nxmodbus-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nxmodbus 0.5.0
File Interpreter ABI Platform Actions
nxmodbus-0.5.0-py3-none-any.whl Python 3 none any Details for nxmodbus-0.5.0-py3-none-any.whl

Total release size: 155.8 kB

Release files / nxmodbus-0.5.0.tar.gz

Download URL nxmodbus-0.5.0.tar.gz
Size 76.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1c33740c3049d06cccd7e530af78cdf3e2f85dccc47b3a8a8fa86c7e90ee8da2
BLAKE2b-256 checksum
How to use checksums
d020af0f496d3fe3899d6c94962a5936995d49fab0dee9952a25d7ded22f6c15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / nxmodbus-0.5.0-py3-none-any.whl

Download URL nxmodbus-0.5.0-py3-none-any.whl
Size 79.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37dcb55e070906f8d2b606c248e6da73cd12b2294793631fa6da86b5a8ee9629
BLAKE2b-256 checksum
How to use checksums
cecc0e483a6df8946c1a03e3b8fd3ea62a941791f071b51e02e61cc94f6c411f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for nxmodbus 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page