Giter Club home page Giter Club logo

qt_modbus_tcp's Introduction

Qt_modbus_TCP

使用Qt中的QModbusTcpClient模块进行IP/TCP通讯,实现对电路板某寄存器地址的值进行修改和读取。

项目背景

某公司提供了一个电路板,连接了一个遥控器,同时用一根网线连接本地计算机。遥控器上有一些按钮,可以操控电路板中不同寄存器的值。需要通过C++语言实现遥控器点击某按钮后,软件做出一定的响应,比如触发某快捷键。

版本

  • Qt5.9.8

  • C++11

  • Python3.9 (需pip install pymodbus==2.5.3)

功能

  • 获取某地址寄存器的当前值,并基于其值的不同做出不同的响应;(连接了一个遥控器,可通过按钮修改其值)

  • 修改某地址寄存器的当前值;(比如,将其值重置为0)

使用方法

直接运行pro文件即可,无需添加任何外部库。要注意路径中不能存在中文。

qt_modbus_tcp's People

Contributors

seatonyang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.