A basic DF1 implementation in Python3
Project description
# DF1
A very basic Allen Bradley DF1 protocol implementation in Python.
### How to use: example 1- Reading TCP using commands
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))
### How to use: example 2- using wrapper functions for writing/reading TCP
see https://github.com/reyanvaldes/pydf1/blob/master/tests/df1/df1_tcp_serial_example.py
### How to use: example 3- using wrapper functions for writing/reading serial
See https://github.com/reyanvaldes/pydf1/blob/master/tests/df1/df1_serial_example.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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
File details
Details for the file df1py3-1.0a45-py3-none-any.whl.
File metadata
- Download URL: df1py3-1.0a45-py3-none-any.whl
- Upload date:
- Size: 28.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/2.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2b482bb0af9e37a4353f42fe4011fe58d53362de847da7a51aaf0c7f4fe73d9
|
|
| MD5 |
7a9906cafe35599e572f44082c3d77f6
|
|
| BLAKE2b-256 |
97fc6655326d377cbb8fa8b7e417bd9edab112d0ce2615e99b4afdba52d3a569
|