CAN-RS485协议转换网关的设计.doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
摘 要 随着科学技术的发展,现场总线技术在各领域中得到越来越广泛的应用。现场总线技术以其实时、可靠、低成本、使用方便等特点,在控制现场层得到广泛的应用。其中CAN总线与其它几种现场总线比较而言,是最容易实现、价格最为低廉的一种,但其性能并不比其它现场总线差。Abstract With the development of science and technology, the fieldbus technology is playing more and more important role in all areas. With its real-time, reliable, low cost, easy to use, fieldbus technology is widely used on site in the control layer.In contrast to the other fieldbus, CAN bus is the easiest and most inexpensive price,but its performance was not worse than any other fieldbus.In practical application,RS485 is widely used in most of the controllers and Industrial Communication Device.Therefore,in order to connect these devices to the fieldbus control network, it is necessary to design the gateway between field bus and the RS485. In this paper, we designed the gateway between CAN bus and RS485. By analysing the application of fieldbus technology,we put forward the control system model based on industrial network gateway.We used AT89S51 and SJA100 to design the gateway hardware,and developed the gateway software.Finally,after software testing,the data exchange between the CPU and RS485 was achieved. Keywords: Fieldbus;CAN;RS485;Gateway 目 录 1 绪论 1 1.1 课题研究的重要意义 1 1.2 网关 2 1.2.1 网络互连设备 2 1.2.2工业控制中网关的应用和研究 3 1.3 现场总线 4 1.3.1 现场总线的发展现状和趋势 4 1.3.2 主流现场总线简介 5 1.4 本论文的主要工作 7 2 基于网关的网络化控制系统模型 8 2.1 现有控制系统存在的不足 8 2.2 基于网关的网络化控制系统模型 8 2.2.1 基于网关的网络化控制系统结构 9 2.2.2 控制系统中网关的需求分析 10 3 CAN-S485协议转换网关的设计 12 3.1 CAN协议规范 12 3.2 CAN报文规范 13 3.3 主要器件介绍 13 3.3.1 CAN控制器SJA1000简介 13 3.3.2 CAN收发器PCA82C250简介 16 3.3.3 单片机AT89S51简介 17 3.3.4 RS485收发器MAX485简介 19 3.4 CAN-RS485协议转换网关设计 20 3.4.1 基本原理 20 3.4.2 硬件设计 20 3.4.3 软件设计 21 4 试验调试 27 5 可靠性设计 32 5.1 硬件设计 32 5.2 软件设计 32 结 论 34 致 谢 35 参考文献 36 附录A 英文原文 37 附录B 中文翻译 41 附录C 44 C1 原理图 44 图C2 PCB图 45 附录D 程序 46   1.1 课题研究的重要意义 在现代企业中,企业网络将成为连接企业内部各车间、部门,并与外部交流信息的重要基础设施,在市场经济与信息社会中,网络对企业的综合竞争能力起着至关重要的作用。企业的生产线、生产车间、控制室、上层管理部门之间迫切需要信息共享。在底层的设备控制现场,采用工控机等现场控制设备对生产线的生产过程进行管理。在工控机的通讯中,由于串行通讯方式使用线路少、成本低,而被广泛采

文档评论(0)

追风少年 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档