df1-0.5
توضیحات
A basic DF1 implementation in Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | df1-0.5 |
| نام | df1 |
| نسخه کتابخانه | 0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jerther |
| ایمیل نویسنده | jtheriault@metalsartigan.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/df1/ |
| مجوز | MIT License |
# 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))
```
نحوه نصب
نصب پکیج whl df1-0.5:
pip install df1-0.5.whl
نصب پکیج tar.gz df1-0.5:
pip install df1-0.5.tar.gz