aio-modbus-client-0.0.4
توضیحات
Easy work with modbus device. You do not need to know the protocol.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aio-modbus-client-0.0.4 |
| نام | aio-modbus-client |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mikhail Razgovorov |
| ایمیل نویسنده | 1338833@gmail.com |
| آدرس صفحه اصلی | https://github.com/businka/aio_modbus_client |
| آدرس اینترنتی | https://pypi.org/project/aio-modbus-client/ |
| مجوز | - |
#aio modbus client
The main purpose is to create classes of devices connected via modbus by describing their properties.
Not intended to transfer bytes to modbus.
The library allows you to organize work with devices connected to a TCP modbus server, and a serial port. It also assumes the possibility of having devices operating at different speeds and different connection parameters on the bus.
##Use
1. Create your class inheriting from ModbusDevice. It is important to specify the static variable file in your class file = __file__
2. Create a JSON file with the description of the registers of your device
3. To access the device, use an instance of your class and the package API.
see example: example / Wirenboard / TestWirenBoardDimmer.py
if someone likes the implementation, I will add documentation
##async API
read_param(param_id) - gets device property value
write_param(param_id, value) - writes the value to the property of the device
is_device() - should return true if the device at the current address can be served by this class
find_devices() - returns the list of addresses of these devices. The function calls is_device for each modbus address.
##Licensing
This published under the MIT License, see [LICENSE](LICENSE) for details.
Copyright (c) 2019 Mikhail Razgovorov
نیازمندی
| مقدار | نام |
|---|---|
| - | serial-asyncio |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5.3 | Python |
نحوه نصب
نصب پکیج whl aio-modbus-client-0.0.4:
pip install aio-modbus-client-0.0.4.whl
نصب پکیج tar.gz aio-modbus-client-0.0.4:
pip install aio-modbus-client-0.0.4.tar.gz