PROFINET IO设备中DCP协议的研究与应用  被引量:2

Research and Application of DCP in PROFINET IO Device

在线阅读下载全文

作  者:荣锋[1,2] 朱瑞华 RONG Feng;ZHU Ruihua(School of Electronic and Information Engineering,Tianjin Polytechnic University,Tianjin 300387,China;Tianjin Key Laboratory of Optoelectronic Detection Technology and System,Tianjin 300387,China)

机构地区:[1]天津工业大学电子与信息工程学院,天津300387 [2]天津市光电检测技术与系统重点实验室,天津300387

出  处:《计算机测量与控制》2023年第1期222-229,共8页Computer Measurement &Control

基  金:天津市科委青年基金项目(15JCQNJC42100);天津市科技特派员项目(16JCTPJC48100,16JCTPJC47200)。

摘  要:为解决自动化外围现场设备接入PROFINET网络,而同类设备依赖特定芯片,成本较高,可移植性差的问题,利用软件设计实现普通网卡下的PROFINET IO通信;在树莓派3B+开发板上实现IO设备,支持非同步实时数据交换,可以通过槽/子槽数据模型匹配IO模块;通过设计描述性文件,使其IO模块类型映射模块、子模块的ID,实现模块化IO设备,允许根据需要添加和删除模块;系统启动时控制器根据设备名称寻址,再基于设备名称为IO设备分配IP地址,这一过程的实现依赖DCP协议,它是PROFINET网络中数据交互的基础;为了深入探究PROFINET协议栈,在实现IO通信的基础上从DCP协议的原理入手,对其功能和程序实现进行了详细研究,并将所实现的IO设备与PLC S7-1200进行组态,验证了IO设备所实现的功能和DCP工作的过程;实验测试表明,树莓派实现了PROFINET RT和NRT通信功能,其更新时间抖动小于50μs,满足控制工程上的应用要求。In order to solve the problems of similar devices relying on specific chips, high cost, and poor portability when the automatic peripheral field devices are connected to PROFINET network, the software design is used to realize PROFINET IO communication under the common network card. The IO device is implemented on the Raspberry Pi 3B+ development board, which supports asynchronous real-time data exchange. The IO module can be matched through the slot or sub-slot data model. Through design descriptive file, the IO module type is mapped to the ID of the module and sub-module to realize the modular IO devices, and modules can be added and deleted as required;When the system is started, the controller addresses the IO devices by the device name, and then assigns IP addresses to the IO devices based on the device name. The implementation of this process depends on DCP protocol, which is the basis of data interaction in PROFINET network. In order to deeply explore the PROFINET protocol stack, based on the implementation of PROFINET, starting with the principle of DCP protocol, the function and program implementation are studied in detail, and the implemented IO devices are configured with PLC S7-1200 to verify the function of IO devices and working process of DCP. Experimental tests show that the Raspberry Pi realizes the communication functions of PROFINET RT and NRT, and the update time jitter is less than 50 μs, which meets the application requirements of control engineering.

关 键 词:PROFINET DCP WIRESHARK PLC S7-1200 数据交互 设备名称 

分 类 号:TP273[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象