python modbus tk 库_modbus-tk

modbus-tk是一个用于创建Modbus TCP和RTU主站和从站的Python库,支持数据库记录、HMI和报告生成。它包括一个模拟器和带有Web界面的主站。该库依赖pyserial实现Modbus RTU,并提供自定义机制,如错误模拟和超时处理。此外,还包括一个实验性的Web HMI功能,由bottle框架提供支持。
摘要由CSDN通过智能技术生成

modbus-tk: Create Modbus app easily with Python

Download / Install

Current version is 1.0.0 It is available on PyPI https://pypi.python.org/pypi/modbus_tk

License

This is distributed under GNU LGPL license

Description

Make possible to write modbus TCP and RTU master and slave.

It can be used for testing purpose : It is shipped with slave simulator and a master with a web-based hmi (ok the hmi need to be improved :).

It can also be used to create any application which need to communicate over modbus. It is a full-stack implementation and is used on "real applications".

Thanks to Python and the incredible set of existing libraries, it can fit a lot of different needs : database logging, HMI, report generation ...

modbus-tk is different from pymodbus which is another implementation of the modbus stack in python.

modbus-tk tries to limit dependencies (even if it requires pyserial for Modbus RTU).

modbus-tk has no link with tkInter. tk stands for 'testkit' or 'toolkit' depending of the way you use it.

Discussion group

Please join the modbus-tk discussion group to participate : https://groups.google.com/forum/?hl=fr#!forum/modbus-tk

Features

Modbus TCP support for writing masters and slaves

Modbus RTU support for writing masters and slaves (requires pyserial)

Modbus RTU over TCP support

Can be customized with hook mechanism (simulate errors, timeouts...)

ready-to use simulator with RPC interface

Defines very easily your own memory blocks

Set/Get values for any place in a memory block

logging capability through python logging module

Web-based HMI (experimental feature which requires bottle)

Feedback

Feedback is welcomed! Please enter an issue for giving your feedback.

Follow modbus-tk

Other links

pymodslave http://sourceforge.net/projects/pymodslave/ : a gui app for simulation purpose built with Qt4 and modbus-tk

modbus-simulator https://github.com/dhoomakethu/kivy-modbus-simu : modbus simulator built with modbus-tk and kivy

MicroPython port by Sean Lannigan : https://gitlab.com/extel-open-source/micropython-modbus .So far it only supports RTU Master mode (i.e. no TCP and no slave mode), as this was all I needed in Sean's MicroPython application - the other modes probably wouldn't be too hard to port.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值