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
Built Distribution
File details
Details for the file ADAMModbusDriver-0.19.0.tar.gz
.
File metadata
- Download URL: ADAMModbusDriver-0.19.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | db579cdb874fa4a14e443f8b8fcee74ffcbe375a592b0666a2bffc2ea2e24279 |
|
MD5 | 27b7dfb55760f2d87efd946076fcbe89 |
|
BLAKE2b-256 | ca734acf571248f6feea55221c093b1c05c85e31d8cd747872a773dd51529258 |
Provenance
File details
Details for the file ADAMModbusDriver-0.19.0-py3-none-any.whl
.
File metadata
- Download URL: ADAMModbusDriver-0.19.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 024a31561d1ad5e8a9c275dc7125ef8d52f251da912e1d091f534c378a84380a |
|
MD5 | 032595ba451bab86c3b14ab450183836 |
|
BLAKE2b-256 | e0a6519ee75a5a9b8c70f1d4523fa5d1825cb396801c744ecd80a1983554ae75 |