waterx3 发表于 2010-8-19 13:46:28

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

RT

waterx3 发表于 2010-8-19 13:51:18

上传个源码
点击此处下载 ourdev_576122.rar(文件大小:42K) (原文件名:uC-Modbus.rar)

edalab 发表于 2010-8-19 14:37:39

回复【1楼】waterx3
-----------------------------------------------------------------------

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

waterx3 发表于 2010-8-19 14:47:37

谢谢你的参考手册。

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

edalab 发表于 2010-8-19 14:54:00

谢谢。modbus 用了好多年都是自己琢磨的,现在可以看看老外是如何完整实现modbus的了。

waterx3 发表于 2010-8-19 14:58:37

源码版本2.12,手册是2.10难道升级后不需要MBM_CORE.c就可以master了?
我看通道设置是可以MASTER的。

shanyan 发表于 2010-8-19 15:01:23

thanks!

edalab 发表于 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 ?

waterx3 发表于 2010-8-19 15:31:53

确实是没有mbm_core.c,还希望有人可以贡献出来啊。
我现在做slave已经没有问题了,Master暂时还用不到。

charlie2008 发表于 2010-8-20 13:19:50

mark!

ljt8015 发表于 2010-8-20 13:42:52

不知道有没有freemodbus 好用?

ljt8015 发表于 2010-11-18 13:46:15

回复【10楼】ljt8015
不知道有没有freemodbus 好用?
-----------------------------------------------------------------------

zeasa 发表于 2010-11-18 14:22:17

mark

swan1225 发表于 2011-3-9 09:41:06

thanks

lx824 发表于 2011-3-23 15:49:20

确实是没有mbm_core.c,还希望有人可以贡献出来啊。

aiqinger 发表于 2011-4-28 13:19:31

看看

clingos 发表于 2011-5-9 15:54:22

期待MBM_CORE.C!!

sososo111 发表于 2011-5-18 09:16:16

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

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

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

nyszx 发表于 2012-1-31 12:11:02

谁能帮忙解释一下为啥出现这个问题啊?http://cache.amobbs.com/bbs_upload782111/files_51/ourdev_715213W1WU8O.png
(原文件名:QQ截图20120130112700.png)

shuimubai 发表于 2013-4-16 14:14:37

nyszx 发表于 2012-1-31 12:11 static/image/common/back.gif
谁能帮忙解释一下为啥出现这个问题啊?
(原文件名:QQ截图20120130112700.png)

你的问题解决没有?

shuimubai 发表于 2013-4-16 14:18:28

waterx3 发表于 2010-8-19 15:31 static/image/common/back.gif
确实是没有mbm_core.c,还希望有人可以贡献出来啊。
我现在做slave已经没有问题了,Master暂时还用不到。 ...

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

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


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

waterx3 发表于 2013-4-16 15:23:13

直接注释掉
页: [1]
查看完整版本: uC/Modbus的参考手册谁有啊?