搜索
bottom↓
回复: 21

uC/Modbus的参考手册谁有啊?

[复制链接]

出0入12汤圆

发表于 2010-8-19 13:46:28 | 显示全部楼层 |阅读模式
RT

阿莫论坛20周年了!感谢大家的支持与爱护!!

曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……

出0入12汤圆

 楼主| 发表于 2010-8-19 13:51:18 | 显示全部楼层
上传个源码
点击此处下载 ourdev_576122.rar(文件大小:42K) (原文件名:uC-Modbus.rar)

出0入0汤圆

发表于 2010-8-19 14:37:39 | 显示全部楼层
回复【1楼】waterx3
-----------------------------------------------------------------------

非常感谢你提供的源码,好像还有uc-modbus-master,不知你有否?
点击此处下载 ourdev_576128.pdf(文件大小:247K) (原文件名:uC-Modbus.pdf)

出0入12汤圆

 楼主| 发表于 2010-8-19 14:47:37 | 显示全部楼层
谢谢你的参考手册。

又看了手册好像是没有MBM_CORE.c.
哪位有的贡献出来啊。

出0入0汤圆

发表于 2010-8-19 14:54:00 | 显示全部楼层
谢谢。modbus 用了好多年都是自己琢磨的,现在可以看看老外是如何完整实现modbus的了。

出0入12汤圆

 楼主| 发表于 2010-8-19 14:58:37 | 显示全部楼层
源码版本2.12,手册是2.10难道升级后不需要MBM_CORE.c就可以master了?
我看通道设置是可以MASTER的。

出0入0汤圆

发表于 2010-8-19 15:01:23 | 显示全部楼层
thanks!

出0入0汤圆

发表于 2010-8-19 15:08:09 | 显示全部楼层
\mbm_core.c你的源码是不是不全呀。你看下面的描述。
/*
*********************************************************************************************************
*                                        MODBUS PROTOCOL INCLUDE FILES
*
* Note(s) : (1) The modbus protocol suite files are located in the following directories :
*
*               (a) (1) \<Your Product Application>\app_cfg.h
*                   (2)                            \mb_cfg.h
*                   (3)                            \mb_data.c
*
*               (b) \<Modbus Protocol Suite>\Source\mb.h
*                                                  \mb.c
*                                                  \mb_def.c
*                                                  \mb_util.c
*                                                  \mbm_core.c
*                                                  \mbs_core.c
*
*               (c) \<Modbus Protocol Suite>\Ports\<cpu>\mb_bsp.*
*
*               (d) \<Modbus Protocol Suite>\OS\<os>\mb_os.*
*
*                       where
*                               <Your Product Application>      directory path for Your Product's Application
*                               <Modbus Protocol Suite>         directory path for modbus protocol suite
*                               <cpu>                           directory name for specific processor              (CPU)
*                               <compiler>                      directory name for specific compiler
*                               <os>                            directory name for specific operating system       (OS)
*
*           (2) NO compiler-supplied standard library functions are used by the modbus protocol suite.
*
*               (a) Standard library functions are implemented in the custom library module(s) :
*
*                       \<Custom Library Directory>\lib*.*
*
*                           where
*                                   <Custom Library Directory>      directory path for custom library software
*
*
*           (3) CPU-configuration software files are located in the following directories :
*
*               (a) (1) \<CPU-Compiler Directory>\cpu_def.h
*
*                   (2) \<CPU-Compiler Directory>\<cpu>\<compiler>\cpu*.*
*
*                           where
*                                   <Custom Library Directory>      directory path for custom   library      software
*                                   <CPU-Compiler Directory>        directory path for common   CPU-compiler software
*                                   <cpu>                           directory name for specific processor (CPU)
*                                   <compiler>                      directory name for specific compiler
*
*           (4) Compiler MUST be configured to include the '\<Custom Library Directory>\uC-LIB\',
*               '\<CPU-Compiler Directory>\' directory, & the specific CPU-compiler directory as
*               additional include path directories.
*
*           (5) NO compiler-supplied standard library functions SHOULD be used.
*
**********************************************************************************************************
缺少 mbm_core.c ?

出0入12汤圆

 楼主| 发表于 2010-8-19 15:31:53 | 显示全部楼层
确实是没有mbm_core.c,还希望有人可以贡献出来啊。
我现在做slave已经没有问题了,Master暂时还用不到。

出0入0汤圆

发表于 2010-8-20 13:19:50 | 显示全部楼层
mark!

出0入0汤圆

发表于 2010-8-20 13:42:52 | 显示全部楼层
不知道有没有freemodbus 好用?

出0入0汤圆

发表于 2010-11-18 13:46:15 | 显示全部楼层
回复【10楼】ljt8015
不知道有没有freemodbus 好用?
-----------------------------------------------------------------------

出0入0汤圆

发表于 2010-11-18 14:22:17 | 显示全部楼层
mark

出0入0汤圆

发表于 2011-3-9 09:41:06 | 显示全部楼层
thanks

出0入0汤圆

发表于 2011-3-23 15:49:20 | 显示全部楼层
确实是没有mbm_core.c,还希望有人可以贡献出来啊。

出0入0汤圆

发表于 2011-4-28 13:19:31 | 显示全部楼层
看看

出0入0汤圆

发表于 2011-5-9 15:54:22 | 显示全部楼层
期待MBM_CORE.C!!

出0入0汤圆

发表于 2011-5-18 09:16:16 | 显示全部楼层
#define  MBS_MODULE
// Modified by SE
#include <includes.h>
#include <diagcounter.h>

如上是MBS_CORE.C中的头文件!
在代码中没有找到diagcounter.h文件
8楼waterx3或其他路过的大侠能否告诉一下小弟!!

万分感谢。
有代码全的能发给小弟一份吗!
suzhou188@yeah.net

出0入0汤圆

发表于 2012-1-31 12:11:02 | 显示全部楼层
谁能帮忙解释一下为啥出现这个问题啊?
(原文件名:QQ截图20120130112700.png)

出0入0汤圆

发表于 2013-4-16 14:14:37 | 显示全部楼层
nyszx 发表于 2012-1-31 12:11
谁能帮忙解释一下为啥出现这个问题啊?
(原文件名:QQ截图20120130112700.png)

你的问题解决没有?

出0入0汤圆

发表于 2013-4-16 14:18:28 | 显示全部楼层
waterx3 发表于 2010-8-19 15:31
确实是没有mbm_core.c,还希望有人可以贡献出来啊。
我现在做slave已经没有问题了,Master暂时还用不到。 ...

#define  MBS_MODULE
// Modified by SE
#include <includes.h>
#include <diagcounter.h>

如上是MBS_CORE.C中的头文件!
在代码中没有找到diagcounter.h文件


编译会出错,这个问题你怎么解决的?

出0入12汤圆

 楼主| 发表于 2013-4-16 15:23:13 | 显示全部楼层
直接注释掉
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-8-27 01:21

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表