static void MODS_AnalyzeApp(void)
{
switch (g_tModS.RxBuf[1]) /* 第2个字节 功能码 */
{
case 0x01:
MODS_01H(); /* 读线圈状态 (此例程用led代表) */
bsp_PutMsg(MSG_MODS_01H, 0); /* 发送消息,主程序处理 */
break;
case 0x02:
MODS_02H(); /* 读输入状态 (按键状态) */
bsp_PutMsg(MSG_MODS_02H, 0);
break;
case 0x03:
MODS_03H(); /* 读保持寄存器 (此例程存在g_tVar中) */
bsp_PutMsg(MSG_MODS_03H, 0);
break;
case 0x04:
MODS_04H(); /* 读输入寄存器 (ADC的值) */
bsp_PutMsg(MSG_MODS_04H, 0);
break;
case 0x05:
MODS_05H(); /* 强制单线圈 (设置led) */
bsp_PutMsg(MSG_MODS_05H, 0);
break;
case 0x06:
MODS_06H(); /* 写单个保存寄存器 (此例程改写g_tVar中的参数) */
V4-RS485 MODBUS从站例程(V1.0)
GBT 19582.1-2008 基于Modbus协议的工业自动化网络规范 第1部分: Modbus应用协议.pdf
GBT 19582.2-2008 基于Modbus协议的工业自动化网络规范 第2部分: Modbus协议在串行链路上的实现指南.pdf
GBT 19582.3-2008 基于Modbus协议的工业自动化网络规范 第3部分: Modbus协议在TCP/IP上的实现指南.pdf
Modbus协议规范(中文).pdf
V4-RS485 MODBUS主站例程(V1.0).rar
V5-RS485 MODBUS从站例程(V1.4a).rar
V5-RS485 MODBUS主站例程(V1.4).rar
V6-RS485 MODBUS从站例程(V1.0).rar
V6-RS485 MODBUS主站例程(V1.0).rar
MODBUS教程 (V0.5) .pdf
任何人询问、访问本店铺,购买和未购买,即承认已阅读、理解并同意受本使用条款约束,并遵守所有适用的法律法规范。若您不同意遵守本应用条款,请勿购买或停止访问、询问。
本店所有资料为店主原创设计素材和汇编整理素材,本店原创素材成功申请阿里知识版权保护,发现同行抄袭、盗售直接投诉到底。汇编整理的素材来自各网络公开开发表的文档。所有资料仅供学习交流,严禁用于任何商业用途。所收取的费用仅用于本店人员整理费,仅为买家友情赞助,并非售卖文件费用,同意此声明后即可下单。如侵犯到您的权益,请联系卖家处理。
Disclaimer
Anyone who visits or browses this Taobao store, purchases or does not purchase, shall be deemed to have read, understood and agreed to be bound by these terms of use, and shall comply with all applicable laws and regulations. If you do not agree to comply with the terms of this application, do not purchase or stop visiting.
The store’s materials are divided into original materials of the owner and compiled materials. The original materials of the owner have been successfully added to the original protection, and the reselling will be automatically complained. The compiled materials come from the documents published in various online forums. All information is for exchange and study only. It is strictly prohibited to use it for commercial purposes. The fee collected is only used to maintain the operation of our store, which is a friendly sponsorship of the buyer, not a fee for selling documents. You can place an order after you agree to this statement. If it infringes your rights and interests, please contact the seller.


























暂无评论内容