A basic DF1 implementation in Python
Project description
DF1
A very basic Allen Bradley DF1 protocol implementation in Python.
How to use
from df1.df1_client import Df1Client
from df1.commands import Command0FA2
from df1.file_type import FileType
with Df1Client(src=0x0, dst=0x1) as client:
client.connect('192.168.0.32', 10232)
command = client.create_command(Command0FA2, table=43, start=245, bytes_to_read=10, file_type=FileType.INTEGER)
reply = client.send_command(command)
print(reply.get_data(FileType.INTEGER))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
df1-0.5-py2-none-any.whl
(16.9 kB
view details)
File details
Details for the file df1-0.5-py2-none-any.whl.
File metadata
- Download URL: df1-0.5-py2-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.11.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33c9a288961eb7cce083807a63fd10add34a95172743c3482382ba24524195e9
|
|
| MD5 |
97b6148ae7461d6e9a02662b2d65b19b
|
|
| BLAKE2b-256 |
f6113105e4dbdbf98655d7bc2f4c646dd3f052f7c8e523755bbf5d0a58be9b1b
|