Skip to main content

A Python client for interfacing with Adam devices via ModbusTCP

Project description

ADAM-driver

This is a reader for the ADAM-6018+ TC reader.

To use, include the AdamClient.py file in your project. The output of this code is a list of thermocouples 1-8.

Example

from AdamClient import AdamClient

ADAM_IP = "172.18.120.250"
client = AdamClient(ADAM_IP, thermocouple_type="K")

try:
    converted_values = client.read_and_convert()
    print(converted_values)
except Exception as e:
    print(f"Error: {e}")

With one thermocouple attached to input 1, and the thermocouple installed in a coffee, the output will be:

[48.37, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]

Configuring ADAM devices

The ADAM devices only connect through Ethernet, and don't respond to ping. Yeah, have fun with that. They must be configured using the Advantech ADAM/APAX Utility using a Windows box.

To use the Advantech ADAM Utility, plug the ADAM device into Ethernet. On the same network, run the ADAM Utility on a Windows machine. In the ADAM Utility, select Tools -> Search Device, and hopefully the ADAM device will show up in the left hand column. From there, change the IP / subnet / gateway to something that works. I would suggest using static IP. Have fun.

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

ADAMModbusDriver-0.11.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

ADAMModbusDriver-0.11.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file ADAMModbusDriver-0.11.0.tar.gz.

File metadata

  • Download URL: ADAMModbusDriver-0.11.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for ADAMModbusDriver-0.11.0.tar.gz
Algorithm Hash digest
SHA256 7df47b0b699a24aca8eb52a89ab79225013ffc58849c33a6700d11bf2d3743a3
MD5 eb522f4eba2b2affff6e04790fdefe49
BLAKE2b-256 180317c248940db09ec85477f19d9aa8c1991381855b5fa812eca89ce8ea6bcb

See more details on using hashes here.

Provenance

File details

Details for the file ADAMModbusDriver-0.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ADAMModbusDriver-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb1a4b375c06e6ba2c8a28b7529ffe615d9ddf10e4506bf95e34a1234b3d36b8
MD5 f1e38b7617337054c28ff3f3a3ebaf7a
BLAKE2b-256 870653229e328370281d8a2f265e95fa87c17eec18b01ec67e86fc7ec4cce845

See more details on using hashes here.

Provenance

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