文档介绍:南京航空航天大学
硕士学位论文
基于CAN总线的通用测控平台的设计与实现
姓名:王磊
申请学位级别:硕士
专业:导航、制导与控制
指导教师:李秀娟
20050201
南京航空航天大学硕士学位论文
摘要
随着微电子技术、通信技术的不断发展和计算机的微型化,新兴的以现场
总线为基础的 FCS 成为工业控制系统的发展方向。
本文详细分析了我国工业自动化控制的现状和现场总线的发展情况,在针
对以现场总线为底层的测控网络系统的层次结构与传输协议进行了详细研究
后,提出了一种基于 CAN 总线,适合于小规模、高实时性、高可靠性要求应用
环境的通用测控平台,并完成了通用测控平台的总体设计。
通用测控平台通过 CAN 通讯接口卡将上位机连接到 CAN 总线,使用转换
卡实现 CAN 总线接口与 Profibus、RS485/422、RS232 等总线接口之间的数据转
换。在课题调试工作中,将三菱 FX 和西门子 S7-200 两种使用 RS485/422 接口
通讯的 PLC 作为测控对象连接成测控网络。使用专用 CAN 接口库函数编写设置
程序完成了对接口卡、CAN485 转换卡的 CAN 参数(如滤波方式、通讯模式、
验收码和屏蔽码等)的初始化设定。设计完成上位机通讯程序,实现了上位 PC
机对两种不同 PLC 的监控操作。
在此通用测控平台基础上构建测控系统,能将各种使用 CAN、RS-485/422
和 PROFIBUS 等总线接口通讯的现场控制单元、智能网络节点、智能楼宇单元
和远程通讯节点等连接成通用的测控网络,广泛应用于工业控制等各个领域。
关键词:工业控制,现场总线,CAN,RS485/422,PLC,通讯。
I
南京航空航天大学硕士学位论文
ABSTRACT
Along with the micromation puter and the development of electronic and
communication technology, the burgeoning Fieldbus Control System es the
development trend of industrial control system.
In this paper, after analyzing the actuality of civil industrial automation control
system and researching the hiberarchy and transport protocols of the metrical control
network based on fieldbus in detail, we designed a universal metrical control platform
suitable for small-scale real-time applications which require high reliability based on
CAN bus.
The universal metrical control platform connects the puter and the
CAN bus via munication interface card, actualize the data conversion
between CAN and other kind buses via conversion card.
During the debuging works, we connected Mitsubishi FX and Siemens S7-200
as control objects to the metrical work via their RS485/422 interfaces.
Completed the initialization of CAN parameter for munication card and
conversion card pile setting program. munication program to
actualize the supervision and control of Programmable Logic Controllers by upper
computer.
The universal metrical control platf