登录
首页 » 通信 » 移植国外STM32F103 MODBUS RTU代码

移植国外STM32F103 MODBUS RTU代码

于 2022-12-08 发布 文件大小:9.61 MB
0 188
下载积分: 2 下载次数: 1

代码说明:

应用背景 STM32和维纶触摸屏通信,编译可以直接下载通信。波特率9600.测试是可以直接使用的了。需要增加什么功能就自己添加了。 功能码 定 义 操 作(二进制) 0x01 读开关量输出 读取一路或多路开关量输出状态数据 0x02 读开关量输入 读取一路或多路开关量状态输入数据 0x03 读取保存寄存器 读取一个或多个保存寄存器的数据 0x04 读取输入寄存器数据 读取输入一个或多个寄存器的数据 0x05  强置单线圈 强置一个逻辑线圈的通断状态  0x06 写单路寄存器 把一组二进制数据写入单个寄存器 0x10 写多路寄存器 把多组二进制数据写入多个寄存器 0X0F 写开关量输出 写多个开关量 控制一路继电器“合/分”输出 关键技术 这个代码要在keil4.7的编译环境下才能编译通过。直接可以下载使用,移植于国外的MODBUS的开源通信协议。和硬件的485配套使用。 ModBus协议定义了一个控制器能认识使用的消息结构,而不管它们是通过何种网络进行通信的,它制定了消息域的格局和内容的公共格式, 描述了一个控制器请求访问其它设备的过程,回应来自其它设备的请求,以及如何侦测并记录错误信息。 通过此协议,控制器相互之间、控制器经由网络(例如以太网)和其它设备之间可以完成信息和数据的交换与传送, 使各种不同的公司和厂家的可编程顺序控制器(PLC)、RTU、SCADA系统、DCS或与兼容ModBus协议的第三方设备之间可以连成工业网络, 构建各

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 利用网络实现了网络监控的使用,实现了对网络的应用…
    用Delphi实现网络监控用Delphi实现网络监控用Delphi实现网络监控用Delphi实现
    2022-06-29 17:43:57下载
    积分:1
  • 中华民国曲线说明性能的二元分类问题,类…
    ROC curves illustrate performance on a binary classification problem where classification is based on simply thresholding a set of scores at varying levels. Lenient thresholds give high sensitivity but low specificity, strict thresholds give high specificity but low sensitivity the ROC curve plots this trade-off over a range of thresholds (usually with sens vs 1-spec, but I prefer sens vs spec this code gives you the option). It is theoretically possible to operate anywhere on the convex hull of an ROC curve, so this is plotted too. The area under the curve (AUC) for a ROC plot is a measure of overall accuracy, and the area under the ROCCH is a kind of upper bound on what might be achievable with a weighted combination of differently thresholded results from the given classifier -ROC curves illustrate performance on a binary classification problem where classification is based on simply thresholding a set of scores at varying levels. Lenient thresholds give high sensitivity but
    2022-01-21 23:11:41下载
    积分:1
  • vb 串口调试源代码
    VB 串口调试助手源代码,通过这个简单例子的学习能够增进对vb界面编程的深入理解,也能够对串口通信有一个大概的了解,对以后的串口通信程序的编写,具有重要的知道意义。
    2023-04-06 05:10:03下载
    积分:1
  • uip协议,小型TCP/IP协议
    uip协议,小型TCP/IP协议-East agreements, small TCP/IP protocol
    2022-08-08 23:27:53下载
    积分:1
  • 200之间网络读写数据的程序,包括口,数据速率,控制字等的设置。...
    S7-200之间网络通信读写数据的程序,包括通信口,数据速率,控制字等的设置。-S7-200 to read and write data between the network communication procedures, including the communication port, data rate, control words and other settings.
    2022-05-18 02:52:13下载
    积分:1
  • 用VHDL实现的FFT,经过测试,效果很不错!值得一看
    用VHDL实现的FFT,经过测试,效果很不错!值得一看-Use vhdl to do fft,after test,we can see the result is very good!
    2022-02-15 09:35:29下载
    积分:1
  • linux已经成为潮流,linux系列文章很多,这个文章写得比较好,系列讲座比较全,故推荐...
    linux已经成为潮流,linux系列文章很多,这个文章写得比较好,系列讲座比较全,故推荐-linux has become the trend, many linux series of articles, the articles were excellent, Compare lecture series, it recommended
    2023-08-16 13:25:03下载
    积分:1
  • 标准xcp协议,其中包括xcp的协议层,传输层的定义,完整的协议文档。...
    标准xcp协议,其中包括xcp的协议层,传输层的定义,完整的协议文档。-Standard xcp agreements, including xcp protocol layer, transport layer definition, a complete protocol document.
    2023-06-27 07:30:05下载
    积分:1
  • 使用Com口、Modem进行讯的控件,自己做的。
    使用Com口、Modem进行通讯的控件,自己做的。-I use Com, Modem communications for the controls themselves do.
    2022-12-05 08:10:03下载
    积分:1
  • 真正的
    实时语音信息隐藏的软件。在VOIP通信流中进行及时消息的信息隐藏。UNIX环境下使用。-Real-time voice information hiding software. VOIP communications in the timely flow of news information hiding. UNIX environment.
    2022-06-15 23:13:14下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载