摘要: |
针对控制器智能化、网络化的发展趋势,为了使具有RS485/RS232接口的控制器方便地接入PROFIBUS现场总线网络,基于C8051F020单片机,研制了以西门子公司的协议芯片SPC3为基础的PROFIBUSDP从站。首先介绍了PROFIBUS通信的基本原理,然后详细论述了硬件的几个组成部分的功能,对软件的整体结构及部分模块进行了论述,同时还给出了抗干扰的几种措施,最后给出了实验结果。实验结果表明设备间通信正常,可以应用于设备数据采集、执行和控制等,实现RS485/RS232设备与PROFIBUS现场总线的无缝互联。 |
关键词: PROFIBUS-DP从站 SPC3 C8051F020 |
DOI: |
|
基金项目: |
|
Design of Controller Intelligent Slave Station Based on PROFIBUS |
LIU Hai-shan,SONG Qian,QIAO Sen,FAN Qian,JIAO Zhen |
(Beijing Institute of Precision Mechatronics and Controls, Beijing 100076,China) |
Abstract: |
With the development of intelligence and network, and to access controller with RS485/RS232 interfaces to PROFIBUS field bus networks expediently, a PROFIBUSDP slave station based on the C8051F020 MCU by using the Siemens protocol chip SPC3 is developedThe fundamental of PROFIBUS is introduced first, then the functions of the hardware are discussed in details, and the configuration and some modules of the software are also expositedSeveral antijamming measures are presented as wellFinally, the experiment result given out indicats that the normal communications are achieved between equipments , and the device can be used on equipments for data collection, control and implement, thus the jointless interconnection between RS485/RS232 equipment and PROFIBUS is realized. |
Key words: PROFIBUS-DP slave station SPC3 C8051F020 single chip |