GithubHelp home page GithubHelp logo

yuzi40277738 / stm32f4_modbus_tcp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maxlicheng/stm32f4_modbus_tcp

0.0 1.0 0.0 2.49 MB

基于stm32f4的modbus tcp上下位机通信项目,上位机由LabVIEW编写

C 98.43% Assembly 0.61% C++ 0.37% Objective-C 0.58% Batchfile 0.01%

stm32f4_modbus_tcp's Introduction

项目简介

  • 项目基于正点原子STM32F4探索者开发板和LabVIEW开发的上位机软件进行Modbus协议通信;
  • 项目采用TCP/IP通信方式,移植freeModbus协议到STM32,利用LabVIEW Modbus库;
  • 编写配套上位机读取开发板按键、AD值,并可通过上位机设置开发板LED、DAC状态。

功能简介

  • 线 圈 :led控制
  • 离散输入 :按键读取
  • 保持寄存器:ADC读取
  • 输入寄存器:DAC设置

上位机

  • 1.上位机由LabVIEW 2013编写,请使用高于2013的版本打开,并将ni modbus 库解压到指定路径,详见release;
  • 2.ModbusPoll调试工具见release;

下位机

  • 1.下位机采用正点原子探索者stm32f4开发板实现;

注意事项

  • 1.开发板与运行上位机的PC需要连入同一局域网;
  • 2.编译代码前需要修改静态IP参数,需与您的局域网网段一致;
  • 3.开发板需要插入LCD显示屏;
  • 4.PC需要安装高于LabVIEW2013的开发环境,并将NI Modbus库解压到对应文件夹;
  • 5.运行LabVIEW上位机前,填入开发板的静态IP;
  • 6.不熟悉LabVIEW的同学可以使用ModbusPoll调试工具进行学习。

效果图

Image text

视频教程

其他

  • 待补充

stm32f4_modbus_tcp's People

Contributors

maxlicheng avatar

Watchers

James Cloos 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.