View Code? Open in Web Editor
NEW
This project forked from maxlicheng/stm32f4_modbus_tcp
基于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.下位机采用正点原子探索者stm32f4开发板实现;
- 1.开发板与运行上位机的PC需要连入同一局域网;
- 2.编译代码前需要修改静态IP参数,需与您的局域网网段一致;
- 3.开发板需要插入LCD显示屏;
- 4.PC需要安装高于LabVIEW2013的开发环境,并将NI Modbus库解压到对应文件夹;
- 5.NI Modbus库请从Github Releases页面下载,视频《LabVIEW上位机Modbus程序讲解》5分钟处有详细说明NI Modbus库的下载及使用方法;
- 6.运行LabVIEW上位机前,填入开发板的静态IP;
- 7.不熟悉LabVIEW的同学可以使用ModbusPoll调试工具进行学习。
stm32f4_modbus_tcp's People
Contributors
Watchers