Skip to main content

Function to convert a decimal integer to four byte doubleword

Project description

Decimal to doubleword

This package contains a function to easily generate the values assigned to bytes 19 - 22 when using the Modbus TCP on the Igus Dryve D1 controller.

How to use

Import with:

from decimaldoubleword import ddConverter as conv

Now calling conv() with a decimal argument returns a correctly formatted list in the shape of (Byte 19, Byte 20, Byte 21, Byte 22)

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

decimaltodoubleword-1.0.0.tar.gz (12.9 kB view hashes)

Uploaded Source

Built Distribution

decimaltodoubleword-1.0.0-py2.py3-none-any.whl (13.2 kB view hashes)

Uploaded Python 2 Python 3

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